🔍 CVE-2006-0887

7.5
CVSS Score
HIGH
2006-02-25
2026-04-16 00:27
✅ 완료

🇰🇷 한글 설명

PHPLib의 sessions.inc에서 발생하는 평가(eval) 주입 취약점으로, 서버에 index.php3이 있을 때 악용 가능합니다. 공격자가 쿠키에 base64로 인코딩된 PHP 코드를 포함시켜 세션 처리 과정에서 임의의 PHP 코드를 원격 실행할 수 있습니다.

💡 쉬운 설명

오래된 PHP 라이브러리의 보안 결함으로, 공격자가 브라우저 쿠키에 악의적인 코드를 숨겨 서버가 자동으로 실행하게 할 수 있습니다. 로그인 정보처럼 보이는 쿠키를 통해 서버 시스템을 완전히 장악할 수 있다는 뜻입니다.

🇺🇸 원문 (English)

Eval injection vulnerability in sessions.inc in PHP Base Library (PHPLib) before 7.4a, when index.php3 from the PHPLib distribution is available on the server, allows remote attackers to execute arbitrary PHP code by including a base64-encoded representation of the code in a cookie. NOTE: this description was significantly updated on 20060605 to reflect new details after an initial vague advisory.

📍 영향받는 시스템

PHP Base Library (PHPLib) 7.4a 미만 버전, index.php3이 배포된 웹 서버

⚔️ 공격 벡터

HTTP 쿠키에 base64로 인코딩된 PHP 코드를 삽입하여 sessions.inc 처리 시 코드 실행 유도

🛡️ 대응 방법

PHPLib를 7.4a 이상으로 업그레이드하거나 index.php3 파일 제거, 쿠키 입력값 검증 강화

🔧 검증 코드

index.php3 또는 sessions.inc 파일이 발견되면 취약 버전 가능성 높음. 파일이 없으면 안전

Shell / Script
find / -name 'index.php3' 2>/dev/null || find / -name 'sessions.inc' -exec grep -l 'PHPLib' {} \; 2>/dev/null

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP