Skip to content
UI spoofing Advisory Intermediate CVE-2026-106311

Clickjacking in PermissionElement (CVE-2026-106311)

The anti-clickjacking size limits on Page Embedded Permission Control elements could be bypassed because CSS container-query and containment properties were allowed on them. An attacker could set an arbitrary intrinsic size, making the permission prompt's clickable area huge and invisible, so a user clicking anywhere would trigger a camera or microphone permission request.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 5 months

Project Fortify, an experimental security project, has identified the following potential security issue. If you're a feature owner CC-ed on this bug, please do your best to review these reports. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: The anti-clickjacking restrictions for Page Embedded Permission Control (PEPC) elements can be subverted using CSS properties that override intrinsic sizing. An attacker can potentially expand the clickable area of a permission request to deceptive dimensions by exploiting incorrectly permitted properties.

Affected files:

  • third_party/blink/renderer/core/css/css_properties.json5
  • third_party/blink/renderer/core/html/html_capability_element_base.cc
  • third_party/blink/renderer/core/html/html_permission_element_utils.cc

Estimated timestamp from git blame: 2024-03-01

Background

The Page Embedded Permission Control (PEPC) system (e.g., <usermedia>, <geolocation>) uses a security model that restricts the element's size to its User-Agent controlled label text. This prevents clickjacking by ensuring the clickable area matches the visible, browser-generated label.

In third_party/blink/renderer/core/html/html_capability_element_base.cc, the AdjustStyle method enforces these bounds by setting the MaxWidth and MinWidth to a multiple of the element's intrinsic size. This is implemented using a calc-size expression: calc-size(fit-content, factor * size), where size represents the resolved value of the fit-content basis.

Vulnerability Details

A vulnerability exists because several CSS properties related to Container Queries and size containment are incorrectly marked as allowed for PEPC elements. In third_party/blink/renderer/core/css/css_properties.json5, the properties container-type and contain-intrinsic-* (width, height, inline-size, block-size) are flagged with valid_for_permission_element: true.

When an attacker applies container-type: size to a PEPC element, it triggers size containment. According to the CSS Containment spec and Blink's implementation in third_party/blink/renderer/core/layout/length_utils.cc (CalculateMinMaxSizesIgnoringChildren), a node under size containment bypasses the measurement of its children and instead uses the value provided by contain-intrinsic-size (via node.OverrideIntrinsicContentInlineSize()).

Because the security bounding logic relies on the intrinsic size (fit-content) as the basis for its calculation, an attacker can provide an arbitrary intrinsic size. The resulting calc-size expression will use the attacker-controlled override as its basis, allowing the clickable area of the PEPC element to be expanded to extreme dimensions (e.g., the width of the entire viewport).

By matching the element's background-color to the page and removing borders, an attacker can create a massive, invisible clickable overlay. A user clicking anywhere in this region would unknowingly trigger a browser-anchored permission prompt for sensitive capabilities like the camera or microphone.

Potential Reproduction Steps

  1. Host a page containing a PEPC element: <usermedia type="camera">.

  2. Apply the following CSS to the element:

    CSS
    permission {
      container-type: size;
      contain-intrinsic-width: 5000px;
      background-color: transparent; /* or matching page bg */
      border: none;
    }
    
  3. Observe that the clickable area of the element expands to match the 5000px basis (multiplied by the internal factor), covering a large portion of the page.

  4. Click in the expanded area to trigger the permission prompt.

Proposed Fix

In third_party/blink/renderer/core/css/css_properties.json5, set valid_for_permission_element: false (or remove the line) for the following properties:

  • container-type
  • container-name
  • contain-intrinsic-width
  • contain-intrinsic-height
  • contain-intrinsic-inline-size
  • contain-intrinsic-block-size
  • contain-intrinsic-size

Only properties essential for the element's basic appearance (colors, fonts, margins) should be permitted.

Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

Data from false positives will be used to improve accuracy over time. And please feel free to reach out to me directly if you have concerns or feedback on the project.

The original report as published on the Chromium issue tracker. 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, CSS properties that enable size containment were marked as allowed for permission elements, so the intrinsic size used to bound the clickable area could be overridden by the page.

Impact

A user could unknowingly trigger a browser-anchored permission prompt for sensitive capabilities such as the camera or microphone by clicking anywhere in a large invisible overlay.

What the attacker needed

Victim visits attacker page; victim clicks in the overlay

The fix

The properties container-type, container-name and the contain-intrinsic-* properties should no longer be marked as valid for permission elements.

How it was found

  1. Host a page containing a camera permission element.
  2. Apply CSS that enables size containment and sets a large intrinsic width, with a transparent background and no border.
  3. Observe that the clickable area expands to the large width.
  4. Click in the expanded area to trigger the permission prompt.

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 button in the browser is meant to be small and clearly labelled, so a page cannot trick you into clicking it. This report found that certain styling rules let a page make that button enormous and invisible, so almost any click would ask for camera or microphone access. The fix is to stop allowing those styling rules on the button.

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