SourceCodester Hotel Reservation System SQL Injection Vulnerability in UpdateAbout.php

Vulnerability

A SQL injection vulnerability has been identified in SourceCodester Hotel Reservation System version 1.0. The issue resides in the admin/updateabout.php file, where the address parameter is manipulated, allowing for arbitrary SQL code execution. This vulnerability can be exploited remotely, without authentication.

Impact

Exploitation of this vulnerability allows attackers to inject arbitrary SQL commands, potentially leading to unauthorized database access, data manipulation, and control over the application environment.

Reproduction

The vulnerability can be reproduced by sending a POST request to the admin/updateabout.php file with a crafted address parameter that includes SQL injection 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 parameterized queries to prevent SQL injection. Additionally, input validation and sanitization should be implemented to ensure that only expected data is processed. Regular security audits and updating deprecated libraries can also help mitigate such vulnerabilities.

Added: Sep 1, 2025, 7:20 PM
Updated: Sep 1, 2025, 7:20 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
5.0
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.