For roughly six weeks this autumn, every organization running on-premises Exchange lived with two known, actively exploited vulnerabilities and no fix. CVE-2022-41040 and CVE-2022-41082, quickly nicknamed ProxyNotShell, were reported publicly at the end of September after the Vietnamese security firm GTSC found them being used against a customer in August. Microsoft shipped the security updates on November 8.
In between, defenders had a mitigation: a URL Rewrite rule that researchers showed could be bypassed within days, and that Microsoft then had to revise. When the patches arrived, Microsoft's announcement made the point bluntly. Mitigations are not code fixes, and the update should be installed even where they were applied. That is the subject of this post, because the six weeks taught a lesson that outlives this pair of bugs.
What the six weeks looked like
The outline, from the public record:
- Late September. GTSC published its findings, and Microsoft confirmed two zero-days affecting Exchange Server 2013, 2016 and 2019. Exchange Online customers did not need to act. Exploitation required authenticated access to the server. Microsoft said it had seen a single activity group using the chain in August against fewer than ten organizations, a group it assessed with medium confidence was likely state-sponsored, with web shells, Active Directory reconnaissance and data theft following.
- September 30. CISA added both CVEs to its Known Exploited Vulnerabilities catalog with an October 21 deadline for federal agencies. There was no patch on that date, so compliance meant applying the mitigations.
- Early October. Researchers demonstrated publicly that the original rewrite pattern could be sidestepped with little effort. Microsoft updated the rule, its on-premises mitigation script and its Emergency Mitigation Service. Anyone who had applied the first version by hand and moved on was protected by a rule that no longer protected them.
- November 8. Security updates for every supported Exchange build. Microsoft stopped recommending the rewrite rule for servers that have the updates installed.
Why mitigations decay
A patch changes the code. A mitigation changes the conditions around the code, and that difference has consequences we watched play out across our client base.
They are written against the known path, not the flaw. The first rule blocked a specific pattern of request. Attackers and researchers immediately tried the neighbours. Revisions followed, and each one required someone to come back and reapply it.
They drift. A server gets rebuilt from an old image without the rule. A new node joins the cluster. The hybrid management server everyone forgot about never got the change at all. Nothing in the environment announces that the protection has gone.
They are invisible to the usual reporting. Vulnerability scanners and patch dashboards answer "which build is this?" They rarely answer "which version of the rewrite rule is live on this box today?"
They close tickets. "Mitigated" reads as "done" in a change system. Six weeks is long enough for a ticket marked mitigated to fall off everybody's list.
And the word that lulled some teams most was "authenticated". It sounds like a high bar. It means any valid mailbox login, and mailbox credentials remain the most phished asset there is. Our July and August posts on session-stealing phishing kits and text-message campaigns described exactly how attackers come by them.
What we did during the window
On our watch floor, the period ran as three parallel tracks for clients still on Exchange.
First, we treated the mitigation as a configuration to be verified weekly rather than applied once, and checked the live rule on every server after each Microsoft revision. More than once we found a server still carrying the first version.
Second, we disabled remote PowerShell for accounts that did not need it, as Microsoft advised. It is a small change that removes a capability most users never knew they had.
Third, we added detection that did not depend on the mitigation being right: web requests to the autodiscover endpoint that reference PowerShell, the Exchange web worker process spawning a command shell, new script files appearing in Exchange web directories, and outbound connections from mail servers to unfamiliar destinations. If the rule failed, we wanted to know from the logs, not from a ransom note.
Now that the patch is out
Patch every Exchange server, including the one you do not think of as an Exchange server. Microsoft's announcement is explicit that hybrid environments need the update on on-premises servers, management-only boxes included. Confirm the result with Microsoft's Health Checker script rather than with a change record.
Hunt back to August, not to the day you applied the mitigation. GTSC observed exploitation in early August. Look for web shells, and also for legitimate files whose contents have changed, since GTSC reported an existing file being overwritten. Check for new scheduled tasks, credential-dumping traces, compressed archives in odd places and unexplained outbound traffic. If you find anything, what we wrote in March 2021 still holds: escalate before anyone cleans up, preserve before you remediate, scope beyond the mail server and rotate what the host could reach.
Do not rush to strip the mitigations out. Microsoft says removal is optional and should only happen after the update is installed and verified.
Turn on Extended Protection once the update is in, as Microsoft recommends, and keep the Emergency Mitigation Service enabled for next time.
Run mitigations like changes
The durable fix is procedural. Keep a mitigation register: every temporary protection gets an owner, the version applied, the date, a way to verify it is still in place, and an exit criterion, which is almost always "the vendor patch is installed". Re-verify on a schedule. Close the ticket on the patch, never on the mitigation.
And ask the question this episode raises for a 200-person company: does on-premises Exchange still earn its place in your estate? Sometimes the answer is yes. It should be a decision, not an inheritance.
A mitigation buys time. Spend it. Do not bank it.
Sources
- Warning: New attack campaign utilized a new 0-day RCE vulnerability on Microsoft Exchange Server — GTSC, September 2022
- Customer Guidance for Reported Zero-day Vulnerabilities in Microsoft Exchange Server — Microsoft Security Response Center, September 2022
- Analyzing attacks using the Exchange vulnerabilities CVE-2022-41040 and CVE-2022-41082 — Microsoft Security Blog, September 2022
- Microsoft Exchange Server zero-day mitigation can be bypassed — BleepingComputer, October 2022
- Released: November 2022 Exchange Server Security Updates — Microsoft Exchange Team Blog, November 2022






