Skip to content
RCE Write-up Advanced

SharePoint 0day

A SharePoint Server authentication check could be bypassed by setting the Referer header to the sign-out page, and a deserialisation flaw in a web part control allowed unauthenticated remote code execution. Attackers used this chain to run code and extract the server's machine keys, enabling forged view state.

medium.com

Published on medium.com

Ez egy gyors elemzésnek indult az éppen divatos SharePoint exploit kampánnyal kapcsolatos sérülékenységekről. Akinek kimaradt annak gyorsan összefoglalom: A Microsoft SharePointot támadják aktívan néhány új kritikus biztonsági rés kihasználásával.

RavenForTech, 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 the server trusted the Referer header for an authentication decision and then deserialised attacker-controlled data from a web part parameter without validation.

Impact

An unauthenticated attacker could run code on the server and steal machine keys, allowing forged view state; SharePoint Online is not affected.

What the attacker needed

Network access to the SharePoint server; no account needed

How it was found

  1. Send a POST request to the ToolPane endpoint with the Referer header set to the sign-out page to bypass authentication.
  2. Supply a crafted web part parameter containing a compressed data table.
  3. The server deserialises the data and executes the embedded payload.
  4. Place a file on the server to harvest the machine-specific keys.

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. The report describes a way to skip the login check by pretending the request came from the logout page, then sending a crafted request that makes the server unpack and run attacker-supplied data. The result is that an outsider can run their own code on the server without any account.

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.