URL spoofing by abusing auto hide URL bar feature (FxiOS)
The Firefox iOS browser hides the URL bar when scrolling, and when a new window is opened from a scrolled page, the URL bar can remain hidden if the new page is short. An attacker could show a fake address bar to trick users into believing they are on a legitimate site.
Originally disclosed on Mozilla
- Fixed in 3 months
- Paid in 4 months
- Disclosed after 3 months
Created attachment 9378117
fxios_url_bar_spoofing.gif
When you scroll a page vertically, the URL bar is automatically hidden. And when you open a new window in this condition, the URL bar in the new window is sometimes kept hidden as well.
If the page content opened in the new window is long enough, the URL bar will reappear as you repeatedly scroll up and down. However, if the content is short, the URL bar is never displayed again until the page is reloaded.
This behavior can be abused for showing a fake address bar.
There are two ways to reproduce this attack scenario. One is easy but unstable, the other one requires some steps but stable.
Reproduction case #1 (unstable)
(1) Visit https://csrf.jp/2024/fxios-url-spoofing/
(2) Scroll down the page and tap the "Open Google" button
(3) Fake Google login page is shown in new tab but the address bar says this is "www.google.com"
Reproduction case #2 (stable)
(1) Visit https://csrf.jp/2024/fxios-url-spoofing/open_new_window.php
(2) Scroll down the page and long tap the text link
(3) Tap "Open New Tab" and "Switch"
(4) Fake Google login page is shown in new tab but the address bar says this is "www.google.com"
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's logic for showing the URL bar after opening a new window does not account for the page's scroll position or content length, leaving the bar hidden.
What the attacker needed
Victim uses Firefox on iOS; victim scrolls down the attacker's page; victim opens a new tab via a link or button
How it was found
- Visit the provided page that demonstrates the issue.
- Scroll down the page and tap the 'Open Google' button.
- A fake Google login page appears in a new tab, but the address bar still shows 'www.google.com'.
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 scroll down a webpage on a phone, the address bar at the top often slides away to give more screen space. This report found that if you open a new tab from a scrolled page, the address bar might not come back on the new page, especially if the page is short. A malicious site could use this to show a fake login page while the address bar still displays a trusted website's address, tricking you into entering your password.
What is Misconfiguration?
Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.