Skip to content
UI spoofing Advisory Intermediate CVE-2024-7981

Inappropriate implementation in Views (CVE-2024-7981)

The permission prompt UI on desktop platforms only protected against rapid mouse clicks, not touch taps, because the input event activation protector ignored touch events. An attacker could use tapjacking to trick a user into accepting a permission prompt before it was visible.

Thomas Orlita Follow

Originally disclosed on Chrome VRP

Bounty$1,000 Low View original
  • Fix shipped in 14 months

VULNERABILITY DETAILS
On desktop platforms, the permission prompt UI protects against unwanted clicks.
This is implemented in InputEventActivationProtector::IsPossiblyUnintendedInteraction, which ignores the interaction if there was a previous interaction less than 500ms ago.

https://source.chromium.org/chromium/chromium/src/+/refs/heads/main:ui/views/input_event_activation_protector.cc;l=55;drc=316850595842d7b40953b16f96e7615b1bfa57a7

  if (!event.IsMouseEvent() && !event.IsTouchEvent()) {  
    return false;  
  }  

Looking at this code makes it seem that it takes both mouse and touch events into consideration, but when I tested this on my device, it works for mouse events only.
This leaves the permission prompt UI vulnerable to tapjacking attacks.

VERSION
Chrome Version: 117.0.5889.0
Operating System: Windows 11 with a touchscreen display

REPRODUCTION CASE

  1. Open poc.html
  2. Repeatedly tap on the cookie

[poc-click.webm] shows the correct behavior with clicks.
[poc-touch.webm] shows the vulnerable behavior with taps, where the permission prompt is accepted before even being visible.

CREDIT INFORMATION
Reporter credit: Thomas Orlita

The original report as published on the Chromium issue tracker, by Thomas Orlita. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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 input event activation protector only checked mouse events and not touch events, so the 500ms delay was not applied to taps.

Impact

An attacker could cause a user to accept a permission prompt unintentionally via tapjacking, as the prompt could be accepted before it was visible.

What the attacker needed

Victim uses a touchscreen device; victim visits a malicious page

How it was found

  1. Open the proof-of-concept HTML page.
  2. Repeatedly tap on the cookie element.

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 permission prompt is a pop-up that asks if you want to allow something, like showing notifications. Tapjacking is when a malicious app or website tricks you into tapping something you didn't mean to, often by hiding the real button under a fake one. Here, the protection against accidental double-clicks didn't work for touch screens, so a quick tap could accept the prompt without you seeing it.

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 Thomas Orlita

View all

22 more disclosed reports, best first.

More from Google Chrome

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.