Patchfirst
CVE-2022-1040 KEVPublic exploit Critical · 9.8 EPSS 99.8%

Sophos Firewall Authentication Bypass Vulnerability

Sophos · Firewall

Summary

Sophos Firewall has an authentication bypass flaw in its User Portal and Webadmin components. A remote attacker with network access can execute code on affected versions, with no authentication or user interaction required.

Official description · NVD

An authentication bypass vulnerability in the User Portal and Webadmin allows a remote attacker to execute code in Sophos Firewall version v18.5 MR3 and older.

Breakdown
79.9 / 100
Exploited
Yes, in CISA KEV
Reports
0
Tactics
8/15

How an attack unfolds

Based on mappings. Select a step to see the evidence.
  1. How attackers get in

  2. What they do

  3. What can follow

First seen exploited 4 days before it was disclosed. Public exploit code (PoC-in-GitHub) appeared 42 days after disclosure.

  1. First seen exploitedVulnCheck KEV evidence4 days before
  2. Disclosedday 0
  3. Added to CISA KEVEU database agrees+6 days
  4. Public exploit codePoC-in-GitHub+42 days

CISA KEV listing is when exploitation was confirmed, not necessarily the first attack.

techniques

6 , grouped by in kill-chain order 6

Initial AccessTA0001

Valid Accounts T1078 also Persistence, Privilege Escalation, Stealth
MITRE CTID mapping of the KEV entry · follow-on activity

This authentication bypass vulnerability is exploited by remote attackers via the User Portal and Webadmin components. This vulnerability allows an attacker to execute arbitrary code on the victim machine. It was actively exploited by Chinese state-sponsored APT groups, including "Drifting Cloud," to target organizations and governments across South Asia, particularly in Afghanistan, Bhutan, India, Nepal, Pakistan, and Sri Lanka. The attackers leveraged this vulnerability to deploy webshells, conduct man-in-the-middle attacks by modifying DNS responses, and intercept user credentials and session cookies from content management systems. This vulnerability was exploited by Chinese state-sponsored threat actors as part of a broader campaign named "Pacific Rim." This campaign involved multiple Chinese APT groups, including APT31, APT41, and Volt Typhoon, targeting Sophos firewalls. The backdoor PygmyGoat, a novel rootkit that takes the form of a shared object ("libsophos.so"), has been found to be delivered following the exploitation of this vulnerability. The use of the rootkit was observed between March and April 2022 on a government device and a technology partner, and again in May 2022 on a machine in a military hospital based in Asia. This vulnerability was also exploited by at least two advanced persistent threat (APT) groups in a highly targeted attack campaign. The attackers used the vulnerability to place malicious files into a fixed filesystem location on affected devices, leveraging a combination of authentication bypass and command injection to execute arbitrary commands as root. The attack involved deploying various malware families, including GoMet and Gh0st RAT, to maintain persistent access and exfiltrate sensitive data. The attackers demonstrated significant knowledge of the device firmware, using custom ELF binaries and runtime packers like VMProtect to complicate analysis. They manipulated internal commands to move and manipulate files, execute processes, and exfiltrate data. The campaign targeted network security devices, employing a two-stage attack to drop remote access tools and execute commands remotely.

MITRE CTID mapping of the KEV entry · how it is exploited

ExecutionTA0002

MITRE CTID mapping of the KEV entry · primary impact
Hijack Execution Flow T1574 also Stealth
MITRE CTID mapping of the KEV entry · follow-on activity

Credential AccessTA0006

Network Sniffing T1040 also Discovery
MITRE CTID mapping of the KEV entry · follow-on activity
Adversary-in-the-Middle T1557 also Collection
MITRE CTID mapping of the KEV entry · follow-on activity

Detection

0 rules for this CVE · 327 general rules for its techniques

Rules for this CVE

0 that reference CVE-2022-1040 directly.

CVE-specific rules are not available in this build. Search SigmaHQ ↗

General rules for this CVE’s techniques

These detect the technique in general, not this specific vulnerability.

Exploit Public-Facing ApplicationT1190149 general rules
Command and Scripting InterpreterT105995 general rules
Valid AccountsT107856 general rules
Hijack Execution FlowT15748 general rules
Network SniffingT10409 general rules
Adversary-in-the-MiddleT155710 general rules

Sigma rules © SigmaHQ, Detection Rule License 1.1; linked, not reproduced.

What security researchers reported

Not named in any threat report yet

Also mentioned in 50 community threat pulses (AlienVault OTX)

Weaker evidence

Pulses are indicator collections that anyone can publish. A mention is not confirmation of exploitation.

References

4 links, grouped by NVD tag (3 duplicates merged)
↑ ↓ chooseEnter openEsc close