Skip to content
UI spoofing Advisory Advanced CVE-2026-106302

UI misrepresentation in PermissionElement (CVE-2026-106302)

The Page Embedded Permission Control element does not reset inherited CSS properties such as writing-mode, so a page can make its label render vertically and overflow the element's clamped border box. An attacker could then hide or spoof the real label and place a decoy next to the small click target, potentially misleading a user into triggering a permission prompt.

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 Page Embedded Permission Control (PEPC) fails to restrict inherited CSS properties like 'writing-mode', allowing them to bypass the 'CascadeFilter'. This can cause the element's label to overflow its physically clamped border box without triggering security validation or visibility errors, potentially enabling UI redress attacks.

Affected files:

  • third_party/blink/renderer/core/html/html_capability_element_base.cc
  • third_party/blink/renderer/core/html/resources/capability_element.css
  • third_party/blink/renderer/core/html/html_permission_element_utils.cc
  • third_party/blink/renderer/core/css/resolver/style_cascade.cc
  • third_party/blink/renderer/core/css/resolver/style_resolver.cc

Estimated timestamp from git blame: 2024-03-01

Summary

The Page Embedded Permission Control (PEPC) implementation contains a logic flaw where certain inherited CSS properties—specifically writing-mode, text-orientation, direction, and text-combine-upright—are not properly restricted or reset. An attacker could potentially use these properties to cause the PEPC label text to render vertically and overflow its physically clamped border box. Because the PEPC's security validation and visibility tracking only consider the border box, the overflowed text can be hidden or spoofed, potentially leading to a UI redress (clickjacking) attack.

Root Cause Analysis

The vulnerability stems from how PEPC applies CSS property restrictions:

  1. CascadeFilter Limitation: HTMLCapabilityElementBase::GetCascadeFilter (html_capability_element_base.cc:409) returns a filter that gates declarations during the CSS cascade. However, in Blink's style resolution, inherited properties are copied from the parent before the cascade filter is applied. The filter does not prevent properties from being inherited.

  2. Incomplete Property Reset: While some inherited properties (like -webkit-text-stroke-width) are manually reset in HTMLCapabilityElementBase::AdjustStyle (cc:714), writing-mode, text-orientation, direction, and text-combine-upright are not included in the reset list.

  3. Physical Sizing Clamps: In AdjustStyle, the element's physical max-height is hard-clamped to a multiple of the font size (typically 3x) regardless of the writing mode (cc:772).

  4. Layout Mechanics: When writing-mode: vertical-rl is inherited, the label text flows vertically. Its intrinsic height will far exceed the 48px physical clamp. Since the element has overflow: visible (the default), the text overflows the border box.

  5. Security Invariant Bypass:

    • IsStyleValid() (cc:1409) validates display, color, contrast, and font size but does not validate writing-mode or detect layout overflow.
    • The Intersection Observer V2 used for visibility tracking (cc:335) only monitors the element's border box for occlusion and visibility (intersection_geometry.cc:121). It does not detect that the label (ink overflow) is outside the box or potentially occluded.

Potential Attack Scenario

Note: These are potential steps as our current tooling has not executed this code.

  1. An attacker wraps a PEPC (e.g., <geolocation>) in a container with style="writing-mode: vertical-rl".
  2. The PEPC inherits the vertical writing mode. Its label renders vertically and overflows the ~48px-tall border box.
  3. The attacker occludes the overflowed real label (e.g., by placing it under another element that does not intersect the PEPC's border box, thus avoiding detection by Intersection Observer V2).
  4. The attacker positions a decoy label (e.g., "Click for Prize") next to the small 48px click target.
  5. A user, misled by the decoy label, clicks the target area.
  6. Because the border box itself is visible and not occluded, the PEPC processes the click and triggers a browser-anchored permission prompt.

Suggested Fix

  1. In HTMLCapabilityElementBase::AdjustStyle, explicitly reset writing-mode, text-orientation, direction, and text-combine-upright to their initial values.
  2. In HTMLCapabilityElementBase::IsStyleValid, verify that the writing-mode is horizontal-tb (or the default for the platform) and ensure no unexpected layout overflow is present.

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 the element's CSS cascade filter only gates declarations during the cascade and does not stop inherited properties, and the manual reset list omits writing-mode, text-orientation, direction and text-combine-upright, while validation and visibility checks only look at the border box.

Impact

An attacker could potentially carry out a UI redress attack and get a user to trigger a permission prompt, though the report notes the scenario is potential and was not executed.

What the attacker needed

Victim clicks the element; attacker controls page CSS

The fix

The element should explicitly reset writing-mode, text-orientation, direction and text-combine-upright to their initial values, and validation should confirm a horizontal writing mode and no unexpected overflow.

How it was found

  1. Wrap the permission element in a container that sets a vertical writing mode.
  2. The element inherits the vertical mode, so its label renders vertically and overflows the short border box.
  3. Occlude the overflowed real label without intersecting the element's border box.
  4. Place a decoy label next to the small click target.
  5. The user clicks the target area, believing the decoy label.
  6. The element processes the click and triggers a browser-anchored 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.

Some browser buttons, like the one that asks for your location, are meant to be drawn by the browser itself so a website cannot disguise them. This report says a website can still change how the text inside that button is laid out, making the text spill outside the button. The browser only checks the button's own box, so it may not notice the spilled text, and a trick label could fool someone into clicking.

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.