Code-Projects Simple Online Hotel Reservation System SQL Injection Vulnerability in Delete Account Functionality

Vulnerability

A critical SQL injection vulnerability has been identified in the Code-Projects Simple Online Hotel Reservation System version 1.0. The issue resides in the admin/delete_account.php file, where the admin_id parameter is manipulated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely without 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 manipulate database queries, access or modify database information, and execute administrative operations on the database.

Reproduction

The vulnerability can be reproduced by sending a GET request to the admin/delete_account.php file with a crafted admin_id parameter that includes malicious SQL payloads. This can be done using tools 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, minimize database user permissions, and conduct regular security audits.

Added: Jun 24, 2025, 8:17 PM
Updated: Jun 24, 2025, 8:17 PM

Vulnerability Rating

Custom Algorithm
spread
2.2
impact
7.5
exploitability
9.7
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.