WP Booking System <= 2.1.0.1 - Authenticated (Administrator+) SQL Injection via 'orderby' 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 generic SQL Injection via the 'data[orderby]' 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 administrator-level access and above, to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. Exploitation requires the targeted calendar to have more than 200 bookings, as the orderby value is only forwarded to the database layer when the AJAX handler takes the use_ajax branch; an Administrator can satisfy this condition by creating bookings directly.
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/12923175-4db4-4afc-9e9b-b9f139f24a79?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#L165Referencevia CVE List
- plugins.trac.wordpress.org/browser/wp-booking-system/tags/2.1.0.1/includes/base/admin/booking/class-bookings-outputter.php#L214Referencevia CVE List
- plugins.trac.wordpress.org/browser/wp-booking-system/tags/2.1.0.1/includes/base/admin/booking/functions-actions-booking.php#L219Referencevia 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