🔍 CVE-2006-4023

5.0
CVSS Score
MEDIUM
2006-08-09
2026-04-16 00:27
✅ 완료

🇰🇷 한글 설명

PHP 5.1.4 및 이전 버전의 ip2long 함수가 임의의 문자열을 잘못 검증하여 유효한 네트워크 IP 주소를 반환할 수 있는 취약점입니다. 공격자는 이를 통해 네트워크 정보를 획득하거나, MiniBB 2.0의 X-FORWARDED-FOR 헤더를 이용한 SQL 인젝션과 같은 추가 공격을 수행할 수 있습니다.

💡 쉬운 설명

IP 주소를 숫자로 변환하는 기능이 잘못된 입력값을 정상적인 IP로 착각하는 문제입니다. 해커가 이를 이용해 시스템을 속여 보안 검사를 우회하거나 내부 정보를 빼낼 수 있습니다.

🇺🇸 원문 (English)

The ip2long function in PHP 5.1.4 and earlier may incorrectly validate an arbitrary string and return a valid network IP address, which allows remote attackers to obtain network information and facilitate other attacks, as demonstrated using SQL injection in the X-FORWARDED-FOR Header in index.php in MiniBB 2.0. NOTE: it could be argued that the ip2long behavior represents a risk for security-relevant issues in a way that is similar to strcpy's role in buffer overflows, in which case this would be a class of implementation bugs that would require separate CVE items for each PHP application that uses ip2long in a security-relevant manner.

📍 영향받는 시스템

PHP 5.1.4 및 그 이전 버전

⚔️ 공격 벡터

조작된 문자열을 HTTP 헤더(예: X-Forwarded-For) 등에 포함시켜 전송

🛡️ 대응 방법

PHP 버전을 5.1.5 이상으로 업데이트하십시오.

🔧 검증 코드

출력된 PHP 버전이 5.1.4 이하인 경우 취약한 상태입니다.

Shell / Script
php -r 'echo PHP_VERSION;'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP