🔍 CVE-2008-5878

5.1
CVSS Score
MEDIUM
2009-01-08
2026-04-23 00:35
✅ 완료

🇰🇷 한글 설명

Phpclanwebsite (PCW) 1.23.3 Fix Pack 5 이전 버전에서 magic_quotes_gpc가 비활성화되고 register_globals가 활성화된 경우 발생하는 디렉터리 트래버설 취약점입니다. 공격자가 ../ 경로 조작을 통해 theme/superchrome/box.php의 boxname 파라미터 또는 phpclanwebsite/footer.php의 theme 파라미터로 임의 파일을 포함하고 실행할 수 있습니다.

💡 쉬운 설명

웹사이트의 특정 설정이 약할 때, 공격자가 상위 폴더로 이동하는 경로 기법(..)으로 숨겨진 파일을 웹서버에서 실행시킬 수 있습니다. 이는 원격에서 웹사이트를 장악할 수 있는 위험한 취약점입니다.

🇺🇸 원문 (English)

Multiple directory traversal vulnerabilities in Phpclanwebsite (aka PCW) 1.23.3 Fix Pack 5 and earlier, when magic_quotes_gpc is disabled and register_globals is enabled, allow remote attackers to include and execute arbitrary files via a .. (dot dot) in the (1) boxname parameter to theme/superchrome/box.php and the (2) theme parameter to phpclanwebsite/footer.php.

📍 영향받는 시스템

Phpclanwebsite (PCW) 버전 1.23.3 Fix Pack 5 이전, magic_quotes_gpc 비활성화 + register_globals 활성화 설정

⚔️ 공격 벡터

theme/superchrome/box.php의 boxname 또는 phpclanwebsite/footer.php의 theme 파라미터에 ../ 패턴 삽입으로 임의 파일 포함 실행

🛡️ 대응 방법

PCW를 최신 버전으로 업그레이드하거나 PHP 설정에서 register_globals를 비활성화하고 magic_quotes_gpc를 활성화

🔧 검증 코드

footer.php 파일이 발견되고 register_globals=1, magic_quotes_gpc=0이면 취약한 상태

Shell / Script
find / -name "footer.php" -path "*/phpclanwebsite/*" 2>/dev/null | head -1; php -r "echo 'register_globals=' . (int)ini_get('register_globals') . ', magic_quotes_gpc=' . (int)ini_get('magic_quotes_gpc') . PHP_EOL;"

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP