Incorrect authorization in Input (CVE-2026-106333)
Blink's input-discard guard only checks whether the targeted frame is cross-origin to the outermost main frame, so a victim frame that is same-origin with the top page but nested inside a hostile cross-origin iframe skips the check. A cross-origin intermediate frame could then move the victim frame under the cursor and have clicks delivered to it, enabling clickjacking.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 4 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 clickjacking guard can potentially be bypassed when a same-origin-to-top frame is nested under a cross-origin parent. Because the origin check only compares the target frame to the outermost main frame, the guard is skipped entirely for the same-origin leaf frame. This could allow a cross-origin parent to reposition the victim frame under the cursor without input events being discarded.
Affected files:
third_party/blink/renderer/core/input/event_handling_util.cc
Estimated timestamp from git blame: 2019-07-03
Summary
A potential security issue in Blink's input event handling logic can allow a cross-origin intermediate iframe to bypass the kDiscardInputEventsToRecentlyMovedFrames and IntersectionObserver-V2 input-discard mitigations. This bypass can enable clickjacking or tapjacking attacks against a nested frame that is same-origin with the outermost main frame, even when it is embedded inside a hostile cross-origin frame (topology: A (top, same-origin) -> B (attacker, cross-origin) -> A2 (victim, same-origin)).
Root Cause Analysis
In third_party/blink/renderer/core/input/event_handling_util.cc, the helper function ShouldDiscardEventTargetingFrame verifies whether input events targeting a frame should be discarded due to recent frame movement:
bool should_discard = false;
if (frame.IsCrossOriginToOutermostMainFrame()) {
if (frame.NeedsOcclusionTracking()) {
should_discard =
(event.GetModifiers() & WebInputEvent::kTargetFrameMovedRecentlyForIOv2) ||
!frame.View()->RectInParentIsStableForIOv2(event.TimeStamp());
} else if (base::FeatureList::IsEnabled(
features::kDiscardInputEventsToRecentlyMovedFrames)) {
should_discard =
(event.GetModifiers() & WebInputEvent::kTargetFrameMovedRecently) ||
!frame.View()->RectInParentIsStable(event.TimeStamp());
}
}
The entire check is gated on frame.IsCrossOriginToOutermostMainFrame(). This method is defined in third_party/blink/renderer/core/frame/frame.cc as:
bool Frame::IsCrossOriginToNearestMainFrame() const {
const SecurityOrigin* security_origin =
GetSecurityContext()->GetSecurityOrigin();
return !security_origin->CanAccess(
Tree().Top().GetSecurityContext()->GetSecurityOrigin());
}
bool Frame::IsCrossOriginToOutermostMainFrame() const {
return IsCrossOriginToNearestMainFrame() || IsInFencedFrameTree();
}
If the victim leaf frame A2 is same-origin with the outermost main frame A, then A2.IsCrossOriginToOutermostMainFrame() returns false. As a result, the recently-moved-frame check is skipped entirely.
However, the relevant threat actor is the intermediate ancestor frame B (which is cross-origin to both A and A2). Because B controls the <iframe> element hosting A2, it can reposition A2 to intercept user input. Since the input-discard gate is only evaluated for the deepest hit-test leaf frame (A2), not for the intermediate frames, the input-discard check is never successfully triggered for B and is incorrectly skipped for A2.
Potential Exploitation Path
As our tooling agent does not yet have the ability to run code, these are potential/suggested steps that an attacker could follow to trigger the vulnerability:
- Serve a top-level page
A(e.g.,https://a.example.com) that embeds a cross-origin iframeB(e.g.,https://b.example.com/attacker.html). - The intermediate iframe
BembedsA2(e.g.,https://a.example.com/authorize.html), which hosts a sensitive action button and registers anIntersectionObserverwith{trackVisibility: true}.A2does not restrict framing via CSPframe-ancestorsorX-Frame-Options. - Frame
Binitially hidesA2or positions it off-screen, displays bait UI, and upon receiving a user interaction or cursor movement, instantly relocatesA2's iframe directly under the user's cursor. - When the user clicks, the event is delivered to
A2instead of being suppressed, despite the iframe having been moved within the minimum stability interval.
Suggested Fix
Update the origin gate in ShouldDiscardEventTargetingFrame to check whether the frame is cross-origin to its parent (e.g., using IsCrossOriginToParentOrOuterDocument()), or walk up the ancestor tree to verify if any frame between the target and the outermost main frame is cross-origin to the target.
Evaluated with Chrome root at commit: 5133b93d189b383c37805b1cf3a9d2dbfe8d7379
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
The input-discard gate is evaluated only against the outermost main frame's origin rather than the frame's parent or any intermediate ancestor, so a same-origin leaf under a cross-origin parent is never checked.
Impact
This could allow clickjacking or tapjacking against a nested same-origin frame, though the report is a static analysis finding and the exploitation path was not actually run.
What the attacker needed
Victim page allows framing; attacker controls an intermediate iframe; victim interacts with the page
The fix
The origin gate should check whether the frame is cross-origin to its parent, or walk the ancestor chain to see if any frame between the target and the top is cross-origin to the target.
How it was found
- Serve a top-level page that embeds a cross-origin attacker iframe.
- The attacker iframe embeds a same-origin victim page that has a sensitive button and does not restrict framing.
- The attacker frame hides or offsets the victim frame and shows bait UI.
- On user interaction or cursor movement, the attacker frame moves the victim frame under the cursor.
- The user's click reaches the victim frame instead of being discarded.
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.
Browsers try to ignore clicks on a frame that has just been moved, because moving a button under someone's cursor is a classic trick to make them click the wrong thing. Here the check only looks at whether the clicked frame belongs to a different site than the very top page. If the top page and the clicked frame are the same site, but an attacker's frame sits in between and does the moving, the check is skipped.
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.