Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 26 November 2026. Part of Vulnerabilities and exploitation.
In one sentence: ProxyLogon is the name given to a set of flaws in on-premises Microsoft Exchange email servers, led by CVE-2021-26855, that let an attacker reach the server from the internet and take it over without a password.
What it is
On 2 March 2021 Microsoft reported that attackers were using several previously unknown flaws, called zero-days, against on-premises Exchange Server. Microsoft attributed the first campaign with high confidence to a group it calls HAFNIUM and released security updates the same day. Exchange Online, the cloud version in Microsoft 365, was not affected.
Four CVEs made up the chain: CVE-2021-26855, CVE-2021-26857, CVE-2021-26858 and CVE-2021-27065. The one that gives the name is CVE-2021-26855. It is a server-side request forgery (SSRF) flaw. In plain terms, an attacker could make the server send web requests on their behalf and be treated as the Exchange server itself.
How it works
Microsoft’s write-up describes the stages.
- The attacker reaches the Exchange server over the internet on its web port, 443. No sign-in is needed. CVE-2021-26855 lets them send crafted requests and authenticate as the server.
- With that foothold, a second flaw (CVE-2021-26858 or CVE-2021-27065) lets them write a file to any path on the server.
- CVE-2021-26857 is a deserialization flaw in the Unified Messaging service that can give code execution as SYSTEM. Microsoft notes it needs administrator permission or another flaw to be used.
- The attacker drops a web shell. A web shell is a small page on the server that lets them send commands later through a normal-looking web request.
- From there Microsoft observed theft of data and further malware to keep long-term access.
Who it affects and how badly
Anyone who ran on-premises Exchange 2013, 2016 or 2019 and had not patched. NCSC added that Exchange 2010 received a defence-in-depth update, and that out-of-support versions should be moved to a supported one. NCSC also said a wide range of actors were using automated tools to scan for unpatched servers and that ransomware actors had used the flaws or the malware left behind.
- Small business (up to 10 staff): often an MSP-run Exchange box. Worst case: mailboxes read, a web shell left behind, and the server rebuilt from scratch.
- Mid-sized (50 to 250): accountancy, legal, manufacturing and local councils commonly kept Exchange in-house. Worst case: days of email downtime, stolen mailbox contents and a personal data breach to report.
- Regulated (fintech, insurance, healthcare): mailboxes hold client and patient data. Worst case: regulator notification, client contracts at risk and a long forensic exercise to prove what was taken.
Real examples
Microsoft’s own report is the primary source for the HAFNIUM campaign and for the four CVEs. NCSC’s advice page is the UK government record that multiple actors were scanning for and exploiting unpatched servers by March 2021. Neither names individual victim organisations, and we do not name any here.
Rules and regulators
Email servers hold personal data, so a compromise can be a personal data breach. Under the UK GDPR the ICO says you must report certain breaches within 72 hours of becoming aware of them, where feasible. The EU GDPR, Article 33, sets the same 72-hour window for notifying the supervisory authority unless the breach is unlikely to risk people’s rights. US requirements vary by state and sector, so check which apply to you. NCSC’s advice in 2021 was to patch first, then search for signs of compromise, and to block untrusted access to the server’s port 443 if you could not patch.
What we check on a test
- Whether any Exchange web service (Outlook on the web, the admin console, Autodiscover) is reachable from the internet, and whether it needs to be.
- The server’s version and update level, compared with the vendor’s current security updates.
- Whether the server is still on an out-of-support Exchange version.
- Whether administrative pages are limited to a VPN or trusted addresses.
- Whether Exchange servers sit in a segment that limits what a compromise can reach.
How to detect it
Microsoft’s guidance lists checks you or an MSP can run on an on-premises server:
- Run the Microsoft Exchange Server Health Checker and the patch-level script to see which updates are missing.
- Search the Exchange HttpProxy logs for entries where AuthenticatedUser is empty and AnchorMailbox matches the pattern Microsoft documents.
- Check the Application event log for errors from the MSExchange Unified Messaging source that mention System.InvalidCastException.
- Check the OAB generator logs for downloads written outside the expected temp folder.
- Look for unexpected .aspx files in Exchange web folders, which can be web shells.
- Use Microsoft’s Exchange On-premises Mitigation Tool (EOMT), which NCSC points to; it applies mitigation and runs Microsoft Safety Scanner.
How to fix or prevent it
- Install the current Exchange security updates on a supported Cumulative Update.
- If you cannot patch, block untrusted connections to port 443 or publish Exchange only through a VPN, as NCSC advised.
- Move off out-of-support Exchange versions, or move mailboxes to a cloud service.
- Search for compromise even after patching, because patching does not remove a web shell already planted.
- Reset credentials and rebuild any server where a web shell is found.
- Keep an asset list so an internet-facing mail server never goes unpatched unnoticed.
Related terms
More in Vulnerabilities, and see the full Resources register. Related: How SSRF works, Patch management, Zerologon, PrintNightmare, Event 4688, Privilege escalation. See also: ProxyShell Exchange Vulnerability: What It Is, How to Check., Exchange Web Shell Check: Find a Backdoor on Your Server, Edge Device Hardening Checklist: Firewalls and VPNs
To see what an attacker could reach on your own servers, read about our penetration testing.
FAQ
Does ProxyLogon affect Microsoft 365? No. Microsoft and NCSC both state that Exchange Online was not affected.
Is patching enough? No. NCSC advised searching for evidence of compromise as well, because a web shell may already be in place.
What if I cannot patch today? NCSC advised blocking untrusted connections to port 443 or limiting access to a VPN.
How Wolfcore helps
A Wolfcore penetration test finds this the way an attacker would, by hand, not with a scanner. Start with the free web vulnerability scan and see penetration testing.
Wolfcore
Would your staff click a phishing email?
Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.
Start a free phishing testFree website security scanor book a 30 minute call