SourceCodester Hotel and Lodge Management System SQL Injection Vulnerability in del_booking.php

Vulnerability

A SQL injection vulnerability has been identified in SourceCodester Hotel and Lodge Management System version 1.0. The issue resides in the del_booking.php file, where insufficient input validation of the 'id' parameter allows attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, potentially leading to unauthorized database access, data manipulation, and exposure of sensitive information.

Impact

Exploitation of this vulnerability allows for SQL injection, where attackers can manipulate database queries to gain unauthorized access to the database, modify or delete data, and access sensitive information. This poses a significant risk to the application's data integrity and security.

Reproduction

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

Remediation

To address this vulnerability, it is recommended to implement input validation and sanitization for the 'id' parameter, use prepared statements to prevent SQL injection, and conduct regular security audits to identify and fix potential vulnerabilities.

Added: Oct 7, 2025, 7:09 PM
Updated: Oct 7, 2025, 7:33 PM

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
3.1
exploitability
9.1
remediation
0.0
relevance
0.6
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.