WP Hotel Booking <= 2.1.0 - Unauthenticated SQL Injection
No fixed version listed yet.Check the vendor advisory. References ↓
thimpress · WP Hotel Booking
The WP Hotel Booking plugin for WordPress, from thimpress, contains an SQL injection flaw in the 'room_type' parameter of its /wphb/v1/rooms/search-rooms REST API endpoint, caused by insufficient escaping and a lack of prepared statements around the query. An unauthenticated attacker with network access can append additional SQL queries to the existing query over that endpoint, without needing credentials or any user interaction, to extract sensitive information from the database.
Official description · CVE.org
The WP Hotel Booking plugin for WordPress is vulnerable to SQL Injection via the 'room_type' parameter of the /wphb/v1/rooms/search-rooms REST API endpoint in all versions up to, and including, 2.1.0 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.
- Exploited
- Yes, in VulnCheck KEV
- Reports
- 0
- Tactics
- 0/15
Exploitation timelineDated milestones for a CVE: when it was disclosed, when exploit code became public, when exploitation was confirmed, and when threat reports named it.
First seen exploited 22 months after disclosure. Public exploit code (PoC-in-GitHub) appeared 7 months after disclosure.
- Disclosedday 0
- Public exploit codePoC-in-GitHub+7 mo
- First seen exploitedVulnCheck KEV evidence+22 mo
Affected versions and fixes
as published in the CVE recordthimpress WP Hotel Booking
Affected: <= 2.1.0