SourceCodester Hotel Management System
cpe:2.3:a:hotel_management_system_project:hotel_management_system:*:*:*:*:*:*:*
- 1.0
A SQL injection vulnerability has been identified in SourceCodester Hotel Management System version 1.0. The issue resides in the file '/index.php/reservation/check', where the 'room_type' parameter is manipulated, allowing attackers to inject malicious SQL queries. This vulnerability can be exploited remotely, without the need for authentication.
Exploitation of this vulnerability allows attackers to execute arbitrary SQL commands, potentially leading to unauthorized database access, data manipulation, and in some cases, remote code execution.
To reproduce this vulnerability, send a POST request to '/index.php/reservation/check' with the 'room_type' parameter. Inject a crafted SQL payload that exploits the application's SQL query handling. The vulnerability can be verified by observing the application's response for SQL error messages or by using a tool like sqlmap to automate the exploitation process.
To address this vulnerability, it is recommended to use prepared statements and parameter binding to prevent SQL injection. Additionally, validate and filter user input to ensure it meets expected formats. Minimizing database user permissions and conducting regular security audits can further enhance the application's security.
Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.