🔍 CVE-2012-5381

6.0
CVSS Score
MEDIUM
2012-10-11
2026-04-29 01:13
✅ 완료

🇰🇷 한글 설명

C:\최상위 디렉토리에 설치된 PHP 5.3.17에서 신뢰할 수 없는 검색 경로 취약점으로, 로컬 사용자가 C:\PHP 디렉토리에 트로이 목마 DLL을 작성하여 권한을 상승시킬 수 있습니다. 관리자가 PATH 환경 변수에 C:\PHP를 추가했을 때만 발생하며, CVE는 이것이 PHP 기본 설치의 일부가 아니라고 논쟁합니다.

💡 쉬운 설명

Windows에서 PHP가 최상위 C:\ 디렉토리에 설치되고 PATH에 추가되었을 때, 공격자가 악의적인 파일을 통해 관리자 권한을 탈취할 수 있습니다. 이는 관리자의 설정 실수가 주요 원인입니다.

🇺🇸 원문 (English)

Untrusted search path vulnerability in the installation functionality in PHP 5.3.17, when installed in the top-level C:\ directory, might allow local users to gain privileges via a Trojan horse DLL in the C:\PHP directory, which may be added to the PATH system environment variable by an administrator, as demonstrated by a Trojan horse wlbsctrl.dll file used by the "IKE and AuthIP IPsec Keying Modules" system service in Windows Vista SP1, Windows Server 2008 SP2, Windows 7 SP1, and Windows 8 Release Preview. NOTE: CVE disputes this issue because the unsafe PATH is established only by a separate administrative action that is not a default part of the PHP installation

📍 영향받는 시스템

PHP 5.3.17 (C:\ 최상위 설치), Windows Vista SP1, Windows Server 2008 SP2, Windows 7 SP1, Windows 8 Release Preview

⚔️ 공격 벡터

로컬 사용자가 C:\PHP 디렉토리에 트로이 목마 DLL(예: wlbsctrl.dll)을 배치하여 시스템 서비스 실행 시 권한 상승

🛡️ 대응 방법

PHP를 C:\ 최상위가 아닌 별도 디렉토리에 설치하거나 PATH 환경 변수에서 C:\PHP 제거

🔧 검증 코드

PHP 5.3.17이 출력되면 취약한 버전입니다. 추가로 echo %PATH% | find "PHP"로 PATH에 C:\PHP가 포함되어 있는지 확인하세요.

Shell / Script
php -v 2>/dev/null | grep -E 'PHP 5\.3\.17'

📊 CVSS Vector String

CVSS Vector
AV:L/AC:H/Au:S/C:C/I:C/A:C

💻 영향받는 소프트웨어

PHP