Executive brief
SourceCodester Hospitals Patient Records Management System 1.0 is a web-based application used to manage medical patient records. A security vulnerability allows remote attackers to manipulate database queries without needing to log in. This could lead to the theft of sensitive patient data, unauthorized modification of medical records, or a complete shutdown of the system.
Technical details
A SQL injection vulnerability exists in SourceCodester Hospitals Patient Records Management System 1.0 within the '/classes/Users.php?f=delete' endpoint. The root cause is the improper neutralization of the 'id' parameter, which is used directly in SQL queries without sufficient validation or sanitization. An unauthenticated remote attacker can exploit this by sending crafted POST requests containing malicious SQL payloads (including boolean-based blind, time-based blind, and UNION-based techniques). Successful exploitation allows for unauthorized database access, data exfiltration, and potential system compromise. A public exploit (PoC) has been released.
Affected products
- SourceCodester Hospitals Patient Records Management System 1.0
Timeline
- 2026-05-06: disclosed: Vulnerability details and PoC shared on GitHub.
- 2026-05-31: advisory: NVD and VulDB publish advisory.