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

Inappropriate implementation in Permissions (CVE-2024-7975)

The Permission Element's Intersection Observer check can be bypassed with -webkit-box-reflect to render content above it, and tap events are not checked for temporal clickjacking. An attacker could trick a user into double-tapping to unknowingly grant camera and microphone permissions.

Thomas Orlita Follow

Originally disclosed on Chrome VRP

Bounty$3,000 Medium View original
  • Fix shipped in 3 months

Report description

Prompt Element tapjacking


Bug location

Where do you want to report your vulnerability?

Chrome VRP – Report security issues affecting the Chrome browser. See program rules


The problem

Please describe the technical details of the vulnerability

The Permission Element <permission> is a new alternative way for requesting permissions from users. It is available as an origin trial. 0

There's two security issues here:

  1. The Permission Element, as explained in the Security section of the explainer [1], ensures it is not coverable by other elements to avoid hiding the text and misleading users. It uses the Intersection Observer to do this. However, the Intersection Observer doesn't actually guarantee there is no graphics rendered above the Permission Element.

This can be abused using -webkit-box-reflect, which renders an element to a different position on the screen compared where it is located in the DOM, bypassing these checks.

  1. The Permission Element, the same way as the classic permission request modal, ensures that the user can't be tricked to accept a permission by accident by abusing a temporal clickjacking attack.

However, no checks are done for tap events. Double tapping on the specified point on the screen bypasses this and compromises the user's privacy and security by granting a permission to the camera and microphone (as an example).

Reproduction steps:

  1. Open poc.html
  2. Double-tap as instructed on the screen

Note: the position is semi-hardcoded in the PoC. Adjust it as needed. In a real-world scenario, this would be done automatically.

[1]: https://github.com/WICG/PEPC/blob/main/explainer.md#:~:text=PEPC%20might%20be-,partially%20covered,-(to%20hide%20the

Please briefly explain who can exploit the vulnerability, and what they gain when doing so

An attacker can trick the user into double tapping on the screen, which results in unknowingly accepting the permission request modal and granting access to a permission like camera and microphone.


The cause

What version of Chrome have you found the security issue in?

128.0.6541.0

Is the security issue related to a crash?

No

Choose the type of vulnerability

Permissions Bypass

How would you like to be publicly acknowledged for your report?

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.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 4 min read.

Context

The target is Google Chrome, reported through the Chrome Vulnerability Reward Program. The feature under examination is the Permission Element, written as <permission>, a new alternative way for sites to request permissions from users. At the time of the report it was available as an origin trial, documented in a Chrome developer blog post and in the WICG PEPC explainer.

The Permission Element is designed to be safer than a plain button that triggers a permission prompt. The Security section of the explainer states that the element must not be coverable by other elements, so that a page cannot hide its text or otherwise mislead the user about what they are agreeing to. The implementation enforces this with an Intersection Observer. Separately, the element, like the classic permission request modal, is meant to prevent a user being tricked into accepting a permission by accident through a temporal clickjacking attack.

The researcher found two distinct weaknesses in these protections, both of which end with a permission being granted without the user's informed consent.

Setup

The issue was found in Chrome version 128.0.6541.0. The report does not describe any account, role or special tooling. The only artefact needed is a proof-of-concept page, poc.html, which the researcher supplies. The reproduction is a two-step procedure:

  1. Open poc.html.

The report notes that the position used in the PoC is semi-hardcoded and may need adjusting. In a real-world scenario, the researcher says, this positioning would be done automatically.

Finding it

The researcher examined the two guarantees the Permission Element is supposed to provide and found that neither holds in practice.

First, the anti-covering check relies on an Intersection Observer. An Intersection Observer reports on the geometric relationship between elements, but it does not guarantee that no graphics are rendered above the Permission Element. This can be abused using the CSS property -webkit-box-reflect, which renders an element to a different position on the screen compared with where it is located in the DOM. The Intersection Observer does not guarantee there is no graphics rendered above the Permission Element, so the reflected copy can be drawn over it.

Second, the temporal clickjacking defence does not cover tap events. The Permission Element, like the classic permission request modal, is supposed to stop a user being tricked into accepting a permission by accident. The researcher found that no checks are done for tap events. A double tap on the specified point on the screen bypasses the protection and grants the permission, for example to the camera and microphone.

Exploitation

Step 1: render over the Permission Element with a reflection

The page uses -webkit-box-reflect to draw an element at a screen position different from its DOM position. The Intersection Observer does not guarantee there is no graphics rendered above the Permission Element, so the reflected graphics can sit above it. This removes the protection that is meant to stop the element's text being hidden or the user being misled.

Step 2: double tap to accept

The page instructs the user to double tap on a point on the screen. No checks are done for tap events, so the double tap is accepted and the permission request is granted. The report gives camera and microphone as examples of permissions that can be granted this way.

The PoC's tap position is semi-hardcoded and may need adjusting; the researcher notes that in a real-world attack the positioning would be handled automatically.

Root cause

There are two design and implementation gaps.

  1. The anti-covering protection is built on an Intersection Observer, which does not guarantee there is no graphics rendered above the Permission Element. -webkit-box-reflect renders an element to a different position on the screen compared with where it is located in the DOM, bypassing the checks. The check therefore passes while graphics are rendered above the Permission Element.
  2. The temporal clickjacking defence does not cover taps. A double tap bypasses the protection, so the user can be walked into accepting a permission they did not intend to grant.

Impact

An attacker can trick the user into double tapping on the screen, which results in the user unknowingly accepting the permission request and granting access to a permission such as the camera and microphone. This compromises the user's privacy and security. The attack requires the victim to double tap at the relevant point; the report says that in a real-world scenario the positioning would be done automatically. The platform records the issue as medium severity, with a bounty of 3000.00 USD, weakness "Inappropriate implementation", asset "Permissions", disclosed on 2024-09-09 and tracked as CVE-2024-7975.

Fix

The report does not describe a fix.

Variants to test

  • Other CSS features that render an element away from its DOM position, in the same spirit as -webkit-box-reflect. A positive result is a Permission Element that is visually covered while the Intersection Observer check still passes.
  • Input events other than clicks and taps, such as those produced by assistive technology or synthetic event paths. A positive result is a permission being granted without the temporal check firing.
  • Different permission types requested through the Permission Element. A positive result is any permission, not only camera and microphone, being granted through the double-tap path.
  • Automated positioning of the tap target, to confirm the semi-hardcoded coordinate in the PoC can be derived reliably. A positive result is a page that lands the double tap on the required point without manual adjustment.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 11 min read.

What happened, in plain words

Google Chrome has a feature called the Permission Element, written in HTML as <permission>. It is a new way for a website to ask you for a permission, for example to use your camera or your microphone. Instead of a plain button that pops up a permission dialog, the page places this special element, and the browser is supposed to make sure the element cannot be abused.

The researcher, Thomas Orlita, found two separate problems with the protections around this element. Both end the same way: you grant a permission without really meaning to. The report was filed through the Chrome Vulnerability Reward Program, the programme Google runs to pay people who report security bugs in Chrome. The platform records it as medium severity, with a bounty of 3000.00 USD, weakness "Inappropriate implementation", asset "Permissions", disclosed on 2024-09-09 and tracked as CVE-2024-7975.

Before going further, a few words on the vocabulary that keeps coming back.

  • A permission is a capability the browser can hand to a website, such as access to the camera, the microphone or your location. The browser is the gatekeeper: the site has to ask, and you have to agree.
  • A permission prompt (or permission request modal) is the small dialog the browser shows you to ask for that agreement. A modal is a window that blocks the rest of the page until you answer it.
  • Clickjacking is a trick where a page makes you click or tap something you did not intend to click or tap, usually by hiding the real target under something that looks harmless. The name comes from "hijacking your click".
  • Tapjacking is the same idea for touch screens: the page tricks your finger.
  • An API (Application Programming Interface) is a defined set of ways one piece of software can talk to another. When we say a browser feature is exposed as an API, we mean web pages have a documented way to call it.
  • An origin trial is a Chrome mechanism that lets websites try an unfinished feature before it ships to everyone. The feature is available, but only to sites that opt in.
  • CSS is the language that describes how a web page looks: colours, sizes, positions. A CSS property is one named setting in that language, such as a colour or a position rule.
  • The DOM (Document Object Model) is the browser's in-memory tree of the page: every element, in the order and nesting the HTML describes. When we say where an element "lives in the DOM", we mean its place in that tree.
  • An Intersection Observer is a browser API that watches whether elements overlap or come into view, and reports on their geometric relationship. Think of a security guard who watches a floor plan of the building rather than the building itself: if reality matches the plan, the guard is right, but the guard never looks up.

Context

The target is Google Chrome, reported through the Chrome Vulnerability Reward Program. The feature under examination is the Permission Element, written as <permission>, a new alternative way for sites to request permissions from users. At the time of the report it was available as an origin trial, documented in a Chrome developer blog post and in the WICG PEPC explainer.

WICG is the W3C Community Group that works on proposals for new web platform features, and PEPC is the name of the proposal that defines the Permission Element. An explainer is the document a proposal's authors write to describe what the feature does and why it is designed the way it is.

The Permission Element is designed to be safer than a plain button that triggers a permission prompt. The Security section of the explainer states that the element must not be coverable by other elements, so that a page cannot hide its text or otherwise mislead the user about what they are agreeing to. The implementation enforces this with an Intersection Observer. Separately, the element, like the classic permission request modal, is meant to prevent a user being tricked into accepting a permission by accident through a temporal clickjacking attack.

A temporal clickjacking attack is one that plays out over time: the attacker does not just place a decoy, they arrange the sequence of events so that your click or tap lands on the real target at the moment it matters. The defence is to make the browser check that the interaction is genuine and deliberate before it counts.

The researcher found two distinct weaknesses in these protections, both of which end with a permission being granted without the user's informed consent.

Setup

The issue was found in Chrome version 128.0.6541.0. The report does not describe any account, role or special tooling. The only artefact needed is a proof-of-concept page, poc.html, which the researcher supplies. A proof of concept (PoC) is a small demonstration that shows a bug is real, without needing to be a finished attack.

The reproduction is a two-step procedure:

  1. Open poc.html.

The report notes that the position used in the PoC is semi-hardcoded and may need adjusting. Hardcoded means a value is written directly into the page instead of being calculated, so it only works for one particular screen size or layout. In a real-world scenario, the researcher says, this positioning would be done automatically.

Finding it

The researcher examined the two guarantees the Permission Element is supposed to provide and found that neither holds in practice.

First, the anti-covering check relies on an Intersection Observer. An Intersection Observer reports on the geometric relationship between elements, but it does not guarantee that no graphics are rendered above the Permission Element. This can be abused using the CSS property -webkit-box-reflect, which renders an element to a different position on the screen compared with where it is located in the DOM. The Intersection Observer does not guarantee there is no graphics rendered above the Permission Element, so the reflected copy can be drawn over it.

A reflection in CSS is a visual copy of an element, drawn elsewhere on the screen. The original stays where it is in the page; the copy is painted at a different spot. The observer does not guarantee there is no graphics rendered above the Permission Element, while your eyes see the copy sitting right on top of it.

Second, the temporal clickjacking defence does not cover tap events. The Permission Element, like the classic permission request modal, is supposed to stop a user being tricked into accepting a permission by accident. The researcher found that no checks are done for tap events. A double tap on the specified point on the screen bypasses the protection and grants the permission, for example to the camera and microphone.

A click is a mouse press and release. A tap is the touch-screen equivalent. Browsers treat them as different kinds of input events, and a defence written for one does not automatically cover the other. That gap is the second bug.

Exploitation

Step 1: render over the Permission Element with a reflection

The page uses -webkit-box-reflect to draw an element at a screen position different from its DOM position. The Intersection Observer does not guarantee there is no graphics rendered above the Permission Element, so the reflected graphics can sit above it. This removes the protection that is meant to stop the element's text being hidden or the user being misled.

In everyday terms: the guard checks the floor plan, the plan says the corridor is clear, and meanwhile a mirror has been set up so that what you actually see in the corridor is something else entirely. The check passes, the user is fooled.

Step 2: double tap to accept

The page instructs the user to double tap on a point on the screen. No checks are done for tap events, so the double tap is accepted and the permission request is granted. The report gives camera and microphone as examples of permissions that can be granted this way.

The PoC's tap position is semi-hardcoded and may need adjusting; the researcher notes that in a real-world attack the positioning would be handled automatically.

Why does the double tap matter? Because the defence against accidental acceptance does not check tap events, so a page can ask for taps instead. If the check only looks at clicks, a page can simply ask for taps instead, and the same protection that would have stopped a click does nothing.

Root cause

There are two design and implementation gaps.

  1. The anti-covering protection is built on an Intersection Observer, which does not guarantee there is no graphics rendered above the Permission Element. -webkit-box-reflect renders an element to a different position on the screen compared with where it is located in the DOM, bypassing the checks. The check therefore passes while graphics are rendered above the Permission Element.
  2. The temporal clickjacking defence does not cover taps. A double tap bypasses the protection, so the user can be walked into accepting a permission they did not intend to grant.

A useful comparison for the first gap: a building inspector who only reads the blueprint will sign off a wall that is not actually there. The blueprint (the DOM) and the finished building (what is painted on screen) are two different things, and the check was reading the wrong one.

Impact

An attacker can trick the user into double tapping on the screen, which results in the user unknowingly accepting the permission request and granting access to a permission such as the camera and microphone. This compromises the user's privacy and security. The attack requires the victim to double tap at the relevant point; the report says that in a real-world scenario the positioning would be done automatically. The platform records the issue as medium severity, with a bounty of 3000.00 USD, weakness "Inappropriate implementation", asset "Permissions", disclosed on 2024-09-09 and tracked as CVE-2024-7975.

A CVE (Common Vulnerabilities and Exposures) is a public identifier given to a known security flaw so that people can refer to it unambiguously. A bounty is the payment a programme makes to a researcher who reports a valid issue.

Fix

The report does not describe a fix.

Variants to test

These are follow-up ideas in the same spirit as the original finding: places where the same two gaps might show up again.

  • Other CSS features that render an element away from its DOM position, in the same spirit as -webkit-box-reflect. A positive result is a Permission Element that is visually covered while the Intersection Observer check still passes.
  • Input events other than clicks and taps, such as those produced by assistive technology or synthetic event paths. A positive result is a permission being granted without the temporal check firing. Assistive technology means tools such as screen readers or switch devices that help people with disabilities use a computer; synthetic events are input events a script creates itself rather than ones a real finger or mouse produced.
  • Different permission types requested through the Permission Element. A positive result is any permission, not only camera and microphone, being granted through the double-tap path.
  • Automated positioning of the tap target, to confirm the semi-hardcoded coordinate in the PoC can be derived reliably. A positive result is a page that lands the double tap on the required point without manual adjustment.

Glossary

  • API (Application Programming Interface): a defined set of ways one piece of software can talk to another; for a browser feature, the documented way web pages can call it.
  • Assistive technology: hardware or software, such as a screen reader, that helps people with disabilities use a computer.
  • Bounty: the payment a bug bounty programme makes to a researcher who reports a valid security issue.
  • Click: a mouse press and release.
  • Clickjacking: a trick where a page makes you click something you did not intend to click, often by hiding the real target under a decoy.
  • CSS (Cascading Style Sheets): the language that describes how a web page looks, including colours, sizes and positions.
  • CSS property: one named setting in CSS, such as a colour or a position rule.
  • CVE (Common Vulnerabilities and Exposures): a public identifier given to a known security flaw so it can be referred to unambiguously.
  • DOM (Document Object Model): the browser's in-memory tree of the page, holding every element in the order and nesting the HTML describes.
  • Explainer: the document a proposal's authors write to describe what a new web feature does and why it is designed that way.
  • Hardcoded: a value written directly into a page instead of being calculated, so it only works for one particular layout or screen size.
  • Intersection Observer: a browser API that reports on the geometric relationship between elements, such as whether they overlap or come into view.
  • Modal: a window that blocks the rest of the page until the user answers it.
  • Origin trial: a Chrome mechanism that lets websites try an unfinished feature before it ships to everyone.
  • Permission: a capability the browser can hand to a website, such as access to the camera, microphone or location.
  • Permission prompt: the dialog the browser shows to ask whether you agree to a permission request.
  • PEPC: the name of the WICG proposal that defines the Permission Element.
  • Proof of concept (PoC): a small demonstration that shows a bug is real, without needing to be a finished attack.
  • Reflection (CSS): a visual copy of an element drawn elsewhere on the screen while the original stays in its DOM position.
  • Synthetic event: an input event created by a script rather than produced by a real finger or mouse.
  • Tap: the touch-screen equivalent of a click.
  • Tapjacking: clickjacking aimed at touch screens, where the page tricks your finger.
  • Temporal clickjacking: a clickjacking attack that plays out over time, arranging the sequence of events so your click or tap lands on the real target at the moment it matters.
  • WICG: the W3C Community Group that works on proposals for new web platform features.

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.