🔍 CVE-2002-2029

7.5
CVSS Score
HIGH
2002-12-31
2026-04-16 00:27
✅ 완료

🇰🇷 한글 설명

Windows의 Apache에서 PHP가 잘못 설정된 경우, ScriptAlias를 통해 php.exe에 직접 접근할 수 있는 취약점입니다. 공격자는 HTTP 요청의 쿼리 스트링에 파일명을 포함시켜 서버의 임의 파일을 읽거나 프로그램을 실행할 수 있습니다.

💡 쉬운 설명

Windows 서버에서 PHP 설정이 잘못되면, 공격자가 특수한 URL로 서버의 모든 파일을 읽을 수 있습니다. 또한 악의적인 프로그램을 실행하는 것도 가능합니다.

🇺🇸 원문 (English)

PHP, when installed on Windows with Apache and ScriptAlias for /php/ set to c:/php/, allows remote attackers to read arbitrary files and possibly execute arbitrary programs via an HTTP request for php.exe with a filename in the query string.

📍 영향받는 시스템

Windows에서 Apache와 함께 설치된 PHP (ScriptAlias가 /php/ → c:/php/로 설정된 경우)

⚔️ 공격 벡터

HTTP GET 요청으로 /php/php.exe에 경로 조회(../) 또는 파일명을 쿼리 스트링으로 전달하여 임의 파일 접근

🛡️ 대응 방법

ScriptAlias 설정을 올바르게 수정하거나 PHP를 최신 보안 패치로 업그레이드하고, open_basedir 제약을 설정합니다.

🔧 검증 코드

Apache 설정에 /php/로 시작하는 ScriptAlias가 있거나 PHP 버전이 매우 오래된 버전(4.x대)이면 취약할 가능성이 있습니다.

Shell / Script
grep -r 'ScriptAlias' /etc/apache2/ 2>/dev/null | grep -i php || php -v 2>/dev/null | head -1

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP