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

iframe contents can be arbitrarily drawn outside of iframe.

An iframe's content could be drawn outside its boundaries, allowing an attacker-controlled iframe to cover the parent page with arbitrary images. This could enable UI redressing or clickjacking attacks.

prada960808 Follow

Originally disclosed on Mozilla

  • Fixed in 8 days
  • Paid in 14 days
  • Disclosed after 8 days
Text
Created attachment 9296431
main.html

Steps to reproduce:
  1. Download 'main.html' and 'iframe.html' in the same directory.
  2. open 'main.html' on Firefox 105.

Actual results:
The content in the iframe is arbitrarily drawn outside of the iframe.

Expected results:
The content in the iframe should not be drawn outside of the iframe.

Severity:
This is vulnerable because the iframe domain (i.e., attacker) can fully cover the page of the main frame (i.e., victim) with any images using CSS margin-left, margin-top, and background-image (or background).

Environment:
Version: Firefox 105.0b5
OS: ubuntu 20.04

How was this issue discovered?
I used my fuzzer to find this issue.

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 content is not clipped to the iframe's bounds when CSS margins and background images are used.

What the attacker needed

Victim uses Firefox 105; attacker controls iframe content; victim visits a page with the iframe

How it was found

  1. Download the two provided HTML files into the same directory.
  2. Open the main HTML file in Firefox 105.
  3. Observe that the iframe content is drawn outside the iframe.

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.

A web page can include another page inside a box called an iframe. Normally the inner page must stay inside that box. Here, the inner page could paint outside the box and cover the outer page, which could trick a user into clicking things they did not intend to.

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.