UI misrepresentation in Messages (CVE-2026-95337)
The Android Messages framework arms its tap-protection window only once when a banner is first shown, and does not re-arm it when the banner's title or description is updated in place. A malicious renderer could swap the displayed content and action target after the safety window has expired, so a user tapping the banner may consent to a different action than the one they saw.
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 Android Messages framework fails to re-arm tap protection when a banner's title or description is updated in-place. This allows a malicious renderer to swap security-sensitive content and action targets in an existing banner after the initial safety window has expired, potentially leading to clickjacking.
Affected files:
components/messages/android/internal/java/src/org/chromium/components/messages/MessageBannerMediator.javacomponents/messages/android/internal/java/src/org/chromium/components/messages/MessageBannerCoordinator.javacomponents/messages/android/internal/java/src/org/chromium/components/messages/MessageBannerView.javacomponents/messages/android/internal/java/src/org/chromium/components/messages/MessageBannerViewBinder.javachrome/browser/android/framebust_intervention/framebust_blocked_delegate_android.cccomponents/blocked_content/android/popup_blocked_message_delegate.cccomponents/messages/android/message_wrapper.cc
Estimated timestamp from git blame: 2025-04-03
Summary
The Android Messages framework (the UI component used for banners like 'Popup blocked' or 'Redirect blocked') implements a tap-protection mechanism to prevent clickjacking. This mechanism ignores touch events for a short period (~775ms) after a banner is displayed. However, this protection appears to be armed only once when the banner is initially shown. If the banner's content (Title or Description) is updated while it is already visible, the tap protection is not re-armed, allowing a potential swap of the action target just as a user is about to tap.
Technical Details
In MessageBannerMediator.java, the IS_WITHIN_TAP_PROTECTION_PERIOD_SUPPLIER is set exactly once in the show() method when the banner reaches Position.FRONT. It captures a startTimestamp which is never updated during the banner's lifetime:
// MessageBannerMediator.java
if (toIndex == Position.FRONT) {
long startTimestamp = TimeUtils.elapsedRealtimeMillis();
// ...
mModel.set(IS_WITHIN_TAP_PROTECTION_PERIOD_SUPPLIER, () -> {
return TimeUtils.elapsedRealtimeMillis() < ENTER_DURATION_MS / 2 + protectionDuration + startTimestamp;
});
}
The FramebustBlockedMessageDelegate in the browser process explicitly supports updating an existing banner's description when a new navigation is blocked:
// framebust_blocked_delegate_android.cc
if (message_ != nullptr) {
blocked_url_ = blocked_url;
message_->SetDescription(url_formatter::FormatUrlForSecurityDisplay(blocked_url, ...));
return false;
}
When SetDescription is called, the PropertyModel updates the MessageBannerView, but the MessageBannerMediator (which manages the tap protection logic) is not notified to refresh the startTimestamp. Consequently, the safety window is not reset for the new content.
Potential Exploitation Scenario
- A malicious site triggers a framebust intervention to a benign URL (e.g.,
https://example.com) to show the banner. - The attacker waits for the initial tap protection period (> 775ms) to expire.
- The attacker triggers a second framebust intervention to a malicious URL.
- The banner's description is updated to the malicious URL in-place. Because tap protection is not re-armed, the banner remains in a state where touch events are accepted immediately.
- If the user taps the 'Always allow' button to permit the original benign redirect, the action is performed against the newly swapped malicious URL without the intended safety delay.
Note: These steps are based on a code analysis; a functional proof-of-concept has not yet been verified.
Impact
This is a Time-of-Check to Time-of-Use (TOCTOU) logic flaw that enables clickjacking. A compromised or malicious renderer can programmatically swap the displayed information and the resulting action target of a banner after the user has already decided to interact with it, leading to unintended user consent for sensitive actions like navigation.
Suggested Fix
The Messages framework should re-arm the tap protection supplier whenever security-sensitive properties (Title, Description, or Primary Button Text) are mutated. This could be achieved by having the MessageBannerMediator observe property changes in the PropertyModel and refresh the startTimestamp when these specific keys are updated.
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.
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 tap-protection timestamp is captured only once in the banner's show() method and is never refreshed when the banner's title or description properties are updated.
Impact
A compromised or malicious renderer could swap the banner's displayed information and action target after the user has decided to interact, leading to unintended consent for navigation; the report notes that a functional proof-of-concept has not yet been verified.
What the attacker needed
Malicious or compromised renderer; victim views and taps the banner; attacker can trigger framebust interventions
The fix
The Messages framework should re-arm the tap protection supplier whenever security-sensitive properties such as Title, Description, or Primary Button Text are mutated, for example by having the mediator observe property changes and refresh the start timestamp.
How it was found
- A malicious site triggers a framebust intervention to a benign URL to show the banner.
- The attacker waits for the initial tap protection period to expire.
- The attacker triggers a second framebust intervention to a malicious URL.
- The banner's description is updated in place without re-arming tap protection.
- If the user taps the allow button, the action is performed against the swapped malicious URL.
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 banner in the browser warns you about something, like a blocked redirect, and ignores taps for a short moment so you cannot be tricked into tapping it instantly. This report says that if the banner's text is changed later while it is still on screen, that short no-tap period is not restarted. An attacker could then change what the banner says and what its button does just before you tap 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.