The Vulnerability
Internet Explorer fails to read the mark-of-the-web on files downloaded by Edge because Edge adds an undocumented access control entry that blocks low-integrity processes from reading the file's Zone.Identifier stream. This causes IE to treat the file as trusted, allowing an XXE attack in an MHT file to exfiltrate local files.
blog.0patch.com
Published on blog.0patch.com
Five days ago, security researcher John Page published details and a proof-of-concept for a vulnerability in Internet Explorer that he had previously reported to Microsoft but received a response that "...a fix for this issue will be considered in a future version of this product or service."
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 write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Internet Explorer's code calls GetZoneFromAlternateDataStreamEx but does not check the return value; when access is denied due to Edge's added ACL entry, it treats the file as having no mark-of-the-web and thus as trusted.
Impact
An attacker could exfiltrate local files from a victim's system if the victim opens a malicious MHT file downloaded with Edge using Internet Explorer; only Edge users are at risk.
What the attacker needed
Victim uses Edge to download a malicious MHT file; Victim opens the file with Internet Explorer; Windows 10 system
The fix
The text provides a micropatch that adds error checking after the call to GetZoneFromAlternateDataStreamEx to set Zone Id to 3 when access is denied; Microsoft has not provided an official fix.
How it was found
- Download an MHT file using Edge.
- Open the downloaded MHT file with Internet Explorer.
- Internet Explorer fails to read the Zone.Identifier stream due to an access denied error.
- Internet Explorer treats the file as trusted and processes the XXE payload, sending local files to the attacker's server.
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 write-up has not been written yet. The Original tab links to the source.
Internet Explorer uses a hidden marker on downloaded files to know they came from the internet and should be treated with caution. Edge adds an extra permission that stops some parts of Internet Explorer from reading that marker. Because Internet Explorer ignores the error, it wrongly assumes the file is safe and allows a malicious file to steal local data.
What is XXE?
An XML parser resolves entities the attacker defines, reading local files or making the server send requests.