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.
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:
- Visit attached reusepopup.html
- Click "Launch Popup"
- Click "Reuse Popup Spoof"
- Fullscreen notification will be overlapped with reused popup window
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
- Open the attached test page.
- Click the button that launches a popup.
- Click the button that reuses the popup.
- 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.