CVE-2024-3605CWE-89

WP Hotel Booking <= 2.1.0 - Unauthenticated SQL Injection

Critical · published June 20, 2024

CVSS v3.1
10.0
EPSS
4%
Percentile
90.8
In the wild
Unconfirmed
What it is

🚨 An SQL injection vulnerability in the WP Hotel Booking plugin makes it alarmingly easy for attackers to dig into your database! 🔥 Think of this like a restaurant where anyone can walk in and request to see the entire menu, including the secret recipes hidden in the chef's notebook. Here, the 'room_type' parameter is the unwatched door that lets unwelcome eyes peek inside sensitive data. If left unpatched, an attacker could exploit this vulnerability to execute unauthorized SQL commands, potentially exposing sensitive user data or even taking full control of your database. The fallout could be absolutely devastating, leaving guests' information vulnerable and your reputation in tatters.

Put simply

Think of this like a restaurant where anyone can walk in and request to see the entire menu, including the secret recipes hidden in the chef's notebook. Here, the 'room_type' parameter is the unwatched door that lets unwelcome eyes peek inside sensitive data. This vulnerability occurs due to insufficient escaping of user input on the 'room_type' parameter in the /wphb/v1/rooms/search-rooms REST API endpoint, allowing unauthenticated users to inject malicious SQL queries into the existing database command.

What to do

If left unpatched, an attacker could exploit this vulnerability to execute unauthorized SQL commands, potentially exposing sensitive user data or even taking full control of your database. The fallout could be absolutely devastating, leaving guests' information vulnerable and your reputation in tatters. To protect your site, immediately update the WP Hotel Booking plugin to version 2.1.1 or higher. Review your database queries to ensure proper sanitization practices are in place and consider implementing additional security measures such as web application firewalls. You've got this! Follow these steps and your site will be fortified in no time! 🛡️

The record
Technical detail
CVSS v3.1
10.0 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.04152 · 90.8th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2024-06-20T02:08Z
EPSS history
Timeline
  • 20 JUN 02:08Z
    WP Hotel Booking <= 2.1.0 - Unauthenticated SQL Injection
    cvelistv5