Skip to content
RCE Advisory Advanced CVE-2020-1147

.NET Framework, SharePoint Server, and Visual Studio Remote Code Execution Vulnerability (CVE-2020-1147)

A remote code execution flaw existed in .NET Framework, SharePoint Server and Visual Studio because the software did not properly check the source markup of XML input. An attacker could upload a specially crafted document to an affected server and run arbitrary code in the context of the process that deserialises the XML content.

Oleksandr Mirosh Follow

Originally disclosed on Microsoft

Critical View original

Description

A remote code execution vulnerability exists in .NET Framework, Microsoft SharePoint, and Visual Studio when the software fails to check the source markup of XML file input. An attacker who successfully exploited the vulnerability could run arbitrary code in the context of the process responsible for deserialization of the XML content. To exploit this vulnerability, an attacker could upload a specially crafted document to a server utilizing an affected product to process content. The security update addresses the vulnerability by correcting how .NET Framework, Microsoft SharePoint, and Visual Studio validates the source markup of XML content.

FAQ

I am running Windows Server 2008, Windows 7, or Windows Server 2008 R2 and I cannot install the Monthly Rollup or Security Only updates for any of the 4.X versions of Microsoft .NET Framework. How do I protect my system from this vulnerability? There is a known issue with the Monthly Rollup and Security Only updates for the 4.X versions of .NET Framework installed on Windows Server 2008, Windows 7, and Windows Server 2008 R2. For a workaround to this known issue, please see the Article listed in the Security Updates table for the version of .NET Framework you are trying to install.

FAQ

Where does this vulnerability present itself? The vulnerability is found in the DataSet and DataTable types which are .NET components used to manage data sets. Where can I find additional developer guidance for the secure use of DataSet or DataTable types? Updated security guidance can be found on MSDN here - https://go.microsoft.com/fwlink/?linkid=2132227 What updates need to be installed to fully protect my system from this vulnerability? Full protection requires the installation of the .NET Framework update as well as updates for any additional affected products mentioned in this article.

.NET Framework

.NET Framework

Microsoft

Microsoft

The original report as published on the Microsoft Security Response Center, by Oleksandr Mirosh ( @olekmirosh ) from Micro Focus Fortify. 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 DataSet and DataTable deserialisation logic trusted type information in attacker-supplied XML instead of validating the source markup before instantiating objects.

Impact

An attacker who uploaded a crafted document to an affected server could run arbitrary code in the context of the process that deserialises the XML content.

What the attacker needed

Ability to upload a document to an affected server

The fix

The security update was released and fixes the issue by correcting how the affected products validate the source markup of XML content.

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.

Some software reads XML files and turns them into objects inside the program, a process called deserialisation. If the program trusts what the file says about which object to build, an attacker can make it build something harmful and run their own code. Here the affected products did not check where the XML came from before doing this.

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 Oleksandr Mirosh

View all

1 more disclosed report, 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.