🇰🇷 한글 설명
phpMyFAQ 4.1.1 이전 버전의 searchCustomPages() 메서드에서 SQL LIKE 메타문자(% 및 _)를 적절히 필터링하지 않는 취약점이 존재합니다. 인증되지 않은 공격자가 검색 쿼리에 와일드카드를 주입하여 의도하지 않은 레코드를 조회함으로써 민감한 정보가 유출될 수 있습니다.
💡 쉬운 설명
검색창에 특정 특수문자를 입력하여 원래는 보이지 않아야 할 숨겨진 데이터를 찾아낼 수 있는 취약점입니다. 적절한 보안 처리가 되어 있지 않아 시스템 내부의 의도치 않은 정보가 노출될 수 있습니다.
🇺🇸 원문 (English)
phpMyFAQ is an open source FAQ web application. Prior to version 4.1.1, the searchCustomPages() method in phpmyfaq/src/phpMyFAQ/Search.php uses real_escape_string() (via escape()) to sanitize the search term before embedding it in LIKE clauses. However, real_escape_string() does not escape SQL LIKE metacharacters % (match any sequence) and _ (match any single character). An unauthenticated attacker can inject these wildcards into search queries, causing them to match unintended records — including content that was not meant to be surfaced — resulting in information disclosure. This issue has been patched in version 4.1.1.
📍 영향받는 시스템
phpMyFAQ version 4.1.1 미만
⚔️ 공격 벡터
검색 입력창에 SQL LIKE 와일드카드(% 또는 _)를 삽입하여 비정상적인 데이터 조회 수행
🛡️ 대응 방법
phpMyFAQ를 최신 버전인 4.1.1 이상으로 업데이트하십시오.
🔧 검증 코드
명령어 실행 결과로 4.1.1 미만의 버전 정보가 출력되면 취약한 상태입니다.
grep -r "const VERSION" . | grep -v "4.1.1"