| 제목 | Patrick Mvuma Patients Waiting Area Queue Management System 1.0 SQLi |
|---|
| 설명 | SQLI-01 (pqms/php/api_patient_schedule.php → appointmentID (GET))
Title: SQL Injection via appointmentID in Appointment Lookup
What is the vulnerability?
The application contains a SQL Injection vulnerability in the appointment lookup functionality implemented in pqms/php/api_patient_schedule.php. The endpoint accepts a user-supplied appointmentID parameter via the HTTP GET method and passes it directly into a SQL query using string concatenation without input sanitization or prepared statements.
The vulnerable SQL logic resembles:
WHERE a.reference_number = '$reference_number'
Because appointmentID is attacker-controlled, an attacker can inject arbitrary SQL logic into the query.
Proof of Concept:
curl "http://localhost/pqms/php/api_patient_schedule.php?appointmentID=APT001' OR '1'='1' -- -" |
|---|
| 사용자 | bobsux (UID 94358) |
|---|
| 제출 | 2026. 01. 09. PM 08:08 (9 개월 ago) |
|---|
| 모더레이션 | 2026. 01. 18. PM 02:46 (9 days later) |
|---|
| 상태 | 중복 |
|---|
| VulDB 항목 | 332582 [SourceCodester Patients Waiting Area Queue Management System 1.0 api_patient_schedule.php appointmentID SQL 주입] |
|---|
| 포인트들 | 0 |
|---|