🇰🇷 한글 설명
PHPGurukul Hostel Management System 2.1의 /register-complaint.php 파일에서 cdetails 인수 검증 부재로 인한 크로스사이트 스크립팅(XSS) 취약점입니다. 공격자는 악의적인 스크립트를 삽입하여 사용자의 세션을 탈취하거나 개인정보를 유출할 수 있으며, 원격에서 쉽게 공격이 가능합니다.
💡 쉬운 설명
숙소 관리 시스템의 불만 등록 페이지에서 입력값 검증이 부족해서 해커가 악의적인 코드를 삽입할 수 있습니다. 이 코드가 실행되면 다른 사용자의 개인정보 도용이나 시스템 악용이 가능합니다.
🇺🇸 원문 (English)
A flaw has been found in PHPGurukul Hostel Management System 2.1. The impacted element is an unknown function of the file /register-complaint.php. Executing a manipulation of the argument cdetails can lead to cross site scripting. It is possible to launch the attack remotely. The exploit has been published and may be used.
📍 영향받는 시스템
PHPGurukul Hostel Management System 2.1
⚔️ 공격 벡터
/register-complaint.php의 cdetails 파라미터에 JavaScript 코드를 주입하여 브라우저에서 실행
🛡️ 대응 방법
PHPGurukul을 최신 버전으로 업데이트하고, 모든 출력값을 htmlspecialchars()로 인코딩, CSP 헤더 설정
🔧 검증 코드
'Vulnerable endpoint found'가 출력되면 해당 파일이 존재하며 공격 대상이 될 수 있으니 즉시 업데이트 필요
curl -s http://target-ip/register-complaint.php 2>/dev/null | grep -qi 'cdetails' && echo 'Vulnerable endpoint found' || echo 'Endpoint not accessible'