Skip to content
XXE Advisory Intermediate CVE-2019-1079

Visual Studio Information Disclosure Vulnerability (CVE-2019-1079)

Visual Studio improperly parses XML input in certain settings files, allowing an attacker to read arbitrary files via an XML external entity declaration. An attacker could create specially crafted XML data and convince an authenticated user to open the file.

Sooraj K S Follow

Originally disclosed on Microsoft

Description

An information disclosure vulnerability exists when Visual Studio improperly parses XML input in certain settings files. An attacker who successfully exploited this vulnerability could read arbitrary files via an XML external entity (XXE) declaration. To exploit the vulnerability, an attacker could create specially crafted XML data and convince an authenticated user to open the file. The update addresses the vulnerability by modifying the way that Visual Studio parses XML input.

FAQ

What type of information could be disclosed by this vulnerability? The type of information that could be disclosed if an attacker successfully exploited this vulnerability is unauthorized file system access - reading from the file system.

Visual Studio

Visual Studio

Microsoft

Microsoft

The original report as published on the Microsoft Security Response Center, by Sooraj K S ( @soorajks ) of McAfee. 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, Visual Studio's XML parser did not disable external entity resolution when processing settings files, allowing XXE.

Impact

An attacker could read arbitrary files from the file system, but only if the user opens the malicious file.

What the attacker needed

Victim opens a malicious file; authenticated user

The fix

The vulnerability was fixed by modifying the way Visual Studio parses XML input.

How it was found

  1. Create specially crafted XML data containing an external entity declaration.
  2. Convince an authenticated user to open the crafted file in Visual Studio.

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 programs read XML files, which are structured text files. If the program allows XML to include references to other files on the computer, an attacker can trick it into reading sensitive files. Here, Visual Studio did not block such references, so opening a malicious settings file could let an attacker read files on the victim's machine.

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.