Skip to content
Disclosed report Intermediate CVE-2021-23996

I'm able to render HTML content on top of Firefox's address bar and tab bar

A web page using 3D CSS transforms could render content above Firefox's browser UI, including the address bar and tab bar. An attacker could use this to display arbitrary content that appears to be part of the browser interface.

colin Follow

Originally disclosed on Mozilla

  • Fixed in 3 days
  • Paid in 8 days
  • Disclosed after 3 days
Text
I was fiddling around with 3D CSS (e.g. turning on perspective, rendering cubes using CSS) and using JS to abuse this (too many divs) when I discovered that certain cubes in a 10x10x10 block of cubes were appearing above the FireFox webpage viewport.

At first I just thought it was amusing, but I then realised it is an actual security concern as the content can be arbitrary, and could e.g. replace the address bar's default content for someone better at HTML than I.

I have created a simple HTML page (including CSS) which reproduces the issue in current Firefox (87.0 64-bit running on MacOS X High Sierra), and demonstrates that it could be used to render 2D flat content appearing over the 2D flat content of Firefox's own UI. In my test case it simply shows a red square with "Hi" written in it.

The original report as published on Mozilla's Bugzilla, by colin. 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

Impact

An attacker could render arbitrary content over Firefox's address bar and tab bar, potentially spoofing browser UI, though the report only demonstrates a simple red square with text.

What the attacker needed

Victim uses Firefox 87 on macOS; victim visits a malicious page

How it was found

  1. Enable 3D CSS perspective and create a 10x10x10 block of cubes.
  2. Use JavaScript to generate many divs for the cubes.
  3. Observe that some cubes render above the Firefox webpage viewport.

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 are normally confined to the area below the browser's toolbars. This report shows that with certain CSS 3D effects, a page can draw outside that area and cover parts of the browser itself, which could trick someone into trusting fake interface elements.