Executive brief
SourceCodester Hospitals Patient Records Management System 1.0 contains a security flaw in its administrative interface. An attacker can inject malicious scripts into the system's room management page, which could lead to the theft of administrator session data or unauthorized actions being performed on behalf of a legitimate user. This could compromise the privacy of patient records and the integrity of the hospital management system.
Technical details
A cross-site scripting (XSS) vulnerability exists in SourceCodester Hospitals Patient Records Management System 1.0 within the '/admin/?page=room_types' component. The vulnerability is caused by a failure to properly sanitize or encode the 'room' parameter before it is rendered in the web interface. A remote attacker can exploit this by injecting malicious JavaScript, which executes in the context of a victim's browser when they visit the affected page. While some reports suggest no authentication is required, the CVSS metrics indicate high privileges (PR:H) or administrative access may be necessary to reach the vulnerable parameter. Successful exploitation can lead to session hijacking, cookie theft, or unauthorized administrative actions. No official patch is currently documented.
Affected products
- SourceCodester Hospitals Patient Records Management System 1.0
Timeline
- 2026-05-20: disclosed: Vulnerability details and PoC shared on GitHub.
- 2026-06-08: advisory: NVD published the CVE record.