🔍 CVE-2004-0490

7.2
CVSS Score
HIGH
2004-08-18
2026-04-16 00:27
✅ 완료

🇰🇷 한글 설명

cPanel에서 Apache 1.3.29와 PHP를 mod_phpsuexec 옵션으로 컴파일할 때 --enable-discard-path 옵션을 설정하지 않아 발생합니다. PHP가 PATH_TRANSLATED 대신 SCRIPT_FILENAME 변수를 사용하여 스크립트를 찾으므로, 로컬 사용자가 다른 사용자의 권한으로 임의의 PHP 코드를 실행할 수 있습니다.

💡 쉬운 설명

cPanel의 웹 서버 설정 오류로 로컬 사용자가 다른 사용자 계정의 권한으로 악성 PHP 코드를 실행할 수 있습니다. 공격자가 URL에 자신의 PHP 파일 경로를 포함시키면 서버가 해당 파일을 피해자의 권한으로 실행합니다.

🇺🇸 원문 (English)

cPanel, when compiling Apache 1.3.29 and PHP with the mod_phpsuexec option, does not set the --enable-discard-path option, which causes php to use the SCRIPT_FILENAME variable to find and execute a script instead of the PATH_TRANSLATED variable, which allows local users to execute arbitrary PHP code as other users via a URL that references the attacker's script after the user's script, which executes the attacker's script with the user's privileges, a different vulnerability than CVE-2004-0529.

📍 영향받는 시스템

cPanel with Apache 1.3.29 + PHP mod_phpsuexec (--enable-discard-path 미설정)

⚔️ 공격 벡터

로컬 사용자가 SCRIPT_FILENAME 변수를 조작하여 URL을 통해 임의의 PHP 스크립트를 다른 사용자 권한으로 실행

🛡️ 대응 방법

cPanel과 Apache를 최신 버전으로 업그레이드하거나 Apache 재컴파일 시 --enable-discard-path 옵션 추가

🔧 검증 코드

Apache 버전이 1.3.29 이전이면 취약하며, 최신 패치가 적용된 버전(1.3.30 이상)이면 안전합니다.

Shell / Script
httpd -v 2>/dev/null | grep -E 'Apache/1.3.29|1.3.2[0-8]' && echo 'Vulnerable version detected' || echo 'Version not vulnerable'

📊 CVSS Vector String

CVSS Vector
AV:L/AC:L/Au:N/C:C/I:C/A:C

💻 영향받는 소프트웨어

PHP