Skip to content
XXE Advisory Intermediate CVE-2016-3255

.NET Framework Information Disclosure Vulnerability (CVE-2016-3255)

The .NET Framework improperly parsed XML input containing a reference to an external entity, allowing an attacker to read arbitrary files. An attacker could craft XML data and induce an application to parse it, for example by uploading an XML file to a web application.

Michael Weber Follow

Originally disclosed on Microsoft

Description

An information disclosure vulnerability exists when .NET Framework improperly parses XML input containing a reference to an external entity. An attacker who successfully exploited this vulnerability could read arbitrary files via an XML external entity declaration. To exploit the vulnerability, an attacker could create specially crafted XML data and induce an application to parse and validate the XML data. For example, an attacker could create an XML file and upload it to a web-based application. The update addresses the vulnerability by modifying the way that the XML External Entity (XXE) parser parses XML input.

.NET Framework

.NET Framework

The original report as published on the Microsoft Security Response Center, by Michael Weber, Henrique Arcoverde. 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 XML parser resolved external entity declarations without disabling them or restricting access to local files.

Impact

An attacker could read arbitrary files on the server.

What the attacker needed

Application parses attacker-supplied XML

The fix

The update addresses the vulnerability by modifying the way that the XML External Entity (XXE) parser parses XML input.

How it was found

  1. Create specially crafted XML data containing an external entity declaration.
  2. Induce an application to parse and validate the XML data, for example by uploading an XML file to a web-based application.

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.

XML allows documents to refer to other files or resources using 'entities'. If a parser follows these references without checking, an attacker can make it read local files and include their contents in the output. This is called an XML External Entity (XXE) attack.

What is XXE?

An XML parser resolves entities the attacker defines, reading local files or making the server send requests.

More from Microsoft

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

XML external entities (XXE)

The lesson behind this report.

An XML parser resolves entities the attacker defines, reading local files or making the server send requests.