🔍 CVE-2007-0173

6.8
CVSS Score
MEDIUM
2007-01-11
2026-06-16 22:35
✅ 완료

🇰🇷 한글 설명

L2J Statistik Script 0.09 이하에서 register_globals가 활성화되고 magic_quotes가 비활성화된 경우 발생하는 디렉토리 트래버설 취약점입니다. 공격자는 index.php의 page 파라미터에 ..를 포함하여 임의의 로컬 파일을 포함 및 실행할 수 있습니다. Apache 로그 파일에 PHP 코드를 주입하여 원격 코드 실행이 가능합니다.

💡 쉬운 설명

특정 웹 애플리케이션이 폴더 경로를 제대로 검증하지 않아서 공격자가 원하는 파일을 로드하도록 조작할 수 있습니다. 서버 로그에 악의적인 코드를 삽입해 이를 실행시켜 서버를 제어할 수 있습니다.

🇺🇸 원문 (English)

Directory traversal vulnerability in index.php in L2J Statistik Script 0.09 and earlier, when register_globals is enabled and magic_quotes is disabled, allows remote attackers to include and execute arbitrary local files via a .. (dot dot) in the page parameter, as demonstrated by injecting PHP sequences into an Apache HTTP Server log file, which is then included by index.php.

📍 영향받는 시스템

L2J Statistik Script v0.09 and earlier with register_globals enabled and magic_quotes disabled

⚔️ 공격 벡터

index.php의 page 파라미터에 경로 순회 문자열(..)을 포함하여 Apache 로그 파일 등 임의의 로컬 파일을 포함/실행

🛡️ 대응 방법

L2J Statistik Script를 최신 버전으로 업그레이드, register_globals 비활성화, magic_quotes 활성화

🔧 검증 코드

register_globals가 On으로 설정되어 있으면 취약점에 노출된 상태입니다. Off 또는 결과가 없으면 안전합니다.

Shell / Script
grep -r 'register_globals' /etc/php* 2>/dev/null || php -i 2>/dev/null | grep -i 'register_globals'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

Apache HTTP Server