Skip to content
Access control Write-up Advanced

Microsoft Edge - Local File Disclosure and EoP

The report describes multiple bugs in Microsoft Edge (EdgeHTML) that allow escaping the HTTP context to a local file context, bypassing file read restrictions to disclose local files, and elevating privilege to change settings in about:flags. An attacker could read local files and modify browser settings.

leucosite.com

Published on leucosite.com

In this write up, I will be covering multiple bugs in the Edge (EdgeHTML) browser. The combination of these bugs will result in two distinct attacks, one being a local file disclosure and the other is an elevation of privilege which is used to change any settings within 'about:flags'.

The author, on leucosite.com

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

Likely multiple flaws: a bug allowing top-frame navigation to blob URLs, WebNotes saving blob content instead of screenshots, and a navigation trick using pushState and history.back to bypass file read restrictions.

What the attacker needed

User clicks on the page; User creates a WebNote; User saves the WebNote; User opens the saved WebNote

The fix

The vulnerabilities were fixed by Microsoft, as indicated by the CVE reference.

How it was found

  1. User clicks anywhere to open a new tab and save a reference to it.
  2. The new tab navigates top frame to a blob URI using a trick.
  3. User is instructed to create a WebNote; detection via onblur event sends postMessage.
  4. Main page redirects the tab to a third page using the saved reference.
  5. Third page turns itself into a new Blob URL containing injected HTML.
  6. User saves the WebNote, which saves the blob content instead of a screenshot.

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.

This report explains how a security researcher found ways to break out of the normal web browser sandbox in Microsoft Edge. By tricking the browser into running code in a local file context, they could read files on the user's computer and change browser settings. The attack required some user interaction, like creating a WebNote.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.