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

Css Draw Mouse Cursor to hide omni box

A CSS custom cursor image larger than the iframe could be drawn outside the iframe's content area, allowing it to cover the browser's omnibox. An attacker could use this to spoof the URL shown in the omnibox.

Hafiizh Follow

Originally disclosed on Mozilla

  • Fixed in 3 days
  • Paid in 9 days
  • Disclosed after 3 days
Text
Created attachment 9298956
abusive3.html

when the mouse drawing cursor at 128x128 is not inside the iframe, the cursor cannot exit the web content area. but when inside an iframe , it should be able to bust out of the web content area and can hide omnibox. maybe it could be more useful to an attacker if the cursor image was a spoofed URL

1. open abusive.html
2. move cursor to hide omnibox 

i attached the POC video and html file

The original report as published on Mozilla's Bugzilla, by Hafiizh. 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 browser did not clip the custom cursor image to the iframe's bounds, so a large cursor could be painted over browser UI.

Impact

An attacker could hide the omnibox and potentially spoof the URL shown to the user, but the report only suggests this as a possibility.

What the attacker needed

Victim visits a malicious page; page uses an iframe with a large custom cursor

How it was found

  1. Open the provided HTML file.
  2. Move the mouse cursor to hide the omnibox.

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 set a custom image as the mouse cursor. This report found that when such a page is inside a smaller frame, the large cursor image can spill outside the frame and cover the address bar. That could let a malicious page hide the real web address and show a fake one.

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 Hafiizh

View all

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