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

Firefox incorrectly draws outside of iframe.

Firefox 93 renders iframe content outside the iframe's boundaries when the iframe is loaded via JavaScript. An attacker could use this to visually spoof or overlay content on a page, potentially misleading users.

prada960808 Follow

Originally disclosed on Mozilla

  • Fixed in 5 months
  • Paid in 6 months
  • Disclosed after 5 months
Text
Created attachment 9245388
parent.html

User Agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/94.0.4606.71 Safari/537.36

Steps to reproduce:

1. open 'parent.html' on Firefox 93.
2. load 'child.html' by executing Js code
set_frame('./child.html');



Actual results:

The content in iframe is drawn outside of iframe even if 'child.html' is loaded from a local server.



Expected results:

The content in iframe should not be drawn outside of iframe.

The original report as published on Mozilla's Bugzilla, by prada960808. 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 a rendering bug in Firefox where iframe clipping is not applied correctly when the iframe is loaded dynamically via JavaScript.

What the attacker needed

Victim uses Firefox 93; attacker controls iframe content

How it was found

  1. Open parent.html in Firefox 93.
  2. Load child.html by executing JavaScript code that calls set_frame with the child page.

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.

An iframe is a box on a web page that shows another page inside it. Normally, whatever is inside that box should stay inside it. Here, Firefox drew the inner page outside its box, which could let a malicious site make things look like they belong to another site.

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 prada960808

View all

1 more disclosed report, 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.