Microsoft Edge Content Security Bypass Vulnerability
Microsoft Edge failed to inherit Content Security Policy restrictions when a new about:blank document was opened via window.open and written to with document.write. An attacker could bypass CSP to make cross-site requests, such as loading a tracking image, leading to an information leak.
Originally disclosed on Cisco Talos
An exploitable information leak vulnerability exists in the Content Security Policy enforcement functionality of Microsoft Edge 40.15063.0.0. A specially crafted web page can cause a content security policy bypass resulting in an information leak.
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 browser did not propagate the loading document's CSP to a newly created about:blank document, contrary to the specification.
Impact
An attacker could leak information by making cross-site requests from the new document, although the report notes the original page's script may have been allowed by unsafe-inline.
What the attacker needed
Victim visits a malicious page; victim's browser is Microsoft Edge 40.15063.0.0
The fix
The browser should inherit CSP restrictions into the new about:blank document, as the specification requires and as Firefox does; the report does not say Microsoft fixed it.
How it was found
- Open a new blank window from a page using window.open with a blank target.
- Write content into the new about:blank document with document.write.
- From that new document, make a cross-site request such as loading a tracking image.
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.
Content Security Policy (CSP) is a browser rule that tells a page which other sites it may load resources from, to stop data leaking out. The report says Edge forgot to apply those rules to a new blank page opened by script, so the page could talk to other sites even though the original page was not allowed to.