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.
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
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
- Create specially crafted XML data containing an external entity declaration.
- 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.