The 2021 Exchange Server attacks were a series of critical vulnerabilities, but I should clarify that while these attacks involved various exploitation techniques, the specific Json.NET deserialization aspect I mentioned was not the primary attack vector. Let me provide accurate details about what actually occurred:
ProxyLogon/ProxyShell Attack Chain (2021)
Primary CVEs Involved
- CVE-2021-26855 (ProxyLogon) - SSRF vulnerability
- CVE-2021-26857 - Insecure deserialization in Unified Messaging
- CVE-2021-26858 - Post-auth arbitrary file write
- CVE-2021-27065 - Post-auth arbitrary file write
Attack Timeline
- January 2021: First exploitation detected in the wild
- March 2, 2021: Microsoft released emergency patches
- March 2021: Mass exploitation began globally
- August 2021: ProxyShell variant emerged
Technical Attack Flow
-
Initial Access (CVE-2021-26855)
- Attackers exploited SSRF to bypass authentication
- Accessed Exchange PowerShell backend as SYSTEM
- No Json.NET deserialization involved in this step
-
Privilege Escalation (CVE-2021-26857)
- This CVE did involve insecure deserialization
- Targeted the Unified Messaging service
- Used .NET BinaryFormatter, not Json.NET specifically
-
Web Shell Deployment
- Wrote ASPX web shells to Exchange directories
- Common shells: China Chopper, ASPXSpy variants
- Paths like:
/aspnet_client/system_web/
Attack Groups Identified
- HAFNIUM (Microsoft designation) - Chinese APT
- Tick, LuckyMouse, Calypso - Other APT groups
- Multiple ransomware operators (DearCry, Black Kingdom)
Impact Scale
- 400,000+ Exchange servers vulnerable globally
- 30,000+ organizations compromised in the US alone
- Sectors affected: Government, education, defense, healthcare
Actual Exploitation Details
The attacks primarily used:
POST /owa/auth/Current/themes/resources/logon.css
X-AnonResource-Backend: fqdn/PowerShell?serializationLevel=Full
X-BEResource: localhost~1942062522
This SSRF vulnerability allowed attackers to:
- Access internal Exchange PowerShell
- Create mailboxes with specific privileges
- Export mailbox contents
- Write files to the server
Indicators of Compromise
- Web shells in Exchange directories
- Suspicious .aspx files with recent timestamps
- IIS logs showing POST requests to static resources
- PowerShell logs showing mailbox exports
My Correction
I apologize for the confusion in my previous response. While the Exchange attacks did involve deserialization vulnerabilities, they primarily used BinaryFormatter deserialization rather than Json.NET's TypeNameHandling. The Json.NET vulnerabilities I mentioned earlier are real but were not the primary vector in the 2021 Exchange Server attacks.
Would you like me to explain the actual deserialization vulnerability (CVE-2021-26857) in the Unified Messaging service, or discuss other real-world examples of Json.NET TypeNameHandling exploitation?