🇰🇷 한글 설명
PHPGurukul Car Rental Project 3.0의 /carrental/search.php 파일에서 autofocus 매개변수를 조작하여 XSS 공격이 가능한 취약점입니다. 입력값이 제대로 검증되지 않아 악의적인 스크립트 코드를 삽입할 수 있으며, 원격에서 공격이 가능하고 공개된 공격 코드가 존재합니다.
💡 쉬운 설명
웹사이트의 검색 기능에서 사용자 입력을 제대로 검증하지 않아 악의적인 코드를 삽입할 수 있습니다. 이를 통해 다른 사용자의 브라우저에서 원치 않는 동작을 실행시키거나 개인정보를 탈취할 수 있습니다.
🇺🇸 원문 (English)
A flaw has been found in PHPGurukul Car Rental Project 3.0. Affected by this issue is some unknown functionality of the file /carrental/search.php. Executing manipulation of the argument autofocus can lead to cross site scripting. It is possible to launch the attack remotely. The exploit has been published and may be used.
📍 영향받는 시스템
PHPGurukul Car Rental Project 3.0
⚔️ 공격 벡터
/carrental/search.php의 autofocus 매개변수에 JavaScript 코드를 삽입하는 Reflected XSS 공격
🛡️ 대응 방법
PHPGurukul을 최신 버전으로 업그레이드하거나 입력값 검증 및 HTML 이스케이프 처리를 적용하여 XSS 방지
🔧 검증 코드
명령어에서 'Vulnerable'이 출력되면 해당 파일이 존재하고 autofocus 매개변수를 처리하고 있으므로 취약점 여부를 수동으로 검증 필요
test -f /var/www/html/carrental/search.php && grep -q 'autofocus' /var/www/html/carrental/search.php && echo 'Vulnerable' || echo 'Not vulnerable or not installed'