Inappropriate implementation in CustomTabs (CVE-2026-11278)
The privacy guard that pauses scroll telemetry for text-fragment navigations in Chrome Custom Tabs is evaluated too early, so redirects or non-committing navigations can bypass it. A malicious embedder could then use scroll position as an oracle to detect the presence and approximate location of chosen text on cross-origin pages.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 52 days
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 without the Chrome Security team.
Overview: The mSignalsPaused privacy guard in Custom Tabs is designed to disable scroll telemetry when a page is loaded via a text fragment, preventing cross-origin data exfiltration. However, the guard is evaluated too early in the navigation lifecycle and fails to handle redirects or non-committing navigations. This potentially allows a malicious embedder to bypass the guard and use scroll offsets as an oracle to detect the presence of text on cross-origin pages.
Affected files:
chrome/android/java/src/org/chromium/chrome/browser/customtabs/content/RealtimeEngagementSignalObserver.javachrome/android/java/src/org/chromium/chrome/browser/customtabs/content/EngagementSignalsHandler.java
Estimated timestamp from git blame: 2025-09-10
Summary
RealtimeEngagementSignalObserver in Chrome for Android's Custom Tabs (CCT) implements a privacy guard called mSignalsPaused. This flag pauses scroll-percentage telemetry to the CCT embedder when a page is loaded via a Scroll-To-Text fragment (#:~:text=). This mitigates privacy concerns where a malicious embedder could learn if a specific piece of text exists on a cross-origin page by observing the scroll position after an auto-scroll to the text fragment.
However, the current implementation evaluates the URL too early in the navigation lifecycle, allowing the guard to be bypassed. This potentially provides a side-channel oracle for the presence and approximate vertical position of attacker-chosen strings on authenticated cross-origin pages.
Vulnerability Details
The guard is implemented by checking for text fragments during navigation start:
@Override
public void didStartNavigationInPrimaryMainFrame(NavigationHandle navigationHandle) {
mSignalsPaused = LinkToTextHelper.hasTextFragment(navigationHandle.getUrl());
}
This implementation has several logic flaws that allow the guard to be bypassed:
- Server-side Redirects:
didStartNavigationInPrimaryMainFrameevaluates the initial URL. If the embedder launches a CCT to a URL that redirects to a URL containing a text fragment,mSignalsPausedremainsfalsebecause it was evaluated against the pre-redirect URL. The anonymousWebContentsObserverinRealtimeEngagementSignalObserverdoes not overridedidRedirectNavigationto re-evaluate the URL. - Non-committing Navigations: An embedder can trigger a second navigation on the same session to a URL that returns an HTTP 204 or
Content-Disposition: attachment. This triggersdidStartNavigationInPrimaryMainFrame, resettingmSignalsPausedtofalse(assuming the second URL has no fragment). Since the navigation never commits, the user remains on the original page with the text-fragment match active, but scroll telemetry is resumed. - Late Callback Registration: The observer is created lazily in
EngagementSignalsHandlerwhen the embedder callssetEngagementSignalsCallback. If this call is deferred until after the text-fragment navigation has started, the observer is initialized withmSignalsPauseddefaulting tofalse, and it does not verify the current tab's URL upon creation.
Once the guard is cleared, observing the reported scroll percentage (rounded to 5% granularity) allows a malicious embedder to infer if a match occurred and its approximate vertical position.
Potential Reproduction Steps
Note: These steps are suggested based on code analysis; a working proof-of-concept has not been executed.
- A malicious app creates a
CustomTabsSessionand registers anEngagementSignalsCallback. - The app launches a Custom Tab to an attacker-controlled redirector URL (e.g.,
https://attacker.example/redirector). didStartNavigationInPrimaryMainFrameevaluates the initial URL (no fragment) and setsmSignalsPaused = false.- The redirector responds with
HTTP 302tohttps://victim.example/page#:~:text=SECRET_TOKEN. - Because
didRedirectNavigationis not overridden,mSignalsPausedremainsfalse. - Chrome navigates to the victim page and Blink auto-scrolls to the text match.
- The user performs a small manual scroll (required to trigger a telemetry update).
- The app's
EngagementSignalsCallback.onGreatestScrollPercentageIncreasedfires with a percentage reflecting the match position, bypassing the intended privacy guard.
Suggested Fix
Do not rely on didStartNavigationInPrimaryMainFrame to evaluate the privacy guard. Instead, evaluate the presence of text fragments when the navigation actually commits to the frame.
Move the evaluation to navigationEntryCommitted or didFinishNavigationInPrimaryMainFrame (checking navigationHandle.hasCommitted()), ensuring that the final, committed URL is checked, including any fragments added via redirects or client-side modifications. Additionally, when the RealtimeEngagementSignalObserver is lazily instantiated, it should immediately evaluate the WebContents's current visible URL to initialize mSignalsPaused correctly.
Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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 guard is set only at navigation start and is not re-evaluated on redirects, non-committing navigations, or late observer creation, so the final committed URL is never checked.
Impact
A malicious embedder could infer whether attacker-chosen text exists on an authenticated cross-origin page and its approximate vertical position, though a manual scroll is required to trigger telemetry and the report notes no working proof-of-concept was executed.
What the attacker needed
Malicious Android app; user opens a Custom Tab; victim page is cross-origin and authenticated; user performs a small manual scroll
The fix
The guard should be evaluated when the navigation actually commits, checking the final URL, and the observer should initialise the guard from the current visible URL when created.
How it was found
- A malicious app creates a CustomTabsSession and registers an EngagementSignalsCallback.
- The app launches a Custom Tab to an attacker-controlled redirector URL.
- The initial URL has no text fragment, so the guard is set to false.
- The redirector responds with a redirect to a victim URL containing a text fragment.
- Because redirects are not re-evaluated, the guard remains false.
- Chrome navigates to the victim page and auto-scrolls to the text match; after a small manual scroll, the app receives a scroll percentage that reveals the match position.
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.
Chrome Custom Tabs let apps show web pages inside themselves and receive signals about how the user scrolls. A privacy feature tries to stop apps from learning whether a page contains a specific piece of text by watching where the page scrolls to. The report says that feature can be tricked because it checks the address too early, before redirects happen.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.