🔍 CVE-2007-4586

7.5
CVSS Score
HIGH
2007-08-29
2026-04-23 00:35
✅ 완료

🇰🇷 한글 설명

PHP 5.2.0 이하의 iisfunc 확장 프로그램에 있는 php_iisfunc.dll에 다중 버퍼 오버플로우 취약점이 존재한다. 유니코드 변환 중 발생하며 공격자가 iis_getservicestate, fnStartService, fnGetServiceState, fnStopService 함수 호출 시 ServiceId 인수에 긴 문자열을 입력하여 임의의 코드 실행이 가능하다.

💡 쉬운 설명

PHP의 IIS 관련 기능에 있는 보안 허점으로, 공격자가 긴 텍스트를 입력해 컴퓨터를 제어할 수 있다. PHP 5.2.0 이하 버전에서만 발생하는 문제다.

🇺🇸 원문 (English)

Multiple buffer overflows in php_iisfunc.dll in the iisfunc extension for PHP 5.2.0 and earlier allow context-dependent attackers to execute arbitrary code, probably during Unicode conversion, as demonstrated by a long string in the first argument to the iis_getservicestate function, related to the ServiceId argument to the (1) fnStartService, (2) fnGetServiceState, (3) fnStopService, and possibly other functions.

📍 영향받는 시스템

Windows IIS 서버의 PHP 5.2.0 이하 버전 (iisfunc 확장 활성화)

⚔️ 공격 벡터

PHP iisfunc 함수 호출 시 ServiceId 인수에 오버사이즈된 문자열 입력을 통한 버퍼 오버플로우

🛡️ 대응 방법

PHP를 5.2.1 이상으로 업그레이드하거나 iisfunc 확장 프로그램 업데이트 적용

🔧 검증 코드

PHP 5.0~5.2 버전이 나타나고 iisfunc이 활성화되어 있으면 취약함

Shell / Script
php -v 2>/dev/null | grep -oE 'PHP 5\.[0-2]\.[0-9]' && php -m 2>/dev/null | grep -i iisfunc

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP