🇰🇷 한글 설명
PHP-Stats 0.1.9.1 이하에서 admin.php의 option[language], option[template] 파라미터의 디렉토리 트래버설 취약점으로 원격 공격자가 임의의 파일을 읽고 실행할 수 있으며, CVE-2006-1085와 결합 시 인증 없이 공격 가능합니다.
💡 쉬운 설명
웹 애플리케이션이 "../" 경로 입력을 검증하지 않아 보호된 파일에 접근할 수 있습니다. 공격자가 이를 통해 민감한 설정 파일이나 코드를 읽거나 실행할 수 있습니다.
🇺🇸 원문 (English)
Multiple directory traversal vulnerabilities in PHP-Stats 0.1.9.1 and earlier allow remote attackers to read and possibly execute arbitrary files via a .. (dot dot) in the (1) option[language] and (2) option[template] parameters, and (3) possibly other parameters, to (a) admin.php and (b) other unspecified scripts. NOTE: the admin.php/option[language] vector can be used by remote unauthenticated attackers to include arbitrary files in conjunction with CVE-2006-1085.
📍 영향받는 시스템
PHP-Stats 0.1.9.1 이하
⚔️ 공격 벡터
admin.php 파라미터 option[language]=../../../../etc/passwd 또는 option[template]=../../ 형태의 디렉토리 트래버설 입력
🛡️ 대응 방법
PHP-Stats를 최신 버전으로 업그레이드하고 모든 사용자 입력에서 ".." 문자열 필터링 적용
🔧 검증 코드
root 또는 bin 사용자 정보가 출력되면 취약점이 존재하며, 권한된 환경에서만 테스트하세요.
curl -s 'http://target/admin.php' -G --data-urlencode 'option[language]=../../../etc/passwd' 2>/dev/null | grep -E '^root:|^bin:'