Firefox Focus iOS Address Bar Spoof Using Invalid Port Site and <iframe> with Invalid Protocol Redirect
Firefox Focus for iOS could be tricked into showing a different domain in the address bar than the page actually loaded. An attacker could make the address bar display a trusted site while the user remains on a malicious page, enabling phishing.
Originally disclosed on Mozilla
- Fixed in 8 months
- Paid in 8 months
- Disclosed after 8 months
Created attachment 9498737
9.html
If we redirect current domain to a never loading location such as invalid port (google.com:81) using window.open with _self window reference the window will just hang on without changing the address bar, but if we have an `<iframe>` inside the page and we redirect that iframe to an external or invalid protocol (x://x) the browser will show the prompt to open inside an external app and the address bar will immediately change to (google.com)
POC Code:
'''html
<h1>Spoofed</h1>
<script>
setTimeout(()=>{window.open(`https://www.google.com:81`,`_self`)},50);
</script>
<iframe style=display:none srcdoc="<script>setTimeout(()=>{location='x://'},100);</script>"></iframe>
'''
Online POC: https://rx23.io/poc/firefox/9.html
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 updated the address bar based on a navigation attempt (to an invalid port or protocol) before the navigation actually completed or failed, leaving the displayed URL out of sync with the real page.
What the attacker needed
Victim visits a malicious page; Firefox Focus on iOS
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.
The address bar is the main way people check if a website is genuine. This bug let a malicious page change what the address bar showed, so it looked like the user was on a different, trusted site. That makes it easier to trick someone into entering passwords or personal details.
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.