Image: PhotoGranary/Adobe Stock
If exploited, attackers can gain full access to SharePoint content and potentially pivot to Outlook, Teams, and OneDrive. Learn how to protect your SharePoint server from compromise.
A critical remote code execution (RCE) vulnerability in Microsoft SharePoint is being actively exploited in the wild. If successful, attackers can gain full access to SharePoint content, deploy malicious code, and potentially move laterally to other Windows services, such as Outlook, Teams, and OneDrive.
While Microsoft patched the two vulnerabilities that made the exploit, named ToolShell, possible in July’s Patch Tuesday rollout on July 18, Eye Security noticed that dozens of systems were being actively compromised with ToolShell. The giveaway was that attackers were writing files to the server for a RCE attack without prior authentication, and they utilised two new zero-day vulnerabilities that bypassed Microsoft’s patches.
Attackers send an HTTP request containing the malicious payload spinstall0.aspx to an on-premises SharePoint Server, either version 2016 or 2019. The request targets a vulnerable endpoint (CVE-2025-53770) that processes serialised data before performing any authentication checks, allowing the attacker to send it without needing valid credentials.
The spinstall0.aspx web shell extracts SharePoint’s MachineKey configuration, including the ValidationKey, using a simple GET request, exploiting the CVE-2025-53771 vulnerability. The MachineKey material, along with a specialised tool called ysoserial, can be used by the attacker to generate __VIEWSTATE payloads that appear to come from an authenticated user.
Any malicious code embedded into these valid payloads will be accepted by the server, potentially allowing the attacker to exfiltrate data, install additional backdoors, or modify site content.
ToolShell was first identified as a potential exploit chain at the Pwn2Own hacking competition at OffensiveCon Berlin in May by Dinh Ho Anh Khoa of Viettel Cyber Security. This was later reproduced in a proof-of-concept by the German cyber security firm CODE WHITE.
If you suspect your company’s SharePoint server has been compromised, you should:
Microsoft patched 137 flaws in July’s Patch Tuesday rollout; however, if your Azure virtual machine is failing to launch, one of those patches may be the reason.
Fiona Jackson is a news writer who started her journalism career at SWNS press agency, later working at MailOnline, an advertising agency, and TechnologyAdvice. Her work spans human interest and consumer tech reporting, appearing in prominent media outlets such as TechHQ, The Independent, Daily Mail, and The Sun.