Inappropriate implementation in Messages (CVE-2026-17793)
A logic error in Android Messages' ScopeChangeController lets a navigation-scoped message persist across a cross-origin reload redirect. An attacker could trick a user into granting a persistent popup permission to the attacker's origin while the victim site is displayed.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 2 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 error in the Android Messages ScopeChangeController allows navigation-scoped messages to persist across cross-origin navigations if they are initiated as a reload. This occurs because the reload status is preserved across server-side redirects, preventing the message from being dismissed when the origin changes. An attacker could exploit this to trick users into granting persistent permissions to an attacker origin while viewing a victim site.
Affected files:
components/messages/android/internal/java/src/org/chromium/components/messages/ScopeChangeController.javacomponents/blocked_content/android/popup_blocked_message_delegate.cccomponents/blocked_content/popup_blocker_tab_helper.cc
Estimated timestamp from git blame: 2022-09-27
Description
The ScopeChangeController in Android Messages is responsible for dismissing messages when a navigation occurs. Specifically, ScopeChangeController.NavigationWebContentsScopeObserver.didFinishNavigationInPrimaryMainFrame() handles navigation-dismissal for MessageScopeType.NAVIGATION and MessageScopeType.ORIGIN messages. However, this method contains an early-return if navigationHandle.isReload() is true, which appears to bypass origin-change checks during reloads.
In Chromium, a navigation initiated as a reload (e.g., via location.reload()) maintains its isReload status even if it encounters a server-side 302 redirect to a cross-origin destination. Because ScopeChangeController relies on this flag to skip dismissal, a message banner (like 'Pop-ups blocked') enqueued by an attacker origin can remain visible after the tab has committed a navigation to a victim origin.
This behavior can be exploited via the PopupBlockedMessageDelegate. When a popup is blocked, the delegate enqueues a NAVIGATION scoped message and caches the current origin's URL. If the user clicks 'Always show' after the page has redirected and committed to a victim site, the delegate uses the cached attacker URL to grant a persistent POPUPS=ALLOW content setting via HostContentSettingsMap.
Potential Reproduction Steps
- On Chrome for Android, navigate to an attacker-controlled page (e.g.,
https://attacker.example). - The page attempts to open a popup without a user gesture, triggering the 'Pop-ups blocked' banner.
- The attacker page immediately performs a
location.reload(), which the server redirects tohttps://victim.example/via a 302 response. - The navigation commits to the victim site. Due to the
isReload()check inScopeChangeController.java, the 'Pop-ups blocked' message remains visible. - The user sees
victim.examplein the omnibox and, believing the permission applies to the visible site, taps 'Always show'. - The
PopupBlockedMessageDelegateuses its cached URL to grant the permission toattacker.exampleinstead of the visible victim site.
Impact
This is a potential UI misrepresentation and origin confusion issue. An attacker could trick a user into granting persistent POPUPS=ALLOW permissions to the attacker's origin, allowing future popups without user gestures and potentially bypassing other security interventions like framebust protections.
Suggested Fix
In ScopeChangeController.java, the didFinishNavigationInPrimaryMainFrame method should be modified to ensure that messages are dismissed if the origin has changed, even if navigationHandle.isReload() is true. The isReload() check should likely only permit skipping dismissal if the new navigation's origin matches the origin associated with the current message scope.
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 navigation observer returns early when a navigation is a reload, skipping the origin-change check that would otherwise dismiss the message.
Impact
An attacker could trick a user into granting persistent POPUPS=ALLOW permission to the attacker's origin, allowing future popups without user gestures and potentially bypassing other security interventions.
What the attacker needed
Chrome for Android; victim visits attacker page; attacker controls redirect server; victim taps 'Always show'
The fix
The didFinishNavigationInPrimaryMainFrame method should dismiss messages when the origin has changed, even on reloads, and only skip dismissal if the new origin matches the message's scope.
How it was found
- Open an attacker-controlled page in Chrome for Android.
- The page tries to open a popup without a user gesture, so the 'Pop-ups blocked' banner appears.
- The attacker page calls location.reload(), and the server responds with a 302 redirect to the victim site.
- The navigation commits to the victim site, but the banner remains because of the isReload() check.
- The user sees the victim site in the address bar and taps 'Always show'.
- The delegate uses its cached attacker URL, so the popup permission is granted to the attacker origin.
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 website is blocked from opening pop-ups, Chrome shows a small banner asking whether to allow them. This report found that the banner can stay on screen after the browser has moved to a different website, so tapping 'Always show' gives permission to the wrong site. The user thinks they are allowing the site they can see, but the permission goes to the attacker's site.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.