Firefox for Android Missing Fullscreen Notification on Custom Tabs
Firefox for Android enters fullscreen mode when a page calls the fullscreen API inside a Custom Tab, without showing the usual fullscreen notification. Because the user is not told the page is fullscreen, an attacker could spoof the address bar UI.
Originally disclosed on Mozilla
- Fixed in 23 months
- Paid in 23 months
- Disclosed after 23 months
After website is opened on Firefox's custom tabs, then page request fullscreen with Element.requestFullScreen(), the browser goes fullscreen without any fullscreen notification, as user unaware the page is displayed fullscreen it can lead to address bar UI spoofing.
As far I know Firefox will open the page on custom tabs in the following case:
- On PWA apps -> External links open in Custom Tabs
- From Android Custom Tabs intent
Tested on:
- Firefox Nightly 91.0a1 (Build #2015818827)
- Firefox Beta 90.0.0-beta.6 (Build #2015818371)
Steps to Reproduce:
- Open Firefox on Android
- Go to https://www.twitter.com
- Tap menu
- Tap "Install App"
- On Android launcher home screen
- Tap "Twitter"
- Tap "Search Twitter" on Twitter search bar
- Type "https://permission.site" then enter
- Tap on https://permission.site link
- On permission.site
- Scroll down and tap "Fullscreen" button
- Browser goes fullscreen without any fullscreen notification
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 fullscreen notification is not triggered for pages loaded inside Android Custom Tabs, so the fullscreen transition happens silently.
Impact
A page shown in a Custom Tab could enter fullscreen silently and spoof the address bar UI, misleading the user about which site they are on.
What the attacker needed
Firefox on Android; page opened in a Custom Tab; victim taps a fullscreen control
How it was found
- Open Firefox on Android and install the Twitter PWA from the site menu.
- Launch the installed Twitter app from the Android home screen.
- Use the Twitter search bar to navigate to permission.site and open the link.
- On permission.site, scroll down and tap the Fullscreen button.
- The browser goes fullscreen with no fullscreen notification shown.
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 a web page goes fullscreen, browsers normally show a small notice so you know the page is now covering the whole screen. Here, Firefox on Android skipped that notice inside a special in-app browser window called a Custom Tab. Without the notice, a page could draw fake browser controls and trick someone into thinking they are still on a trusted site.
What is UI spoofing?
The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.