🔍 CVE-2026-57961

2.7
CVSS Score
LOW
2026-07-10
2026-07-10 17:41
✅ 완료

🇰🇷 한글 설명

phpMyFAQ 4.1.5 미만 버전의 concatenatePaths() 함수에서 인증된 사용자가 경로 탐색(Path Traversal)을 수행할 수 있는 취약점이 발견되었습니다. FAQ 편집 권한을 가진 사용자가 조작된 이미지 경로가 포함된 HTML을 저장하면, PDF 생성 과정에서 의도하지 않은 시스템 파일에 접근할 수 있습니다.

💡 쉬운 설명

FAQ 내용을 수정할 수 있는 권한을 가진 사람이 특수한 코드를 입력하여 서버의 중요한 파일을 몰래 읽어낼 수 있는 문제입니다. PDF를 만드는 과정에서 경로를 제대로 검사하지 않아 발생하는 보안 허점입니다.

🇺🇸 원문 (English)

phpMyFAQ before 4.1.5 contains a potential authenticated path traversal vulnerability in the concatenatePaths() function within src/phpMyFAQ/Export/Pdf/Wrapper.php. A user with FAQ editing privileges can store HTML containing crafted image paths that are processed during PDF generation. The path resolution logic locates the substring "content" within a user-controlled path using strpos(); when "content" is absent, strpos() returns false, which becomes 0 when cast to an integer, preserving the entire attacker-controlled path. This path is later passed to file_get_contents() without canonicalization or root-directory containment validation, which may allow reading of files outside the intended content directory.

📍 영향받는 시스템

phpMyFAQ version < 4.1.5

⚔️ 공격 벡터

FAQ 편집 권한을 이용해 조작된 이미지 경로가 포함된 HTML을 삽입한 후 PDF 생성 기능을 호출

🛡️ 대응 방법

phpMyFAQ를 최신 버전인 4.1.5 이상으로 업데이트하십시오.

🔧 검증 코드

설치된 phpMyFAQ의 버전이 4.1.5 미만인지 확인하여 취약 여부를 판단합니다.

Shell / Script
php -r 'echo "phpMyFAQ version check";' && grep -r "version" /path/to/phpMyFAQ/ | grep -E '[0-3]\.[0-9]\.[0-9]'

📊 CVSS Vector String

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N

💻 영향받는 소프트웨어

PHP