Skip to content
XXE Advisory Intermediate

(0Day) Microsoft Visual Studio settings XML External Entity Processing Information Disclosure Vulnerability

Microsoft Visual Studio improperly restricts XML external entity references when processing SETTINGS files, allowing a crafted document to make the XML parser access a URI and embed its contents. An attacker could disclose sensitive information in the context of the current user.

Sooraj K S Follow

Originally disclosed on Zero Day Initiative

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.

Sooraj K S (@soorajks), on the Zero Day Initiative

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 for SETTINGS files was configured to allow external entity resolution without restricting it to safe sources.

Impact

An attacker could disclose sensitive information in the context of the current user, but the target must visit a malicious page or open a malicious file.

What the attacker needed

Victim opens a malicious SETTINGS file; or victim visits a malicious page

The fix

The vulnerability was not fixed by the vendor; the only mitigation is to restrict interaction with the application to trusted files.

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.

When a program reads an XML file, it can be tricked into fetching other files or web addresses if it does not block special 'entity' references. Here, Visual Studio did not block them, so a malicious settings file could make the program read local files and include their contents, which the attacker might then see. 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 by Sooraj K S

View all

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