Code-Projects Simple Online Hotel Reservation System SQL Injection Vulnerability

Vulnerability

A SQL injection vulnerability has been identified in Code-Projects Simple Online Hotel Reservation System version 1.0. The issue arises in the file '/admin/edit_account.php', where the 'admin_id' parameter is improperly validated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, without any authentication.

Impact

Exploitation of this vulnerability allows unauthorized access to the database, manipulation of data, leakage of sensitive information, and potential disruption of services.

Reproduction

The vulnerability can be reproduced by sending a GET request to '/admin/edit_account.php' with a crafted 'admin_id' parameter that includes malicious SQL payloads. This can be done using a tool like sqlmap, which automates the process of finding and exploiting SQL injection vulnerabilities.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection, validate and filter user input, and minimize database user permissions.

Added: Nov 14, 2025, 4:21 PM
Updated: Nov 14, 2025, 4:45 PM

Vulnerability Rating

Custom Algorithm
spread
2.2
impact
3.1
exploitability
9.7
remediation
0.0
relevance
1.1
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.