SourceCodester Eye Clinic Management System SQL Injection Vulnerability

Vulnerability

A SQL injection vulnerability has been identified in SourceCodester Eye Clinic Management System version 1.0. The issue resides in the file '/main/search_index_Diagnosis.php', where the 'search' 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 be used to access, modify, or delete database information. Additionally, it could lead to unauthorized access to the system or cause a denial of service.

Reproduction

The vulnerability can be reproduced by sending a POST request to '/main/search_index_Diagnosis.php' with the 'search' parameter. Various payloads can be used to exploit the vulnerability, including boolean-based blind injection, time-based blind injection, and UNION-based injection. The injection takes advantage of the application's failure to properly sanitize user input, allowing for manipulation of SQL queries executed by the database.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection. Input validation and filtering should be implemented to ensure user input conforms to expected formats. Additionally, database user permissions should be minimized to the least necessary for operations.

Added: Sep 1, 2025, 9:20 AM
Updated: Sep 1, 2025, 9:20 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
8.7
remediation
0.0
relevance
0.5
threat
6.4
urgency
2.9
incentive
5.8

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