Skip to content
Misconfiguration Disclosed report Intermediate CVE-2023-6210

Mixed content bypass using window.open'd about:blank from http context and https iframe

A web page served over HTTPS could open a new window with a javascript: URL, then write an iframe pointing to an HTTP site into that window, bypassing the browser's mixed content blocking. An attacker could use this to load insecure HTTP content within a secure HTTPS context, potentially enabling further attacks.

Godson Bastin Follow

Originally disclosed on Mozilla

  • Fixed in 10 months
  • Paid in 10 months
  • Disclosed after 10 months
Text
Created attachment 9304259
index.html

Browser used: Firefox's latest version

Hi Team, 

I Just Read a disclosed Chrome Report and Seems the Same Bug affecting Firefox's Latest Version. 
https://bugs.chromium.org/p/chromium/issues/detail?id=957002 (It is possible to Frame HTTP Site from HTTPS which is not allowed and it will throw a "Mixed Content" error)

Steps to Reproduce,

1 . To demonstrate the issue, you will need 2 Websites. One with HTTP and another with HTTPS.
2.  From HTTPS, You need to Open a Javascript URI with 
`var newWin = window.open("javascript:''","_blank");`
3.  Then Call InnerHTML on `newWin` with iframe.src as HTTP Site, 
`newWin.document.body.innerHTML = "<iframe src='http://testphp.vulnweb.com/login.php'>"`

I have added the PoC URL and PoC.html for reference. 

Thanks, 
Godson

The original report as published on Mozilla's Bugzilla, by Godson Bastin. 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 the browser did not enforce mixed content blocking on documents created via window.open with a javascript: URL, allowing an HTTP iframe to be inserted into an about:blank window that inherited the HTTPS origin.

What the attacker needed

Victim visits an HTTPS page controlled by attacker; browser is Firefox (latest version)

How it was found

  1. Set up two websites: one served over HTTP and one over HTTPS.
  2. From the HTTPS page, open a new window using a javascript: URL.
  3. Write an iframe with an HTTP source into the new window's document body.

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.

When a website uses HTTPS (secure), browsers normally block it from loading content over HTTP (insecure) to prevent attackers from tampering with that content. This report shows a way around that block: by opening a new window with a special JavaScript link and then writing an HTTP iframe into it, the browser allowed the insecure content to load. That could let an attacker show fake login forms or steal data that should have been protected.

What is Misconfiguration?

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.

More from Mozilla

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.