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.
Originally disclosed on Chrome VRP
- 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.
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
- Open poc.html
- 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
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
- Open the proof-of-concept HTML page.
- 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.