PHPGurukul Hospital Management System SQL Injection Vulnerability in view-medhistory.php

Vulnerability

A critical SQL injection vulnerability has been identified in PHPGurukul Hospital Management System version 1.0. The issue resides in the view-medhistory.php file, where the viewid parameter is manipulated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, without any authentication, potentially leading to unauthorized database access, data modification or deletion, and exposure of sensitive information.

Impact

Exploitation of this vulnerability allows for SQL injection, which could lead to unauthorized database access, manipulation or deletion of data, and exposure of sensitive information.

Reproduction

The vulnerability can be reproduced by sending a GET request to view-medhistory.php with a crafted viewid parameter that includes malicious SQL payloads. This can be done manually or using automated tools like sqlmap, which can exploit the vulnerability and extract data from the database.

Remediation

No specific remediation is known, but general best practices for preventing SQL injection should be followed, such as using prepared statements and parameterized queries, validating and sanitizing user input, and minimizing database user privileges.

Added: Jul 8, 2025, 12:38 PM
Updated: Jul 8, 2025, 12:38 PM

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
7.5
exploitability
9.1
remediation
0.0
relevance
0.2
threat
6.4
urgency
2.9
incentive
10.0

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