Skip to content
DoS Disclosed report Advanced CVE-2022-22743

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.

Irvan Kurniawan Follow

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:

  1. Visit https://www.google.com to store page on BFCache
  2. Visit attached testcase.html
  3. Click on iFrame element
  4. Browser goes into fullscreen mode then automatically navigate to https://www.google.com
  5. Press "esc" multiple times
  6. Browser stay in fullscreen mode with OS taskbar still visible

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

  1. Visit a site so its page is stored in the back/forward cache
  2. Open the test page containing the cross-origin iframe
  3. Click the iframe element
  4. The browser enters fullscreen and then navigates to the cached site
  5. Press escape several times
  6. 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.

More by Irvan Kurniawan

View all

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

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.