Skip to content
RCE Write-up Advanced

SharePoint ToolShell: The Most sophisticated Enterprise hack of 2025

A chain of SharePoint vulnerabilities allowed unauthenticated attackers to run code, forge access tokens and deploy web shells. Attackers could then impersonate users and move laterally inside affected organisations.

jakboubmostefa Follow

Published on medium.com

The cyber threat landscape just got uglier. In what is shaping up to be the most sophisticated zero-day campaign against enterprise infrastructure in 2025, a new exploit chain targeting on-prem Microsoft SharePoint servers has surfaced.

Mostefa Jakboub, on medium.com

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 a deserialisation or token-injection weakness in a legacy SharePoint endpoint, combined with a spoofing flaw that let attackers bypass authentication.

Impact

Attackers could gain unauthenticated remote code execution, forge tokens and persist, with follow-on ransomware and lateral movement reported; the text does not describe any defence that blocked the exploit.

What the attacker needed

Internet-facing on-prem SharePoint; unpatched server; no authentication needed

The fix

Microsoft released patches in late July 2025, but the author stresses that patching alone is not enough: the MachineKey must be rotated and dropped artefacts removed.

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 a Microsoft product that many companies use to store documents and run internal websites. A flaw in it let strangers run their own programs on the server without logging in, and steal a secret key that lets them pretend to be any user. That is serious because the server then trusts the attacker completely.

What is RCE?

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

More by jakboubmostefa

View all

1 more disclosed report, best first.

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.