UI misrepresentation in Geometry (CVE-2026-87484)
A logic flaw in Blink's occlusion hit-testing causes an element covered by a sibling with a 3D transform to be reported as fully visible. An attacker could use this to trick a user into clicking a hidden permission element, potentially granting a permission without awareness.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 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: A logic flaw in Blink's paint and hit-testing implementation permits a potential bypass of IntersectionObserver v2 (trackVisibility) and the Permission Element (PEPC) anti-clickjacking checks. An attacker can place an occluding sibling element with a 3D transform and preserve-3d in a flat parent container to fully cover the target element, while the renderer erroneously reports the target as fully visible. This allows potential clickjacking attacks that trigger permission grants without user awareness.
Affected files:
third_party/blink/renderer/core/paint/paint_layer.ccthird_party/blink/renderer/core/layout/layout_object.cc
Estimated timestamp from git blame: 2026-05-11
Description
A logic flaw in Blink's paint and hit-testing implementation allows a potential bypass of IntersectionObserver v2 (trackVisibility) and the anti-clickjacking security checks for the Permission Element (PEPC / <permission>). An attacker can craft a visual decoy that completely covers a target PEPC element, yet the renderer erroneously reports the PEPC element as fully visible (isVisible = true). Combined with pointer-events: none on the decoy, user clicks on the decoy are forwarded directly to the hidden PEPC element, potentially allowing deceptive permission grants.
Root Cause Analysis
To protect against 3D-transform-based occlusion bypasses, a guard in LayoutObject::HasDistortingVisualEffects() verifies that the target's transform chain is coplanar with the local frame root using IsCoplanarWith():
// third_party/blink/renderer/core/layout/layout_object.cc
if (!paint_properties.Transform().Unalias().IsCoplanarWith(
root_properties.Transform().Unalias())) {
return true;
}
However, this guard only inspects the transform chain of the target element. It does not inspect the transform properties of potential occluding elements.
During occlusion hit-testing, Blink analyzes candidates. In PaintLayer::IsHitCandidateForDepthOrder(), there is an early-rejection check for elements with 3D transforms:
// third_party/blink/renderer/core/paint/paint_layer.cc
if (occlusion_hit_test && hit_layer->Has3DTransform()) {
child_z_offset = -std::numeric_limits<double>::infinity();
...
for (const auto& pt : pts) {
gfx::Point3F pt3(pt.x(), pt.y(), 0);
pt3 = transform_state->AccumulatedTransform().MapPoint(pt3);
if (pt3.z() > child_z_offset) child_z_offset = pt3.z();
}
if (child_z_offset < 0) {
return false; // Erroneously rejects the occluding layer
}
}
This rejection assumes that if an occluding layer's Z-depth calculation is negative (i.e., child_z_offset < 0), the element must be positioned behind the target (which is assumed to reside at z = 0).
This assumption is invalid unless both elements share the same 3D rendering context. If a sibling occluding element X specifies a negative 3D translate transform (e.g., translateZ(-10px)) and transform-style: preserve-3d but resides inside a flat parent container (such as the default document body), its 3D transform is flattened to the 2D plane during visual paint. Since both elements are positioned, the standard 2D painting order dictates that X (appearing later in the DOM) is rendered directly on top of the target, fully obscuring it.
During HitTestForOcclusion, X is evaluated. Because X has preserve-3d, its transform state retains the un-flattened translateZ(-10px). The 4-corner mapping evaluates child_z_offset = -10 < 0, returning false from IsHitCandidateForDepthOrder. As a result, the occlusion check ignores X entirely, and the visibility check reports the target as fully visible.
Potential Steps to Reproduce
An attacker could serve an HTML page structured as follows:
<geolocation id="T" style="position:absolute; left:0; top:0"></geolocation>
<div id="X" style="position:absolute; left:0; top:0; width:200px; height:40px;
transform: translateZ(-10px); transform-style: preserve-3d;
background:green; pointer-events:none">Click here for a gift</div>
- Visual Presentation: The parent of
TandXis flat. Thus,X's 3D transformtranslateZ(-10px)is flattened. In the visual tree,Xpaints on top ofTdue to later DOM order and fully occludesT. - Visibility Check:
ComputeVisibilityInfo(T)evaluates whetherThas distorting visual effects. SinceThas no 3D ancestors, theIsCoplanarWith()guard evaluates totrueand the function proceeds toHitTestForOcclusion. - Occlusion Hit-testing: The hit-test reverse-iterates through candidate layers. Sibling
Xis processed first. - Early Reject:
IsHitCandidateForDepthOrderevaluatesX's un-flattened transform, resulting inchild_z_offset = -10 < 0and returnsfalse, discardingXas a potential occluding element. - False Positive Visibility: The loop falls back to
T, which is successfully hit. The visibility tracker reportsTas fully visible (isVisible = true). - Deceptive Interaction: Because
Xhaspointer-events: none, any click on the decoyXgoes directly to the underlyingT. The PEPC element accepts the click and triggers/grants the permission prompt without any safety delay.
Note: These are potential steps as our tooling agent currently lacks the ability to run code or compile tests.
Suggested Fix
Update the occlusion hit-testing logic in PaintLayer::IsHitCandidateForDepthOrder to ensure rejections based on negative z-offsets only occur when the occluding element and the target share the same 3D rendering context, or when the transform states have been correctly flattened relative to the nearest common flat ancestor layer.
Evaluated with Chrome root at commit: fb72408a8493c46bc75fae1c70d03daec96b3040
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.
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 occlusion hit-test rejects an occluding layer with a negative Z-offset without checking whether the occluder and target share the same 3D rendering context, so a flattened 3D transform is misinterpreted as being behind the target.
Impact
An attacker could potentially trick a user into granting a permission without realising it, though the report notes the steps are theoretical and were not executed.
What the attacker needed
Victim visits a crafted page; victim clicks the decoy element; browser uses affected Blink version
The fix
The occlusion hit-testing logic should only reject a layer based on a negative Z-offset when the occluder and target share the same 3D rendering context, or when transforms are correctly flattened relative to the nearest common flat ancestor.
How it was found
- Create a flat parent container holding a permission element and a sibling decoy element.
- Give the decoy a negative Z translation, preserve-3d, and pointer-events none so it paints over the permission element.
- Trigger the visibility check on the permission element, which proceeds to occlusion hit-testing.
- The hit-test evaluates the decoy first but rejects it because its un-flattened Z-offset is negative.
- The hit-test falls back to the permission element and reports it as fully visible.
- A click on the decoy passes through to the permission element and grants the permission without a safety delay.
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.
When a web page checks whether an element is visible, it should notice if another element is drawn on top of it. Here, a bug makes the browser ignore a covering element if that element has a certain 3D style, so the hidden element is wrongly treated as visible. An attacker could then place a fake button over a real permission prompt, and a click on the fake button would actually press the hidden permission 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.