🔍 CVE-2007-4485

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

🇰🇷 한글 설명

Butterfly online visitors counter 1.08의 visitor.php에서 구형 PHP 버전의 부적절한 SERVER 슈퍼글로벌 처리로 인한 PHP 원격 파일 포함(RFI) 취약점. _SERVER[DOCUMENT_ROOT] 파라미터 조작을 통해 원격 공격자가 임의의 PHP 코드를 실행할 수 있습니다.

💡 쉬운 설명

방문자 통계 프로그램이 잘못된 설정으로 해커가 원격에서 악의적인 파일을 실행하도록 허용합니다. 구형 PHP 버전을 사용하는 웹서버가 위험합니다.

🇺🇸 원문 (English)

PHP remote file inclusion vulnerability in visitor.php in Butterfly online visitors counter 1.08, when used with certain older versions of PHP with improper SERVER superglobal handling, allows remote attackers to execute arbitrary PHP code via a URL in the _SERVER[DOCUMENT_ROOT] parameter. NOTE: it could be argued that this vulnerability is caused by a problem in PHP and the proper fix should be in PHP; if so, then this should not be treated as a vulnerability in Butterfly online visitors counter.

📍 영향받는 시스템

Butterfly online visitors counter 1.08 및 이하, 구형 PHP 버전(레거시 SERVER 처리) 사용 시스템

⚔️ 공격 벡터

_SERVER[DOCUMENT_ROOT] 파라미터에 원격 URL을 주입하여 악성 PHP 스크립트 실행

🛡️ 대응 방법

Butterfly 최신 버전으로 업그레이트 및 PHP 버전 업데이트, visitor.php에서 DOCUMENT_ROOT 입력값 검증 추가

🔧 검증 코드

visitor.php에서 DOCUMENT_ROOT가 사용자 입력 없이 검증되지 않고 포함된다면 취약, 입력값 검증(basename, realpath 등)이 있으면 안전

Shell / Script
grep -n 'DOCUMENT_ROOT' /var/www/html/*/visitor.php 2>/dev/null && echo '취약함' || echo '미탐지'

📊 CVSS Vector String

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

💻 영향받는 소프트웨어

PHP