🔍 CVE-2007-2087

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

🇰🇷 한글 설명

CNStats 2.12에서 register_globals 활성화 및 .htaccess 미인식 환경에서 reports/ 디렉토리의 who_r.php, who_s.php의 bn 매개변수를 통한 원격 파일 포함(RFI) 취약점. 원격 공격자가 악성 URL을 입력하여 서버에서 임의의 PHP 코드를 실행할 수 있습니다.

💡 쉬운 설명

CNStats 통계 프로그램에서 외부 파일을 불러오는 기능에 결함이 있어 공격자가 원격에서 악성 코드를 주입하고 실행할 수 있습니다. 특정 URL 파라미터를 조작하면 서버 권한으로 코드 실행이 가능합니다.

🇺🇸 원문 (English)

Multiple PHP remote file inclusion vulnerabilities in CNStats 2.12, when register_globals is enabled and .htaccess is not recognized, allow remote attackers to execute arbitrary PHP code via a URL in the bn parameter to (1) who_r.php or (2) who_s.php in reports/. NOTE: the provenance of this information is unknown; the details are obtained solely from third party information.

📍 영향받는 시스템

CNStats 2.12 (register_globals 활성화, .htaccess 미인식 환경)

⚔️ 공격 벡터

reports/who_r.php 또는 reports/who_s.php의 bn 파라미터에 원격 PHP 파일 경로를 입력하여 원격 코드 실행

🛡️ 대응 방법

php.ini에서 register_globals를 Off로 설정하거나 CNStats를 최신 버전으로 업데이트, .htaccess 설정 확인

🔧 검증 코드

who_r.php 파일이 검출되고 register_globals가 On이면 취약점 대상 시스템이므로 즉시 업데이트 또는 설정 변경 필요

Shell / Script
find / -path '*/reports/who_r.php' 2>/dev/null | head -1 && php -i | grep -i register_globals

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP