🇰🇷 한글 설명
PHPGurukul Hospital Management System 4.0의 /admin/doctor-specilization.php 파일에서 doctorspecilization 매개변수를 통한 SQL 삽입 취약점이 발견되었습니다. 원격으로 인증 없이 공격 가능하며, 이미 공개된 취약점입니다.
💡 쉬운 설명
병원 관리 시스템의 관리자 페이지에서 의사 전문 분야를 입력받는 부분에 악의적인 데이터베이스 명령어를 삽입할 수 있습니다. 공격자가 데이터베이스의 모든 정보(환자 정보, 의료 기록 등)를 탈취하거나 변조할 수 있습니다.
🇺🇸 원문 (English)
A vulnerability was identified in PHPGurukul Hospital Management System 4.0. This affects an unknown part of the file /admin/doctor-specilization.php. The manipulation of the argument doctorspecilization leads to sql injection. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.
📍 영향받는 시스템
PHPGurukul Hospital Management System 버전 4.0 및 이전 버전
⚔️ 공격 벡터
HTTP GET/POST 요청을 통해 /admin/doctor-specilization.php의 doctorspecilization 매개변수에 SQL 인젝션 페이로드 전송
🛡️ 대응 방법
PHPGurukul을 최신 버전으로 업그레이드하고, 입력값 검증 및 준비된 SQL 문(Prepared Statement) 사용으로 쿼리 매개변수화
🔧 검증 코드
SQL 에러 메시지나 비정상적인 데이터 응답이 나타나면 취약점 존재 가능성 높음. 실제 테스트는 권한 있는 대상에서만 수행 필요
curl -s 'http://target/admin/doctor-specilization.php?doctorspecilization=1%27%20OR%20%271%27=%271' | grep -i 'error\|sql\|exception' || echo 'Check response for unexpected data'