Invoke requestFullscreen from iFrame src with Different Origin then Navigate to Page on bfcache Lead to Persistent Fullscreen Mode for Entire Session
A cross-origin iframe could request fullscreen and then, after the parent page navigated back to a page restored from the back/forward cache, the browser stayed stuck in fullscreen mode. Pressing escape repeatedly did not exit fullscreen, and the reporter said only the OS taskbar or task manager could recover the browser.
Originally disclosed on Mozilla
- Fixed in 44 days
- Paid in 2 months
- Disclosed after 44 days
Created attachment 9249121 testcase.html
After iFrame on different origin invoke requestFullscreen() then parent page navigate to page on bfcache, the browser will goes into fullscreen with OS taskbar still visible, interestingly after pressing "esc" multiple times it will not exit the browser fullscreen mode for the entire current session. For me the only way to exit the browser is from OS taskbar or task manager taskill.
I can only reproduce this on Fission enabled and fission.bfcacheInParent toggled to true which the default since commit Enable BFCache in parent when Fission is enabled.
Steps to reproduce:
- Visit https://www.google.com to store page on BFCache
- Visit attached testcase.html
- Click on iFrame element
- Browser goes into fullscreen mode then automatically navigate to https://www.google.com
- Press "esc" multiple times
- Browser stay in fullscreen mode with OS taskbar still visible
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 state was not correctly reset when the page was restored from the back/forward cache while a cross-origin iframe held the fullscreen request.
Impact
The browser could be left stuck in fullscreen for the whole session, and the reporter said the only way out was the OS taskbar or killing the process.
What the attacker needed
Firefox with Fission enabled; bfcacheInParent set to true; Victim clicks the iframe
How it was found
- Visit a site so its page is stored in the back/forward cache
- Open the test page containing the cross-origin iframe
- Click the iframe element
- The browser enters fullscreen and then navigates to the cached site
- Press escape several times
- The browser remains in fullscreen with the OS taskbar still visible
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 is when a web page takes over the whole screen. Normally pressing the Escape key leaves it. Here, a page inside a frame on another website started fullscreen, then the browser went back to an earlier page, and the browser got stuck in fullscreen with no normal way out.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.