Skip to content
RCE Advisory Advanced CVE-2018-8300

Microsoft SharePoint Remote Code Execution Vulnerability (CVE-2018-8300)

SharePoint failed to check the source markup of an application package, so a crafted package could run arbitrary code. An attacker who got such a package uploaded could execute code as the SharePoint application pool and farm account.

Soroush Dalili Follow

Originally disclosed on Microsoft

Description

A remote code execution vulnerability exists in Microsoft SharePoint when the software fails to check the source markup of an application package. An attacker who successfully exploited the vulnerability could run arbitrary code in the context of the SharePoint application pool and the SharePoint server farm account. Exploitation of this vulnerability requires that a user uploads a specially crafted SharePoint application package to an affected version of SharePoint. The security update addresses the vulnerability by correcting how SharePoint checks the source markup of application packages.

FAQ

After installing the updates for Microsoft SharePoint, are there any further steps I need to take? Yes. After installing the updates for any version of SharePoint, customers need to run psconfig.exe. See Why we recommend / require to run the Configuration Wizard also for Security fixes .

Microsoft Office

Microsoft Office

The original report as published on the Microsoft Security Response Center, by Soroush Dalili of NCC Group. Images and videos are our own copies; raw HTML is shown as text. View it on Microsoft Security Response Center.

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 the package installer trusted the markup inside an uploaded application package without validating its source, allowing malicious content to be processed and executed.

Impact

An attacker could run arbitrary code in the context of the SharePoint application pool and the SharePoint server farm account, but exploitation requires a user to upload a specially crafted package.

What the attacker needed

A user uploads a crafted package; affected SharePoint version

The fix

The security update was released and corrects how SharePoint checks the source markup of application packages; administrators must also run psconfig.exe afterwards.

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 people install add-on packages, which are bundles of files and code. The software did not properly inspect what was inside a package before using it, so a malicious package could run its own code on the server. That means whoever uploaded it could take control of the server's own 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 Soroush Dalili

View all

6 more disclosed reports, best first.

More from Microsoft

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.