Microsoft SharePoint Server Web Part Remote Code Execution Vulnerability
An authenticated attacker could upload a crafted XML Web Part definition when creating a SharePoint page, leading to arbitrary code execution under the service account. The flaw lies in how Web Parts are handled.
This vulnerability allows remote attackers to execute arbitrary code on affected installations of Microsoft SharePoint Server. Authentication is required to exploit this vulnerability.
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 report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely insufficient validation or sandboxing of uploaded Web Part XML definitions, allowing arbitrary code to be executed.
Impact
An authenticated attacker could execute arbitrary code in the context of the SharePoint service account.
What the attacker needed
Authentication to SharePoint Server
The fix
Microsoft issued an update to correct this vulnerability.
How it was found
- Authenticate to SharePoint Server.
- Create a SharePoint page.
- Upload XML containing an arbitrary Web Part definition.
- The crafted Web Part definition leads to code execution.
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 report has not been written yet. The Original tab links to the source.
SharePoint lets users build pages by adding 'Web Parts', which are small blocks of functionality. The server did not properly check the XML that defines a Web Part, so someone with a login could sneak in a definition that made the server run their code. That code would run with the same permissions as the SharePoint service account.
What is RCE?
Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.