Skip to content
UI spoofing Disclosed report Intermediate CVE-2022-29914

Reuse popup window using same windowName able to overlap fullscreen notification

Firefox reuses an existing popup window when a new popup is opened with the same window name, and the reused popup can be drawn on top of the fullscreen notification. An attacker could use this to obscure the notification that tells a user they are in fullscreen mode.

Irvan Kurniawan Follow

Originally disclosed on Mozilla

  • Fixed in 4 months
  • Paid in 4 months
  • Disclosed after 4 months

Created attachment 9255739 reusepopup.html

After launching a popup in the same windowName Firefox will reuse the same popup window instead of launching a new one. Interestingly when combining this method with requestFullscreen the reused popup window able to show in top of the fullscreen notification.

Mozregression show it is regression of Bug 1712038 - Exit fullscreen only when the focus change will raise the window. On the good build Firefox will exit the fullscreen with following console.warn Exited fullscreen because a window was focused.

Steps to reproduce:

  1. Visit attached reusepopup.html
  2. Click "Launch Popup"
  3. Click "Reuse Popup Spoof"
  4. Fullscreen notification will be overlapped with reused popup window

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 notification is not kept above reused popup windows, so a popup opened with the same window name can be drawn over it.

Impact

A reused popup could cover the fullscreen notification, so a user may not see that the page has entered fullscreen; the report does not show any further harm.

What the attacker needed

Victim visits a crafted page; popups allowed for the site

How it was found

  1. Open the attached test page.
  2. Click the button that launches a popup.
  3. Click the button that reuses the popup.
  4. Observe the reused popup overlapping the fullscreen notification.

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 website opens a small popup window, it can give that window a name. If it later opens another popup with the same name, the browser reuses the existing window instead of making a new one. Firefox also shows a notice when a page goes fullscreen, and this report says a reused popup can cover that notice, so the user may not realise the page is fullscreen.

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.

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.

Clickjacking and UI spoofing

The lesson behind this report.

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.