CVE-2024–1207: A Deep Dive into WordPress Plugin Vulnerability
The WP Booking Calendar plugin fails to properly escape the calendar_request_params[dates_ddmmyy_csv] parameter and does not prepare its SQL query, allowing unauthenticated attackers to inject SQL and access sensitive database information.
systemweakness.com
Published on systemweakness.com
WordPress powers a significant portion of the web, the security of plugins becomes paramount.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
The plugin concatenates user input directly into an SQL query without proper escaping or parameterisation.
Impact
An unauthenticated attacker could execute unauthorised SQL queries, compromising the confidentiality, integrity, and availability of the website's data.
What the attacker needed
WordPress site with WP Booking Calendar ≤ 9.9; no authentication needed
The fix
The plugin was fixed in version 9.9.1; the underlying fix is to use prepared statements and validate input.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
This is a SQL injection bug in a WordPress plugin. The plugin takes a date value from a user and puts it directly into a database command without cleaning it first. An attacker can send a special date value that tricks the database into running extra commands, which could reveal or destroy data.
What is SQL injection?
Input reaches a database query as code, letting an attacker read or change data the application never meant to expose.