Skip to content
UI spoofing Disclosed report Intermediate CVE-2021-38508

Spoofing dialog and don't exit fullscreen mode

A browser's form validation message could be displayed on top of all windows, allowing a page to spoof a browser dialog. An attacker could use this to trick a user into believing a message came from the browser itself.

Raphael Follow

Originally disclosed on Mozilla

  • Fixed in 4.4 years
  • Paid in 4.4 years
  • Disclosed after 4.4 years
Text
Created attachment 8870073
dialog.jpg

User Agent: Mozilla/5.0 (Windows NT 5.1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.112 Safari/537.36

Steps to reproduce:

Open Poc
1.spoof.html.(Fake Message Box)
2.spoof2.html (Spoofing Notification window)
3.fullscreen.html (Don't exit fullscreen mode)


Actual results:

SetCustomValidity method displays a message on top of all Windows, under certain circumstances, this may lead to the substitution of the message browser

The original report as published on Mozilla's Bugzilla, by Raphael. 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 validation message was rendered in a top-level window that was not tied to the page's own window, so it could outlive or overlay other windows.

Impact

A page could show a message that looks like a browser dialog, which may mislead the user; the text only says this may happen under certain circumstances.

What the attacker needed

Victim opens a crafted page

How it was found

  1. Open the first proof-of-concept file that shows a fake message box
  2. Open the second proof-of-concept file that shows a spoofed notification window
  3. Open the third proof-of-concept file that stays in fullscreen mode

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.

Web pages can show a small pop-up message when a form field is filled in wrongly. This report says that message could appear above every other window on the screen, so a malicious page could make it look like a real browser warning and fool the user.

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 Raphael

View all

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