CodeAstro Simple Hospital Management System Cross-Site Scripting Vulnerability

Vulnerability

A stored cross-site scripting vulnerability has been identified in CodeAstro Simple Hospital Management System version 1.0. The issue resides in the POST parameter handler of the /doctor.html file, where user input in the First Name, Last Name, and Address fields is not properly sanitized. This allows attackers to inject malicious scripts that are executed when the page is accessed. The vulnerability can be exploited remotely and requires user interaction.

Impact

Exploitation of this vulnerability allows for stored cross-site scripting, where injected scripts are executed in the context of the user viewing the page.

Reproduction

To reproduce this vulnerability, send a POST request to the /doctor.html file with injected JavaScript in the First Name, Last Name, or Address fields. The injected script will be executed when the page is viewed, demonstrating the cross-site scripting vulnerability.

Added: Jul 8, 2025, 12:19 AM
Updated: Jul 8, 2025, 12:19 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
1.0
exploitability
6.3
remediation
0.0
relevance
0.2
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.