WP Booking System <= 2.1.0.1 - Authenticated (Subscriber+) SQL Injection via 'current_month' Parameter
What fixes it
No source in this snapshot names a fixed version.
Description
The WP Booking System – Booking Calendar plugin for WordPress is vulnerable to time-based SQL Injection via the 'current_month' parameter in all versions up to, and including, 2.1.0.1 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for authenticated attackers, with subscriber-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. This is a regression vulnerability — a capability check introduced in versions 2.0.19.11–2.0.19.14 to address CVE-2024-50425 was removed in version 2.1, meaning any authenticated subscriber-level account can reach the vulnerable handler with no nonce validation required.
Text from CVE List
Affected versions 1
- WP Booking System – Booking Calendaraffected: all versions through 2.1.0.1CVE List
References 7
- wordfence.com/threat-intel/vulnerabilities/id/7c2aba47-a1bf-448d-b5fb-9c9c86e43c98?source=cveReferencevia CVE List
- plugins.trac.wordpress.org/browser/wp-booking-system/tags/2.1.0.1/includes/abstracts/abstract-class-object-db.php#L83Referencevia CVE List
- plugins.trac.wordpress.org/browser/wp-booking-system/tags/2.1.0.1/includes/base/booking/class-object-db-bookings.php#L161Referencevia CVE List
- plugins.trac.wordpress.org/browser/wp-booking-system/tags/2.1.0.1/includes/base/calendar/functions.php#L341Referencevia CVE List
- plugins.trac.wordpress.org/browser/wp-booking-system/tags/2.1.0.1/includes/base/admin/calendar/functions-actions-ajax-calendar.php#L44Referencevia CVE List
- plugins.trac.wordpress.org/changeset?old=3732620&old_path=%2Fwp-booking-system%2Ftrunk&new=&new_path=%2Fwp-booking-system%2FtrunkReferencevia CVE List
- plugins.trac.wordpress.org/changeset?reponame=&new=3736389%40wp-booking-system%2Ftags%2F2.1.0.2&old=3732637%40wp-booking-system%2Ftags%2F2.1.0.1Referencevia CVE List