🇰🇷 한글 설명
kishan0725 병원 관리 시스템의 Appointment Cancellation Handler 구성 요소 내 admin-panel.php 파일에서 SQL 인젝션 취약점이 발견되었습니다. ID 인자를 조작하여 원격에서 데이터베이스를 공격할 수 있으며, 이미 공개된 익스플로잇이 존재합니다.
💡 쉬운 설명
병원 관리 프로그램의 특정 메뉴에서 입력값을 조작해 데이터베이스를 마음대로 조작할 수 있는 보안 약점이 발견되었습니다. 해커가 원격에서 이 약점을 이용해 중요한 환자 정보를 훔치거나 삭제할 수 있습니다.
🇺🇸 원문 (English)
A weakness has been identified in kishan0725 Hospital Management System up to 777fda46b77a820977a5ba616283dbfbc40bf7e1. This affects the function mysqli_query of the file admin-panel.php of the component Appointment Cancellation Handler. Executing a manipulation of the argument ID can lead to sql injection. The attack may be launched remotely. The exploit has been made available to the public and could be used for attacks. The project was informed of the problem early through an issue report but has not responded yet.
📍 영향받는 시스템
kishan0725 Hospital Management System (commit 777fda46b77a820977a5ba616283dbfbc40bf7e1 이하 버전)
⚔️ 공격 벡터
원격에서 admin-panel.php의 ID 인자 값을 조작하여 SQL 쿼리를 실행하는 방식
🛡️ 대응 방법
mysqli_query 함수 사용 시 Prepared Statements를 적용하여 SQL 인젝션을 방지하고 입력값 검증을 강화해야 합니다.
🔧 검증 코드
명령어 결과에서 ID 인자가 Prepared Statement 없이 직접 쿼리에 포함되어 있는지 확인합니다.
grep -r "mysqli_query" admin-panel.php | grep "ID"