PHPGurukal Hospital Management System
cpe:2.3:a:phpgurukul:hospital_management_system:*:*:*:*:*:*:*
- 4.0
A stored Cross-Site Scripting (XSS) vulnerability exists in PHPGurukal Hospital Management System version 4.0. The issue is located in the '/hospital/hms/edit-profile.php' page, where an authenticated attacker (patient) can inject a malicious script into the User Name parameter. This injected script is saved within the application and later executed in the doctor's interface, potentially leading to session hijacking and account takeover.
Exploitation of this vulnerability allows for session hijacking and unauthorized access to the accounts of doctors, along with the associated sensitive information.
To reproduce this vulnerability, log in as an authenticated patient and go to '/hospital/hms/edit-profile.php'. Inject a script payload into the User Name parameter, which will be stored and later executed. After injecting the payload, navigate to '/hospital/hms/book-appointment.php' and create an appointment with a doctor to ensure the payload is executed. Then, log in as a doctor and access the appointment history, where the injected script will execute and steal the session cookie. This cookie can be used to hijack the doctor's session and access their account.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.