Skip to content
Misconfiguration Disclosed report Beginner CVE-2024-38313

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.

Muneaki Nishimura Follow

Originally disclosed on Mozilla

  • Fixed in 3 months
  • Paid in 4 months
  • Disclosed after 3 months
Text
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"

The original report as published on Mozilla's Bugzilla, by Muneaki Nishimura. 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'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

  1. Visit the provided page that demonstrates the issue.
  2. Scroll down the page and tap the 'Open Google' button.
  3. 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.

More by Muneaki Nishimura

View all

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

Security misconfiguration

The lesson behind this report.

Settings left unsafe: exposed panels, open storage buckets, debug modes, default credentials.