🔍 CVE-2007-4010

6.8
CVSS Score
MEDIUM
2007-07-26
2026-04-23 00:35
✅ 완료

🇰🇷 한글 설명

PHP 5.2.3의 win32std 확장에서 safe_mode 및 disable_functions 보안 제한을 우회하는 취약점으로, 원격 공격자가 win_shell_execute 함수를 악용하여 임의의 명령어를 실행할 수 있습니다. 이는 웹 애플리케이션을 통해 서버 침투로 이어질 수 있는 심각한 원격 코드 실행(RCE) 취약점입니다.

💡 쉬운 설명

PHP의 보안 제한을 무시하는 버그로, 해커가 웹 요청을 통해 서버에서 임의의 명령어를 실행할 수 있습니다. 서버 시스템이 완전히 장악될 수 있어 매우 위험합니다.

🇺🇸 원문 (English)

The win32std extension in PHP 5.2.3 does not follow safe_mode and disable_functions restrictions, which allows remote attackers to execute arbitrary commands via the win_shell_execute function.

📍 영향받는 시스템

PHP 5.2.3 with win32std extension enabled on Windows systems

⚔️ 공격 벡터

Remote code execution via win_shell_execute function in win32std extension, exploiting disabled safe_mode restrictions through specially crafted requests

🛡️ 대응 방법

Update PHP to version 5.2.4 or later, or immediately disable win32std extension if not required

🔧 검증 코드

명령어 실행 결과가 'VULNERABLE'이면 취약 버전이고 win32std가 로드됨을 의미하며, 'SAFE'이면 패치되었거나 확장이 비활성화됨을 의미합니다.

Shell / Script
php -v 2>/dev/null | grep -E 'PHP 5\.2\.[0-3]' && php -m 2>/dev/null | grep -qi win32std && echo 'VULNERABLE' || echo 'SAFE'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP