WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact
WPScan
How it worksPricing
Vulnerabilities
WordPressPluginsThemesStatsSubmit vulnerabilities
For developers
StatusAPI detailsCLI scanner
Contact

WordPress Plugin Vulnerabilities

Advanced Booking Calendar < 1.7.0 - Unauthenticated SQL Injection

Description

The plugin does not validate and escape the calendar parameter before using it in a SQL statement via the abc_booking_getSingleCalendar AJAX action (available to both unauthenticated and authenticated users), leading to an unauthenticated SQL injection

Proof of Concept

1. Install the vulnerable plugin (advanced-booking-calendar version 1.6.9)
2. Create a new calendar (the specific configuration shouldn't matter - we just need the shortcode)
3. Create a new page with the shortcode you receive when you finish creating a calendar
4. Visit the just created page and extract the nonce (search for abc_nonce in the source)
5. Invoke the following command to induce a 5 second sleep

curl -i http://example.com/wp-admin/admin-ajax.php --data 'action=abc_booking_getSingleCalendar&abc_nonce=7d55255d19&uniqid=620ff6dacd7f8&month=3&calendar=(SELECT 4061 FROM (SELECT(SLEEP(5)))GjRo)'

Note:
+ "abc_nonce" is the required nonce
+ "uniqid" can be a random string
+ "month" should be provided and be a valid int (a month in a year)
+ "calendar" is the injection point
 

Affects Plugins

advanced-booking-calendar
Fixed in version 1.7.0

References

CVE
CVE-2022-0694
URL
https://plugins.trac.wordpress.org/changeset/2682086

Classification

Type

SQLI

OWASP top 10
A1: Injection
CWE
CWE-89

Miscellaneous

Original Researcher

cydave

Submitter

cydave

Submitter website
https://cyllective.com/
Submitter twitter
cyllective
Verified

Yes

WPVDB ID
990d1b0a-dbd1-42d0-9a40-c345407c6fe0

Timeline

Publicly Published

2022-02-28 (about 1 years ago)

Added

2022-02-28 (about 1 years ago)

Last Updated

2022-04-16 (about 1 years ago)

Our Other Services

WPScan WordPress Security Plugin
WPScan

Vulnerabilities

WordPressPluginsThemesOur StatsSubmit vulnerabilities

About

How it worksPricingWordPress pluginNewsContact

For Developers

StatusAPI detailsCLI scanner

Other

PrivacyTerms of serviceSubmission termsDisclosure policyPrivacy Notice for California Users
jetpackIn partnership with Jetpack
githubtwitterfacebook
Angithubendeavor
Work With Us