SourceCodester Hotel and Lodge Management System SQL Injection Vulnerability

Vulnerability

A SQL injection vulnerability has been identified in SourceCodester Hotel and Lodge Management System version 1.0. The issue resides in the '/edit_curr.php' file, where the 'currsymbol' parameter is manipulated, 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, where attackers can read, modify, or delete data. Additionally, it could lead to unauthorized execution of commands on the server, depending on the application's database interaction.

Reproduction

To reproduce this vulnerability, send a POST request to '/hotel2/edit_curr.php' with the 'currsymbol' parameter containing the injected SQL payload. The injection can be verified by using a SQL injection tool like sqlmap, which can automate the exploitation process and demonstrate the vulnerability by extracting database information.

Remediation

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 mitigate such vulnerabilities.

Added: Oct 8, 2025, 12:19 PM
Updated: Oct 8, 2025, 8:20 PM

Vulnerability Rating

Custom Algorithm
spread
0.3
impact
5.6
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.