Skip to content
RCE Disclosed report Advanced CVE-2021-38492

Use of mk:@MSITStore: URI from Firefox can run JavaScript in IE with res: URI

Firefox could be made to launch Internet Explorer through a crafted mk:@MSITStore: URI, letting an attacker run JavaScript at the renderer's low or AppContainer integrity level. The report also claims a path from that low-integrity execution to medium-integrity script execution and a security feature bypass.

James Lee Follow

Originally disclosed on Mozilla

  • Fixed in 34 days
  • Paid in 37 days
  • Disclosed after 34 days
Text
We are able to reproduce bug id 1549833 and 1552627 (https://bugzilla.mozilla.org/show_bug.cgi?id=1552627) using mk:@MSITStore: URI.

1. We can run Internet Explorer from chrome, which allows us to run JavaScript at renderer process privilege (Low or AppContainer IL, depending on user's IE11 EPM Sandbox setting). 

https://pwning.click/ffscheme.php

2. Elevation of Privilege- from AppContainer or Low Integrity Level to Medium IL JavaScript execution 

https://pwning.click/ffscheme2.php

3. Other bugs- Security Feature bypass such as running VBScript at Medium Integrity Level, which should be not possible from Internet Zone IE11 : this is possible because IE let attackers reading OS username (Test on https://pwning.click/osuname.php) which allows running downloaded file from the Website after the browser crashes and reopens (the downloaded .html file will open automatically after the crash, which runs Medium IL VBScript). 

Reading/running local files and more

https://pwning.click/ffscheme3.php

Fix- Filter mk:@MSITStore: URI

The original report as published on Mozilla's Bugzilla, by James Lee. Images and videos are our own copies; raw HTML is shown as text. View it on Mozilla's Bugzilla.

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 Firefox did not filter the mk:@MSITStore: URI scheme, so it passed the URI to Internet Explorer, which rendered attacker content and executed script.

Impact

An attacker could run script at low or AppContainer integrity and, per the report, may escalate to medium-integrity script execution and bypass IE security features; the outcome depends on the user's IE11 EPM sandbox setting.

What the attacker needed

Victim uses Firefox; victim opens a crafted link or page; Internet Explorer 11 present

How it was found

  1. Open a crafted page in Firefox that uses an mk:@MSITStore: URI to launch Internet Explorer.
  2. Internet Explorer renders attacker content and runs JavaScript at low or AppContainer integrity level.
  3. Use a second page to attempt elevation from low or AppContainer integrity to medium integrity script execution.
  4. Use a third page to read the OS username and run a downloaded file after a browser crash to reach medium-integrity VBScript.

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.

A web browser can be tricked into handing a special link to another program on the computer, here Internet Explorer. That second program then runs attacker-supplied script, but at a low trust level. The report says the attacker can then climb to a higher trust level, which is the dangerous part.

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 James Lee

View all

30 more disclosed reports, best first.

More from Mozilla

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.