Skip to main content
Live Webinar with SANS (June 25)— Agentic CTI Automation for Fun & ProfitRegister Free
Mallory
CriticalCISA KEVExploited in the wildPublic exploit

Authentication Bypass in SonicWall SonicOS SSLVPN

IdentifiersCVE-2024-53704CWE-287· Improper Authentication

CVE-2024-53704 is an improper authentication vulnerability in the SonicWall SonicOS SSLVPN authentication mechanism. Affected SonicOS versions include 7.1.x through 7.1.1-7058, 7.1.2-7019, and 8.0.0-8035. Public reporting and reverse-engineering analysis indicate the flaw is in SSLVPN session handling and cookie processing, where crafted Base64-encoded session cookie data containing null bytes can trigger incorrect session validation. Bishop Fox reported the vulnerable logic in the SSLVPN flow associated with /cgi-bin/sslvpnclient and identified the swap cookie as the practical injection point. Successful exploitation allows a remote, unauthenticated attacker to bypass authentication by attaching to an existing active SSLVPN session rather than establishing a legitimate new authenticated session.

Share:
For your environment

Are you exposed to this one?

Mallory correlates every CVE against your assets, your vendors, and active adversary campaigns. Know which vulnerabilities matter for you, not just which ones are loud.

ANALYST BRIEF

Impact, mitigation & remediation

What it means. What to do now. Patch path, mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation permits unauthenticated hijacking of an active SSLVPN session. An attacker can inherit the victim user’s VPN access, read Virtual Office bookmarks, retrieve NetExtender client configuration/profile information, establish a VPN tunnel into internal networks reachable by that user, and optionally terminate the victim’s session by logging it out. This can provide unauthorized network access and serve as an initial access vector for follow-on intrusion activity, including lateral movement and ransomware operations. The vulnerability has been publicly reported as actively exploited and was added to CISA KEV.

Mitigation

If you can’t patch tonight, do this now.

If immediate patching is not possible, disable Internet-facing SSLVPN access where operationally feasible. If SSLVPN must remain enabled, restrict access to trusted source IP ranges, enforce MFA for SSLVPN users, reset local user passwords, and closely monitor logs for signs of session hijacking or anomalous access. Reported detection opportunities include correlating multiple source IPs associated with the same SSLVPN session and monitoring for suspicious login or access-log anomalies. Reducing management-plane exposure and limiting remote access to trusted networks also lowers risk.

Remediation

Patch, then assume compromise.

Apply SonicWall firmware updates that remediate CVE-2024-53704. Reported fixed versions include SonicOS 8.0.0-8037 and later, 7.1.3-7015 and later, 7.0.1-5165 and higher, and 6.5.5.1-6n and higher, as applicable to the platform. Confirm devices are no longer running vulnerable releases at or below 7.1.1-7058, 7.1.2-7019, or 8.0.0-8035. Review SonicWall advisory SNWLID-2025-0003 and vendor release guidance for the exact upgrade path for the affected appliance model.
PUBLIC EXPLOITS

Exploits

3 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos.

VALID 3 / 3 TOTALView more in app
sonicwall-audit-toolkitMaturityPoCVerified exploit

Repository purpose: a Python-based SonicWall “Security Audit Toolkit” plus a Docker CTF-style lab that simulates and (in solutions) exploits two critical SonicWall CVEs. Top-level structure: - sonicwall_audit.py: main orchestrator CLI that runs modules (ssl, cve, auth, web) against a target https://<host>:<port>, writes JSON/text reports to reports/. - validate_cves.py: standalone deep validators for CVE-2021-20038 and CVE-2024-53704 using non-destructive behavioral checks. - modules/: implementation of auditors/validators and report generation. - lab/: docker-compose lab with two containers: - cve-2021-20038: Apache + deliberately vulnerable 32-bit CGI binary /usr/lib/cgi-bin/sslvpnclient (and symlinks portal/welcome/etc). Protections disabled (no canary, execstack, no PIE, ASLR disabled in entrypoint) to make stack overflow exploitation feasible. - cve-2024-53704: Flask/Gunicorn SSLVPN simulator on 4433 with vulnerable swap cookie deserialization (conditional HMAC verification). - lab/exploits/: skeleton exploit templates (incomplete). - lab/solutions/: working exploits. Exploit capabilities present: 1) CVE-2024-53704 (auth bypass via cookie forgery): Working exploit forges a base64-encoded JSON session cookie named swap with {username, authenticated:true} and omits sig_version so the server skips HMAC verification. It then accesses /virtual-office/ and /dashboard to retrieve the flag. 2) CVE-2021-20038 (stack buffer overflow -> RCE): Working exploit crafts a URL-encoded query string payload to overflow a 4096-byte stack buffer in the CGI handler (strcpy of QUERY_STRING). Payload includes a NOP sled, null-free 32-bit x86 Linux shellcode that runs /bin//sh -c "cat /root/flag.txt", padding to offset 4100, and an attacker-chosen return address into the sled. Output is returned in the HTTP response body. Important distinction: the main toolkit modules and CVE validators are primarily scanners/validators and explicitly avoid destructive exploitation; the actual exploitation code is confined to the lab solution scripts intended for the local practice environment.

anir0yDisclosed Feb 23, 2026pythoncnetworklocal (docker lab)
SonicSessionLeakMaturityPoCVerified exploit

Repository contains a single Ruby proof-of-concept script (CVE-2024-53704.rb) that targets CVE-2024-53704 by brute-forcing/leaking valid session cookies via a network-accessible API oracle. Key behavior: - Connects to a target IP and port (default 4433) using a raw TCP socket; wraps the socket in TLS for ports 443 and 4433 with certificate verification disabled. - Sends repeated GET requests to /__api__/v1/client/sessionstatus?cookie=... and interprets responses: if the response includes 'notfound' the candidate is rejected; otherwise it is treated as a possible valid cookie/prefix. - Cookie construction: builds a 32-byte raw cookie where the last byte is a checksum computed as XOR of all bytes, then base64-encodes the 32-byte value (expected length 44 chars). The brute-force iterates lowercase letters a-z for each position, pads remaining bytes with NULs, and recurses until a full 31-character prefix is found (final byte is checksum). Capabilities/impact: - Enables discovery of valid session cookies (session ID leakage) which could facilitate session hijacking depending on the target application’s session handling. Structure: - Helper functions: send_http_data (minimal HTTP response reader honoring Content-Length), calc_checksum (XOR checksum), get_sessionstatus (request builder/sender), brute_cookies (recursive brute-force), hax (driver). - CLI options: -t target IP (required; note option name typo '--taget'), -p port, -v verbose (prints partial candidates).

sfewer-r7Disclosed Jan 22, 2025rubynetwork
CVE-2024-53704MaturityPoCVerified exploit

This repository is a proof-of-concept exploit for CVE-2024-53704, targeting Dell SonicWALL NetExtender VPN servers. The exploit consists of a Python package ('nxbender') and a main script (CVE-2024-53704.py or nxbender/__init__.py) that allows an attacker to establish a VPN session by providing a valid or stolen 'swap' cookie, bypassing the normal authentication process. The code handles the full VPN connection process: it sets up the session, negotiates the tunnel, and configures network routes on the attacker's machine. The exploit interacts with the NetExtender server over HTTPS (default port 4433) and uses PPP over SSL to establish the tunnel. The repository is structured as a Python package with modules for session management, PPP handling, and SSL connections. The README provides detailed usage instructions, configuration options, and security warnings. No hardcoded credentials or IPs are present; the attacker must supply the target server and swap cookie. The exploit is operational but requires attacker-supplied credentials and root privileges for full functionality.

istagmbhDisclosed Feb 11, 2025pythonnetwork
EXPOSURE SURFACE

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
SonicwallSonicosoperating_system

Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.

What this page doesn’t show

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, which detections to deploy, and what to do tonight.
Exposure mapping

Query your assets running an affected version, and investigate the blast radius.

Threat actor evidence1

Every observed campaign linking this CVE to a named adversary.

Associated malware5

Malware families riding this exploit, with evidence and IOCs.

Detection signatures2

YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.

Vendor-by-vendor mapping

Cross-references every affected SKU, including bundled OEM variants.

Social activity4

Community discussion across Reddit, Mastodon, and other social sources.