🇰🇷 한글 설명
PHPGurukul Restaurant Table Booking System 1.0의 /check-status.php 파일에서 searchdata 매개변수를 통한 Cross-Site Scripting(XSS) 취약점이 존재합니다. 공격자가 악의적인 JavaScript 코드를 삽입하여 사용자의 브라우저에서 실행할 수 있으며, 이미 공개되어 악용 가능합니다.
💡 쉬운 설명
식당 예약 시스템의 검색 기능에서 악의적인 코드를 입력하면 방문자의 브라우저에서 실행될 수 있는 문제입니다. 개인정보 탈취나 세션 가로채기 등의 피해가 발생할 수 있습니다.
🇺🇸 원문 (English)
A vulnerability, which was classified as problematic, has been found in PHPGurukul Restaurant Table Booking System 1.0. Affected by this issue is some unknown functionality of the file /check-status.php. The manipulation of the argument searchdata leads to cross site scripting. The attack may be launched remotely. The exploit has been disclosed to the public and may be used.
📍 영향받는 시스템
PHPGurukul Restaurant Table Booking System 1.0
⚔️ 공격 벡터
searchdata 파라미터에 <script> 태그 삽입으로 원격 XSS 공격 가능
🛡️ 대응 방법
시스템을 최신 버전으로 업그레이드하고, 입력값 검증 및 HTML 인코딩으로 XSS 방지
🔧 검증 코드
응답에 script 태그나 JavaScript가 평문으로 포함되면 취약점 확인, 인코딩되어 있으면 안전
curl -s 'http://localhost/check-status.php?searchdata=%3Cscript%3Ealert(1)%3C/script%3E' | grep -i '<script\|alert' && echo 'VULNERABLE' || echo 'OK'