Code-Projects Responsive Hotel Site SQL Injection Vulnerability in Usersetting.php

Vulnerability

A SQL injection vulnerability has been identified in Code-Projects Responsive Hotel Site version 1.0. The issue arises in the file /admin/usersetting.php, where the 'usname' parameter is not properly validated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, without the need for authentication, potentially leading to unauthorized database access, data manipulation, and leakage of sensitive information.

Impact

Exploitation of this vulnerability allows for SQL injection, which can be used to access, modify, or delete database information. Additionally, it could lead to unauthorized access to sensitive data and disrupt normal service operations.

Reproduction

The vulnerability can be reproduced by sending a POST request to /admin/usersetting.php with the 'usname' parameter. The request should include a crafted SQL payload that exploits the lack of input validation, such as one that uses SQL injection techniques to manipulate the database query processing.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection vulnerabilities. Additionally, input validation and filtering should be implemented to ensure that user input conforms to expected formats. Minimizing database user permissions and conducting regular security audits can also help enhance overall security.

Added: Nov 12, 2025, 11:18 PM
Updated: Nov 12, 2025, 11:18 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
6.0
remediation
0.0
relevance
1.0
threat
6.4
urgency
2.9
incentive
1.7

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.