Skip to content
RCE Write-up Advanced

ToolShell Mass Exploitation (CVE-2025-53770)

An unauthenticated remote code execution chain in on-premise SharePoint (ToolShell, combining an authentication bypass and a deserialisation flaw) was exploited in the wild to drop an ASPX implant that leaked the server's ASP.NET machine keys. With those keys an attacker could sign malicious ViewState payloads and run arbitrary commands, achieving persistence even after patching.

research.eye.security

Published on research.eye.security

On the evening of July 18, 2025, Eye Security was the first in identifying large-scale exploitation of aSharePoint remote code execution (RCE)vulnerability chain in the wild. Demonstrated just days before on X, this exploit is being used to compromise on-premise SharePoint Servers across the world.

Eye Security, on research.eye.security

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely an authentication bypass in a SharePoint layout page combined with unsafe deserialisation of ViewState data, allowing unauthenticated code execution and theft of the machine keys that sign that data.

Impact

Attackers could run arbitrary commands on unpatched internet-facing SharePoint servers and keep access via signed ViewState payloads even after patching; the text notes the original July 8 patch should block the observed waves.

What the attacker needed

Internet-facing on-premise SharePoint; server unpatched for the chain; no login needed

The fix

Apply Microsoft's patches and, critically, rotate the ASP.NET machine keys and restart IIS, since patching alone is not enough.

How it was found

  1. Send a crafted POST request to the ToolPane layout page with a SignOut page as the Referer to bypass authentication.
  2. The server runs the request and writes an ASPX implant to the layouts folder.
  3. Request the implant, which returns the machine validation and decryption keys.
  4. Use the leaked keys to sign a malicious ViewState payload with ysoserial.
  5. Send the signed payload to any SharePoint page to execute commands.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

SharePoint is Microsoft's document and collaboration server. Two flaws together let someone who was not logged in make the server run their code, and the planted page then handed over secret signing keys. Those keys let the attacker keep sending commands that the server trusts, even after the original hole is patched.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

Similar reports

View all

Same bug class and techniques, clearest first.

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.