PT-2024-26863 · WordPress · Wp Hotel Booking

Krzysztof Zając

·

Published

2024-06-20

·

Updated

2026-02-12

·

CVE-2024-3605

CVSS v3.1

10

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions WP Hotel Booking plugin for WordPress versions up to, and including, 2.1.0
Description The issue allows for SQL Injection via the room type parameter of the "/wphb/v1/rooms/search-rooms" REST API endpoint due to insufficient escaping on the user-supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database.
Recommendations For versions up to, and including, 2.1.0, update to a version that includes a fix for this issue to prevent SQL Injection attacks. As a temporary workaround, consider restricting access to the "/wphb/v1/rooms/search-rooms" API endpoint to minimize the risk of exploitation. Avoid using the room type parameter in the affected API endpoint until the issue is resolved.

Fix

SQL injection

Weakness Enumeration

Related Identifiers

CVE-2024-3605

Affected Products

Wp Hotel Booking