itsourcecode Online Doctor Appointment System SQL Injection Vulnerability

Vulnerability

A SQL injection vulnerability has been identified in the Online Doctor Appointment System version 1.0. The issue arises in the file '/admin/appointment_action.php', where the 'appointment_id' parameter is processed without proper validation or sanitization. This flaw allows remote attackers to inject malicious SQL queries, potentially leading to unauthorized database access, data manipulation, and exposure of sensitive information.

Impact

Exploitation of this vulnerability allows attackers to execute arbitrary SQL commands, appended to the original SQL query of the vulnerable endpoint. This could lead to unauthorized data access, data modification or deletion, and in some cases, executing commands on the server under the database user's privileges.

Reproduction

The vulnerability can be reproduced by sending a POST request to the '/admin/appointment_action.php' file with a crafted 'appointment_id' parameter. The injection can be verified by using payloads that exploit SQL injection vulnerabilities, such as boolean-based blind, time-based blind, or UNION-based injection techniques.

Remediation

To address this vulnerability, it is recommended to use prepared statements and parameter binding to prevent SQL injection. Additionally, input validation and filtering should be implemented to ensure user input conforms to expected formats. Minimizing database user permissions and conducting regular security audits can also help enhance overall security.

Added: Mar 20, 2026, 6:18 AM
Updated: Mar 20, 2026, 6:18 AM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
3.1
exploitability
8.7
remediation
0.0
relevance
4.2
threat
6.4
urgency
2.9
incentive
4.2

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