CVE-2024-25314

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

Critical · published February 9, 2024

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

🚨 A single vulnerable parameter opens the door wide for attackers! The Hotel Management System 1.0 has a critical SQL injection flaw via the 'sid' parameter that could spell disaster. 🔥 Think of the 'sid' parameter as a hotel keycard that grants access to every room — if someone can manipulate it, they can go anywhere they please without checking in! An attacker could exploit this vulnerability to execute arbitrary SQL queries, gaining access to sensitive data, modifying records, or even deleting everything in the database. Imagine a rogue guest wandering through every room, stealing valuables and leaving chaos in their wake! This could lead to absolute havoc for the hotel and its clients.

Put simply

Think of the 'sid' parameter as a hotel keycard that grants access to every room — if someone can manipulate it, they can go anywhere they please without checking in! The SQL injection vulnerability stems from improper sanitization of the 'sid' parameter in the Hotel/admin/show.php file, allowing attackers to craft malicious SQL statements that the database will execute.

What to do

An attacker could exploit this vulnerability to execute arbitrary SQL queries, gaining access to sensitive data, modifying records, or even deleting everything in the database. Imagine a rogue guest wandering through every room, stealing valuables and leaving chaos in their wake! This could lead to absolute havoc for the hotel and its clients. Immediately patch to the latest version of the Hotel Management System or apply a fix that sanitizes the 'sid' parameter properly. Additionally, implement prepared statements to prevent SQL injection in the future. You've got this! Follow these steps and let's lock this down for good! 🛡️

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 'sid' parameter in Hotel/admin/show.php?sid=2
    cvelistv5