requestFullscreen on iFrame from different origin able to not show fullscreen notification toast
A cross-origin iframe could trigger fullscreen and then, after navigating inside the iframe, the browser left fullscreen in an inconsistent state where the page still appeared fullscreen but with browser chrome visible. In that state, triggering fullscreen again entered fullscreen without the usual fullscreen notification toast.
Originally disclosed on Mozilla
- Fixed in 2 months
- Paid in 3 months
- Disclosed after 2 months
Created attachment 9264782 iframegcloud.html
After trigger requestFullscreen on iFrame from different origin, then click the iFrame to navigate the iFrame url, interestingly after browser exit the fullscreen mode, the iFrame content escaped to parent page.
It seems the browser is improperly exit the fullscreen mode, the page still looks on fullscreen mode, but with visible address bar and toolbar. Interestingly when in that situation, after trigger requestFullscreen the browser goes into fullscreen without fullscreen notification toast.
Tested on:
- Firefox 97.0.1 (64-bit) on Windows 11
- Firefox Nightly 99.0a1 (2022-02-20) (64-bit) on Windows 11
Steps to reproduce:
- Visit attached iframegcloud.html
- Click anywhere inside the iFrame
- Click "AAA" href text
- Click Spoof page
- Browser goes fullscreen without fullscreen notification toast
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 fullscreen state tracking got out of sync when a cross-origin iframe navigated while fullscreen, so the exit was incomplete and the notification was skipped on the next request.
Impact
A page could enter fullscreen without the notification toast, which may make spoofing the browser or another application easier for an attacker.
What the attacker needed
Victim visits a crafted page; victim clicks inside the iframe; cross-origin iframe content
How it was found
- Open the attached test page.
- Click anywhere inside the iframe.
- Click the link text inside the iframe.
- Click the spoof page control.
- Observe the browser entering fullscreen without the notification toast.
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.
Fullscreen mode normally shows a small notice so a user knows a page has taken over the screen. This report says a page using an iframe from another site could get the browser into a strange half-fullscreen state, and then go fullscreen again without that notice. That matters because the notice is a safety signal that helps people spot a page pretending to be their browser or another app.
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.