Skip to main content

Wolfcore Cyber Security

ProxyShell Exchange Vulnerability: What It Is, How to Check

Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 28 November 2026.

Part of the Wolfcore Resources library: Vulnerabilities.

In one sentence: ProxyShell is a chain of three flaws in on-premises Microsoft Exchange email servers that let an attacker on the internet take control of an unpatched server without a password.

What it is

ProxyShell is the nickname for three Exchange vulnerabilities used together: CVE-2021-34473, CVE-2021-34523 and CVE-2021-31207. Each is a weakness with a public reference number. Chained, they give “pre-authenticated remote code execution”, meaning an attacker with no account can run commands on the server.

It affects on-premises Exchange only. Mandiant’s analysis says the chain exists in unpatched on-premises editions of Exchange. It credits the discovery to Orange Tsai of the DEVCORE Research Team.

Sophos notes the weak spot is in the Client Access Service, which typically runs on port 443 and is often exposed to the internet so staff can read email on phones and browsers. That exposure is why it was widely exploited. It is a sister issue to ProxyLogon, covered on this site.

How it works

  1. The attacker reaches the Exchange web service on the internet. No login is needed.
  2. The first flaw (CVE-2021-34473) is a path confusion: Exchange mis-reads the address in a request and lets the attacker reach back-end functions it should have blocked.
  3. The second (CVE-2021-34523) lets the attacker step into the Exchange PowerShell back end as a chosen user.
  4. The attacker creates a mailbox item carrying a disguised web shell, a small page for sending the server commands.
  5. The third flaw (CVE-2021-31207) is a file-write weakness. The mailbox export feature writes that item into a web folder, and the web shell becomes live.
  6. Mandiant saw follow-on activity: tunnelling tools, credential-stealing tools and internal reconnaissance.

Attackers want the mailbox contents and a foothold inside the network. Exchange servers sit close to Active Directory, the central login system. We do not publish request details.

The attack path at a glance

Internet to Exchange (443)1 Path confusion2 Privilege step3 File write, web shellProxyShell: three flaws chained into one attack

Who it affects and how badly

Organisations that run their own Exchange servers and expose them to the internet: accountancy and legal practices, manufacturers, schools, councils and mid-sized firms that never moved to Microsoft 365. Mandiant reported intrusions across education, government, business services and telecommunications, in the United States, Europe and the Middle East.

  • Under 10 staff: rare, but a hacked mail server means all email read, and possibly sent as you.
  • 50 to 250 staff: days of email downtime, a rebuild and credential resets across the company.
  • Regulated business: a breach of mailboxes holding client or patient data triggers regulator and client notification. Sophos also linked the LockFile ransomware family to ProxyShell against unpatched servers.

Real examples

What we check on a test

  • Whether an Exchange server is reachable from the internet, and which build number it reports.
  • Whether that build is older than the vendor security updates for the three CVEs.
  • Whether Outlook on the web, Autodiscover and the admin console all need to be on the internet, or can sit behind a VPN or reverse proxy.
  • Whether the Exchange server holds excessive rights in Active Directory, which decides how far a compromise would spread.
  • Whether logging is on, so a compromise could be seen.

We verify version and exposure. We do not attempt to plant files on a live mail server.

Worked example (illustration only)

A 70-person engineering firm runs its own Exchange 2016 server, patched twice a year, and exposes it so staff can use webmail. An attacker finds it, plants a web shell and sits quietly for two weeks, reading the finance director’s mail. The firm learns of it when a client reports a fake invoice. The cost is a forensic review, a mail server rebuild and client trust. The fix is monthly security updates or a move to a hosted service.

How to detect it

  • Mandiant advises reviewing Exchange EWS logs for CreateItem requests by a system account that succeeded (HTTP status 200).
  • Check IIS logs for successful POST requests containing both “autodiscover.json” and “Powershell”.
  • Look in the Exchange CmdletInfra PowerShell-Proxy logs for New-ManagementRoleAssignment and New-MailboxExportRequest run through the w3wp process.
  • Look for unexpected .aspx files in web-accessible Exchange folders and draft emails with odd attachments.
  • Sophos advises reviewing process activity for w3wp.exe and backing up logs before patching.

Patching stops further exploitation but does not remove a web shell already planted, as Sophos notes. Check as well as patch.

How to fix or prevent it

  1. Install the current Exchange Cumulative and Security Updates, which include the fixes Sophos lists (April, May and July 2021 releases).
  2. Check for compromise on any server that was exposed while unpatched, not just patch it.
  3. Remove Exchange management and Autodiscover from the open internet where you can.
  4. Move to Exchange Online if you cannot run a server that is patched within days.
  5. Run Exchange with minimum Active Directory rights and keep endpoint protection on the server.
  6. Keep IIS and Exchange logs for at least a few months.

Rules and regulators

  • UK: Exchange mailboxes usually hold personal data, so a compromise can be a personal data breach under UK GDPR, with a 72-hour ICO reporting clock. See the ICO 72-hour rule.
  • EU: GDPR Article 33 applies the same 72-hour rule.
  • US: state breach laws apply, and sector rules such as HIPAA apply to healthcare.

FAQ

Is Microsoft 365 affected? Mandiant describes the chain as existing in on-premises Exchange.

Does patching remove an attacker? No. Sophos notes patches do not address behaviour after a breach.

What port is involved? Sophos says the Client Access Service typically runs on port 443.

Related terms

ProxyLogon CVE-2021-26855: Check Your Exchange Server, What is patch management? How to keep software updated safely, CISA KEV catalogue: Known Exploited Vulnerabilities, What is a zero-day vulnerability? Meaning and risk, Indicators of compromise, Exchange Web Shell Check: Find a Backdoor on Your Server

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 at wolfcore.co.uk/free-web-vulnerability-scan and see our penetration testing service. Staff are often the first step in an attack, so you can also test them safely with our phishing simulation software or start the Phishy free trial.

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