Authentication Bypass RCE in Sophos Firewall User Portal and Webadmin
CVE-2022-1040 is a critical authentication bypass vulnerability in Sophos Firewall affecting version 18.5 MR3 (18.5.3) and earlier. The flaw resides in the firewall's User Portal and Webadmin web interfaces and allows a remote attacker with network access to those interfaces to bypass authentication controls and execute arbitrary code on the device. The provided content consistently describes the issue as an authentication bypass leading directly to remote code execution, but does not identify a specific vulnerable function or code path.
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.
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.
Mitigation
If you can’t patch tonight, do this now.
Remediation
Patch, then assume compromise.
Exploits
2 valid exploits after Mallory filtered fakes, detection scripts, and README-only repos (4 hidden).
This repository provides a proof-of-concept (POC) exploit for CVE-2022-1040, an authentication bypass vulnerability in the Sophos Firewall web admin interface. The repository contains two main Python files (Sophos-poc.py and Docker/Sophos-poc.py, which are identical), a Dockerfile for containerized execution, and a README with usage instructions. The exploit works by running a local HTTPS man-in-the-middle (MITM) proxy (using baseproxy) on port 8788. The user configures their browser to use this proxy, and when attempting to log in to the Sophos Firewall's web admin interface (typically on port 4444), the proxy intercepts and modifies specific POST requests to /webconsole/Controller. It injects a crafted JSON payload that exploits the authentication bypass, potentially granting unauthorized access to the firewall's admin interface. The exploit does not provide a post-exploitation payload but demonstrates the vulnerability by allowing access without valid credentials. The Dockerfile enables easy setup of the required environment. No hardcoded IPs or external domains are present; the main fingerprintable endpoints are the local proxy and the targeted Sophos Firewall path.
This repository provides a proof-of-concept (PoC) exploit for CVE-2022-1040, an authentication bypass vulnerability in the Sophos XG115w Firewall version 17.0.10 MR-10. The exploit consists of two main files: 'CVE-2022-1040.txt', which documents the vulnerability details and provides a sample HTTP POST request to the /webconsole/Controller endpoint, and 'userportal', which contains a similar POST request targeting the /userportal/Controller endpoint. Both files demonstrate how an attacker can craft specific POST requests with manipulated parameters (notably the 'mode' and 'json' fields) to bypass authentication and gain unauthorized access to the firewall's management or user portal interfaces. The README.md provides a brief description and a screenshot reference. No executable code is present; the repository is documentation and PoC request samples for manual exploitation. The attack vector is network-based, requiring access to the firewall's web interfaces.
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.
Vendor-confirmed product mapping. Mallory continuously reconciles this list against your asset inventory.
Recent activity
11 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
A previously referenced Sophos Firewall vulnerability mentioned for comparison with the current attack tradecraft, specifically similar use of Gh0st RAT-style traffic signaling via crafted ping packets.
A vulnerability explicitly shown in an example of exploitation shared on DDW.
A previously addressed authentication bypass vulnerability affecting Sophos Firewall, mentioned as historical context for similar vendor security issues.
An authentication bypass vulnerability in Sophos XG Firewall (libsophos.so) that allows attackers to gain initial access and persistence, exploited by the Pygmy Goat malware.
The version that knows your environment.
Query your assets running an affected version, and investigate the blast radius.
Every observed campaign linking this CVE to a named adversary.
Malware families riding this exploit, with evidence and IOCs.
YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Cross-references every affected SKU, including bundled OEM variants.
Community discussion across Reddit, Mastodon, and other social sources.