CVE-2024-25315

Code-projects Hotel Managment System 1.0, allows SQL Injection via the 'rid' parameter in Hotel/admin/roombook.php?rid=2

Critical · published February 9, 2024

CVSS v3.1
9.8
EPSS
1%
Percentile
53.9
In the wild
Unconfirmed
What it is

🚨 Just one sneaky parameter is all it takes! The SQL injection vulnerability in the Hotel Management System can potentially expose your entire database – talk about a room service nightmare! 🔥 Think of this like a hotel receptionist who takes any request without checking if the guest has a valid reservation. If someone simply asks for a room number, they might accidentally hand out keys to all the guest rooms without verifying their identity! An attacker could exploit this vulnerability to manipulate the database, gaining access to sensitive information like guest details, financial records, or even the ability to alter reservations. The stakes are high, and it could lead to a catastrophic breach of privacy and security!

Put simply

Think of this like a hotel receptionist who takes any request without checking if the guest has a valid reservation. If someone simply asks for a room number, they might accidentally hand out keys to all the guest rooms without verifying their identity! This SQL injection vulnerability occurs via the 'rid' parameter in the roombook.php script, allowing attackers to inject malicious SQL queries into the database without proper authentication or validation.

What to do

An attacker could exploit this vulnerability to manipulate the database, gaining access to sensitive information like guest details, financial records, or even the ability to alter reservations. The stakes are high, and it could lead to a catastrophic breach of privacy and security! Immediate action is crucial: patch the Hotel Management System to the latest version and sanitize all user inputs, especially the 'rid' parameter, to prevent any SQL injection attacks. Implement prepared statements in your database queries for added security! You've got this! Follow these steps, and you'll have your system locked down in no time! 🛡️

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.00734 · 53.9th percentile
Published
2024-02-09T00:00Z
EPSS history
Timeline
  • 09 FEB 00:00Z
    Code-projects Hotel Managment System 1.0, allows SQL Injection via the 'rid' parameter in Hotel/admin/roombook.php?rid=2
    cvelistv5