Full Address Bar Spoof using Never Loading Destination Inside a new Window (invalid port hidden)
A new window opened to a never-loading address (such as a domain with an invalid port) shows the intended domain in the address bar while remaining same-origin with the opener, allowing the opener to write arbitrary content into it. An attacker could therefore display a spoofed login page with a convincing address bar and safe icon.
Originally disclosed on Mozilla
- Fixed in 8 months
- Paid in 8 months
- Disclosed after 8 months
If we redirect the current page to a slow-loading location or an invalid address, the address bar won't change until we get a response that means address bar value is based on the response not the requested destination. While testing this behavior I found out that if we open a new window/tab pointing to an invalid address or never-loading destination such as (https://google.com:81) the address bar will change the domain name (google.com), and since the page hasn't loaded it yet will be treated as same-origin with the opener which we can write to it and have any content on the tab with the spoofed address bar, this method fully spoofs everything including the safe icon and it won't show as a loading page, it's impossible to notice.
- POC: Open in Firefox iOS `https://rx23.io/poc/firefox/4.html`
What my POC does:
- Taping on the button opens a new window pointing to (https://accounts.google.com:81/)
- After half a second using document.write we change the opened window DOM to a spoof login page
Thanks
Renwa
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 treats a newly opened window to a never-loading destination as same-origin with its opener, allowing the opener to write content while the address bar already displays the requested domain.
Impact
An attacker could show a fake login page with a spoofed address bar and safe icon, making phishing very hard to detect; the report notes this works in Firefox on iOS.
What the attacker needed
Victim uses Firefox on iOS; victim visits attacker page; victim taps a button
How it was found
- Open the proof-of-concept page in Firefox on iOS.
- Tap the button to open a new window pointing to a domain with an invalid port.
- After half a second, the opener uses document.write to replace the new window's content with a spoofed login page.
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 you open a new tab to a web address that never finishes loading, the browser may show the domain name in the address bar even though the page is still blank. The report found that in Firefox on iOS, the original page can still write content into that blank tab, so an attacker can put a fake login form there while the address bar shows a trusted domain. This makes it very hard for a user to notice the trick.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.