Skip to content
XXE Advisory Intermediate

Microsoft Visual Studio wpa Protocol XML External Entity Processing Information Disclosure Vulnerability

The handler for the Windows Performance Analyzer (wpa) protocol in Microsoft Visual Studio did not properly restrict XML External Entity references. A specially crafted document could make the XML parser fetch a URI and embed its contents back into the document, letting an attacker disclose information in the context of the current user.

rgod of 9sg Security Team - [email protected] Follow

Originally disclosed on Zero Day Initiative

Medium 4.3 View original

This vulnerability allows remote attackers to disclose sensitive information on vulnerable installations of Microsoft Visual Studio. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file.

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 the XML parser used by the wpa protocol handler was configured to resolve external entities, so attacker-supplied URIs were fetched and their contents embedded into the parsed document.

Impact

An attacker could disclose sensitive information in the context of the current user, but only if the target visits a malicious page or opens a malicious file.

What the attacker needed

Victim opens a malicious file or page; Visual Studio with the wpa handler installed

The fix

Microsoft issued an update to correct the vulnerability.

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, a text format that can point to other files or web addresses. If the program follows those pointers without checking them, an attacker can make it read a sensitive file and show the contents. Here the Visual Studio component that opens wpa protocol links did exactly that, so opening a malicious file or page could leak data.

What is XXE?

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

More by rgod of 9sg Security Team - [email protected]

View all

54 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.

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.