Skip to content
RCE Advisory Advanced

Microsoft Edge ms-its: Scheme Remote Code Execution Vulnerability

A crafted ms-its: URI could cause script to run inside a downloaded file even when the Mark-Of-The-Web was present, and this happened in Edge's Internet Explorer mode. An attacker who got a victim to visit a malicious page or open a malicious file could then run code as the current user at medium integrity.

Eduardo Braun Prado Follow

Originally disclosed on Zero Day Initiative

High 7.5 View original

This vulnerability allows remote attackers to execute arbitrary code on affected installations of Microsoft Edge. User interaction is required to exploit this vulnerability in that the target must visit a malicious page or open a malicious file while in Internet Explorer mode.

Eduardo Braun Prado, 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 ms-its: URI handler failed to enforce the Mark-Of-The-Web restriction when loading script from a downloaded file in Internet Explorer mode.

Impact

An attacker could execute code in the context of the current user at medium integrity, but only if the victim visited a malicious page or opened a malicious file while in Internet Explorer mode.

What the attacker needed

Edge in Internet Explorer mode; victim visits a malicious page; or victim opens a malicious file

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.

The Mark-Of-The-Web is a Windows tag that marks files downloaded from the internet as untrusted, so their scripts should not run. Here a special link type called ms-its: let a downloaded file run its script anyway. Someone had to be lured into opening a malicious page or file while Edge was in its Internet Explorer compatibility mode.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by Eduardo Braun Prado

View all

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

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.