Campcodes Online Hotel Reservation System SQL Injection Vulnerability in Room Editing Function

Vulnerability

A critical SQL injection vulnerability has been identified in Campcodes Online Hotel Reservation System version 1.0. The issue resides in the admin/edit_room.php file, where the room_id parameter is manipulated, allowing attackers to execute arbitrary SQL queries. This vulnerability can be exploited remotely and has been publicly disclosed.

Impact

Exploitation of this vulnerability allows for unauthorized access to the database, potential leakage or manipulation of sensitive data, and could lead to a complete compromise of the system, including disruption of services.

Reproduction

The vulnerability can be reproduced by sending a request to the admin/edit_room.php page with a crafted room_id parameter that includes SQL injection payloads. This can be done using tools like sqlmap, which can automate the injection process and exploit the vulnerability to extract database information.

Remediation

It is recommended to use prepared statements and parameter binding to prevent SQL injection, validate and filter user input, minimize database user permissions, and conduct regular security audits.

Added: Jul 31, 2025, 12:17 PM
Updated: Jul 31, 2025, 12:17 PM

Vulnerability Rating

Custom Algorithm
spread
0.0
impact
7.5
exploitability
8.7
remediation
0.0
relevance
0.3
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.