Skip to content
RCE Advisory Intermediate CVE-2020-1181

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.

Anonymous Follow

Originally disclosed on Zero Day Initiative

High 8.8 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Microsoft SharePoint Server. Authentication is required to exploit this vulnerability.

Anonymous, on the Zero Day Initiative

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

  1. Authenticate to SharePoint Server.
  2. Create a SharePoint page.
  3. Upload XML containing an arbitrary Web Part definition.
  4. 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.

More by Anonymous

View all

2,270 more disclosed reports, best first.

More from Zero Day Initiative

View all

The newest disclosed reports for this program.

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.