Clickjacking in Messages (CVE-2026-106400)
The tap-protection mitigation in MessageBannerView only checks touch events, so keyboard or D-pad activation of the banner's buttons bypasses the safety window. An attacker could time a banner prompt with expected keypresses to trigger an action immediately.
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 and tap-protection mitigation in MessageBannerView is only enforced on the touch event dispatch path. If a user interacts with the banner using a physical keyboard or D-pad, key events such as ENTER or SPACE bypass these checks entirely. This potentially allows timed banner prompts to be clicked immediately upon appearing, bypassing the safety window.
Affected files:
components/messages/android/internal/java/src/org/chromium/components/messages/MessageBannerView.java
Estimated timestamp from git blame: 2025-04-03
Summary
MessageBannerView implements a clickjacking/tap-protection mitigation designed to swallow inputs for a short period (~775 ms plus enter animation time) after a banner becomes visible to prevent accidental or clickjacked clicks. However, this protection is exclusively implemented on the touch-event dispatch path (onInterceptTouchEvent and onTouchEvent). When a user interacts with Chrome using a physical keyboard, Chromebook keyboard, or D-pad, key events (such as pressing ENTER or SPACE) bypass these touch handlers and trigger button actions instantly, bypassing the safety window.
Potential Root Cause
In components/messages/android/internal/java/src/org/chromium/components/messages/MessageBannerView.java, the tap-protection period check is only performed in touch event intercept and touch event handlers:
@Override
public boolean onInterceptTouchEvent(MotionEvent ev) {
return isWithinTapProtectionPeriod() || super.onInterceptTouchEvent(ev);
}
@SuppressLint("ClickableViewAccessibility")
@Override
public boolean onTouchEvent(MotionEvent event) {
if (isWithinTapProtectionPeriod()) return true;
...
}
When a hardware key event (such as KeyEvent.KEYCODE_ENTER or KeyEvent.KEYCODE_SPACE) is dispatched to a focused button like the primary action button, Android's view framework processes the key event and triggers performClick() directly on the button without invoking onInterceptTouchEvent or onTouchEvent on the parent layout.
At the same time, the click listener registered on the primary button does not check if the banner is currently within the tap-protection window:
void setPrimaryButtonClickListener(OnClickListener listener) {
mPrimaryButton.setOnClickListener(
(view) -> {
// Ignore click events if a progress bar is showing.
if (mPrimaryWidgetAppearance == PrimaryWidgetAppearance.BUTTON_IF_TEXT_IS_SET
&& !TextUtils.isEmpty(mPrimaryButtonText)) {
listener.onClick(view); // <-- Does not check isWithinTapProtectionPeriod()
}
});
}
Thus, any key-driven activation is executed instantly, completely ignoring the mIsWithinTapProtectionPeriodSupplier timer.
Potential Attack Vector
- An attacker-controlled page prompts a user for repetitive key inputs (e.g., a simple keypress game or a form requiring multiple rapid
ENTERorSPACEkeypresses). - Timed with the user's expected keypress, the attacker triggers a feature that presents a Messages-backed prompt (such as a Framebust Blocked permission or Popup Blocked action).
- When the
MessageBannerViewis shown, focus transitions or default focus lands onmessage_primary_button(which is focusable and allows descendant focus). - The next
ENTERorSPACEkey event is dispatched to the focused button, immediately executing the action inside the protected window.
Note: These are potential steps deduced from a source-code review; our analysis was performed via static analysis without running functional exploit code.
Suggested Fix
To secure MessageBannerView against this bypass, follow the secure patterns implemented in other components (such as ModalDialogView):
- Modify
MessageBannerView's click listeners (both for primary and secondary actions) to explicitly verify!isWithinTapProtectionPeriod()before executing the underlying callbacks. - Override
dispatchKeyEventinMessageBannerViewto block keyboard key events during the active tap-protection window (except system-critical keys), ensuring that key actions cannot trigger button clicks while tap-protection is active.
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
The tap-protection check is only applied in touch event handlers, not in key event handling or the button click listener.
Impact
An attacker could bypass the tap-protection window and cause a user to activate a banner action unintentionally, though the report notes this is a potential issue from static analysis without a functional exploit.
What the attacker needed
Attacker-controlled page; user presses keys repeatedly; banner appears with focus on button
The fix
The click listeners should check the tap-protection period, and dispatchKeyEvent should block key events during that window.
How it was found
- An attacker-controlled page prompts a user for repetitive key inputs.
- Timed with the user's expected keypress, the attacker triggers a feature that presents a Messages-backed prompt.
- When the MessageBannerView is shown, focus lands on the primary button.
- The next ENTER or SPACE key event is dispatched to the focused button, immediately executing the action.
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.
Clickjacking tricks a user into clicking something they did not intend to click. Here, a banner that is supposed to ignore clicks for a short time after appearing only ignores touchscreen taps, not keyboard presses, so a user pressing Enter or Space could accidentally activate it.
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.