Code-Projects Patient Record Management System SQL Injection Vulnerability in edit_spatient.php

Vulnerability

A critical SQL injection vulnerability has been identified in Code-Projects Patient Record Management System version 1.0. The issue resides in the file edit_spatient.php, where the ID parameter is manipulated, allowing for unrestricted SQL injection. This vulnerability can be exploited remotely, potentially leading to unauthorized access to sensitive information in the server database.

Impact

Exploitation of this vulnerability allows for SQL injection, where an attacker can interfere with the application's database queries. This could lead to unauthorized data access, data manipulation, or in some cases, executing administrative operations on the database.

Reproduction

To reproduce this vulnerability, send a GET request to the edit_spatient.php file with a crafted ID parameter. The request can be made using a web browser or a tool like cURL or Postman. Ensure that the PHP session cookie is included in the request to maintain the session.

Added: Jun 9, 2025, 7:46 PM
Updated: Jun 9, 2025, 7:46 PM

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
2.5
exploitability
6.2
remediation
0.0
relevance
0.0
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.