Skip to content
UI spoofing Disclosed report Intermediate

Show about:blank (placeholder "Search or enter address" in the URL bar) and bypass insecure login warning

A window opened with an empty URL and a named target could have its content replaced by script while the address bar showed only a placeholder instead of 'about:blank'. This could confuse users about the page's origin and also bypass the browser's insecure login warning when a fake login form was injected.

Abdulrahman Alqabandi Follow

Originally disclosed on Mozilla

  • Fixed in 25 hours
  • Paid in 6 days
  • Disclosed after 25 hours
Text
Created attachment 9038171
spafer.html

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/71.0.3578.98 Safari/537.36

Steps to reproduce:

open("","q","q").document.body.innerHTML=123;

or see attached for an attack scenario, simply open the html and click on link.


Actual results:

blank (placeholder) address bar 


Expected results:

per bug 1284395 and bug 1228754 any window that has an opener should always display the full 'about:blank' to prevent confusing users. 

As a side effect it seems like this also bypasses insecure login warnings, if we open 'about:blank' in a new tab from an insecure website (not popup window as working poc) first thing we will notice is that 'about:blank' appears normally in the bar, and if we inject a login form then as soon as we reach the password input field we will get an insecure warning. However, if we use the PoC attached you will see that no warning appears and the address bar is blank (with placeholder).

Tested only on latest nightly.

The original report as published on Mozilla's Bugzilla, by Abdulrahman Alqabandi. 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 failed to display the full 'about:blank' address for windows that have an opener when the window was created with an empty URL and a named target, and the same state also suppressed the insecure login warning.

Impact

An attacker could make a window appear as a harmless blank page while showing attacker-controlled content, and could bypass the insecure login warning to phish credentials.

What the attacker needed

Victim visits a malicious page; victim interacts with a link or script

How it was found

  1. Run the script that opens an empty URL with a named target and writes content into the new window's body.
  2. Observe that the address bar shows a blank placeholder instead of 'about:blank'.
  3. Open the attached HTML file and click the link to see the attack scenario.
  4. Inject a login form and focus the password field to see that no insecure warning appears.

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 opens a new window, the browser normally shows the address 'about:blank' so you know it is an empty page. Here, a script could put its own content into that window while the address bar showed only a grey placeholder, hiding where the page really came from. The same trick stopped the browser from warning users that a login form was on an insecure page.

What is UI spoofing?

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.

More by Abdulrahman Alqabandi

View all

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

Clickjacking and UI spoofing

The lesson behind this report.

The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.