🇰🇷 한글 설명
PHPGurukul Hospital Management System 4.0의 /admin/edit-doctor.php 파일에서 docfees 인자 검증 부재로 인한 SQL 주입 취약점입니다. 공격자가 SQL 명령어를 주입하여 데이터베이스를 조작하고 병원의 민감한 정보를 탈취할 수 있습니다.
💡 쉬운 설명
병원 관리 시스템의 의사 정보 편집 페이지에서 입력값 검증이 부실하여, 해커가 데이터베이스 명령어를 직접 실행할 수 있는 문제입니다. 이를 통해 환자 정보나 결제 정보 등 모든 데이터가 유출되거나 변조될 수 있습니다.
🇺🇸 원문 (English)
A vulnerability has been found in PHPGurukul Hospital Management System 4.0. This vulnerability affects unknown code of the file /admin/edit-doctor.php. The manipulation of the argument docfees leads to sql injection. The attack can be initiated remotely. The exploit has been disclosed to the public and may be used.
📍 영향받는 시스템
PHPGurukul Hospital Management System 4.0 이하
⚔️ 공격 벡터
원격 공격자가 /admin/edit-doctor.php의 docfees 매개변수에 악의적인 SQL 코드를 입력하여 데이터베이스 직접 접근
🛡️ 대응 방법
PHPGurukul을 최신 보안 패치 버전으로 즉시 업데이트하고 모든 사용자 입력에 대해 SQL 매개변수화 및 입력 필터링 적용
🔧 검증 코드
설치된 PHPGurukul 위치를 확인하고 edit-doctor.php에서 docfees 매개변수가 prepared statement 없이 사용되고 있는지 확인하여 취약성 존재 여부 판단
grep -r 'PHPGurukul' /var/www/html 2>/dev/null && grep -n 'docfees' /var/www/html/*/admin/edit-doctor.php 2>/dev/null | grep -v 'prepared\|bindParam'