Skip to content
XXE Advisory Intermediate CVE-2018-8532

Microsoft SQL Server Management Studio xmla File XML External Entity Processing Information Disclosure Vulnerability

The XML parser in Microsoft SQL Server Management Studio does not properly restrict XML External Entity (XXE) references when handling XMLA files. An attacker can craft a malicious XMLA file that causes the parser to access a specified URI and embed its contents into the document, leading to information disclosure.

John Page - ApparitionSec Follow

Originally disclosed on Zero Day Initiative

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

John Page (aka hyp3rlinx) - ApparitionSec, 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 XMLA files was not configured to disable external entity resolution, allowing XXE attacks.

Impact

An attacker could disclose sensitive information in the context of the current process, but user interaction (opening a malicious file or visiting a malicious page) is required.

What the attacker needed

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

The fix

Microsoft issued an update to correct this 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.

XML files can include special instructions called 'entities' that pull in content from other places. If a program processes these entities without checking them, an attacker can make it read sensitive files or internal resources. This report shows that SQL Server Management Studio did exactly that, allowing an attacker to steal information.

What is XXE?

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

More by John Page - ApparitionSec

View all

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