Skip to content
Access control Advisory Advanced CVE-2026-79222

Incorrect authorization in CustomTabs (CVE-2026-79222)

A discrepancy in how Chrome for Android extracts the navigation URL versus how it verifies a first-party origin allows an attacker to send non-safelisted headers to arbitrary cross-origin sites in a Custom Tab. An attacker could bypass security checks and facilitate CSRF or session-based attacks.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 5 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A discrepancy in how Chrome extracts a navigation URL versus how it verifies a first-party origin allows an attacker to send non-safelisted headers to arbitrary cross-origin sites in a Custom Tab. By placing their verified origin in intent.getData() and the target URL in EXTRA_TEXT, an attacker can bypass security checks and facilitate CSRF or session-based attacks.

Affected files:

  • chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java
  • chrome/android/java/src/org/chromium/chrome/browser/IntentHandler.java
  • chrome/android/java/src/org/chromium/chrome/browser/customtabs/content/CustomTabActivityNavigationController.java
  • chrome/android/java/src/org/chromium/chrome/browser/LaunchIntentDispatcher.java

Estimated timestamp from git blame: 2024-12-23

Overview

A potential security vulnerability exists in Chrome for Android where the Digital Asset Links (DAL) verification for Custom Tabs can be bypassed. This check is intended to restrict 'non-safelisted' HTTP headers (such as Authorization or X-Csrf-Token) so they can only be sent to an app's own verified domain. Due to a discrepancy in how the navigation URL is extracted versus how the DAL origin is determined, an attacker-controlled app can attach arbitrary sensitive headers to top-level cross-origin navigations.

Vulnerability Details

The CustomTabsConnection.isFirstPartyOriginForIntent() method determines if an app is a 'first-party' for a given intent's origin using DAL verification. It derives the origin strictly from intent.getData():

Java
Origin origin = Origin.create(intent.getData());

However, the actual navigation URL is resolved via IntentHandler.getUrlFromIntent(), which delegates to extractUrlFromIntent(). For certain intents, like ACTION_SEND with type text/plain, Chrome prioritizes fields like Intent.EXTRA_TEXT over intent.getData() for the navigation destination.

During early navigation processing (HiddenTabHolder.startEarlynavigation), Chrome uses the original intent to both extract the navigation URL and attach headers. Because the DAL check only looks at intent.getData(), an attacker can point intent.getData() to their own verified origin while pointing EXTRA_TEXT to the victim's URL. The check passes, the CORS safelist filter is skipped, and the malicious headers are attached to the hidden tab's request to the victim URL.

Subsequently, LaunchIntentDispatcher creates a sanitized launchIntent with its .setData() overwritten to the victim URL to start CustomTabActivity. In CustomTabActivityTabController.finishNativeInitialization, Chrome attempts to cancel any speculation if extra headers are present by calling IntentHandler.getExtraHeadersFromIntent(launchIntent). Because launchIntent.getData() is now the victim URL, the DAL check fails and the function returns null. This causes the cancellation check to fail, and the hidden tab successfully commits the cross-origin navigation with the injected headers.

Note: These are potential steps, as this analysis was performed by an AI agent (Fortify) without executing code to verify a working proof of concept.

Suggested Attacker Steps

  1. Setup: The attacker creates an Android app and completes DAL verification for an origin they control (e.g., https://attacker.example).
  2. Session: The attacker app calls CustomTabsClient.warmup() and CustomTabsClient.newSession(), verifying their relationship to https://attacker.example to ensure the DAL relationship is cached.
  3. Intent Crafting: The app crafts an Intent.ACTION_SEND intent with MIME type text/plain.
  4. Target and Origin: The app sets the intent's data URI to their verified origin: intent.setData(Uri.parse("https://attacker.example")). It sets the actual target victim URL in the extra text: intent.putExtra(Intent.EXTRA_TEXT, "https://victim.example/sensitive-action").
  5. Malicious Headers: The app bundles non-safelisted headers into the intent using the Browser.EXTRA_HEADERS bundle (e.g., Authorization: Bearer attacker_token).
  6. Dispatch: The app launches the intent. Chrome's early navigation mechanism processes the original intent, validates intent.getData(), and launches a hidden tab to https://victim.example with the injected headers.

Suggested Fix

Modify CustomTabsConnection.isFirstPartyOriginForIntent(Intent intent) (and any similar checks) to derive the origin from the actual resolved navigation URL rather than strictly intent.getData(). Specifically, use IntentHandler.getUrlFromIntent(intent) to determine the origin being navigated to, ensuring the DAL check is performed against the true destination of the Custom Tab.

Evaluated with Chrome root at commit: bb48272cafb7e24c93f55ef40da398cd206ee651


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. Please feel free to reach out to me if you have concerns or feedback.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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 origin check for first-party status uses intent.getData() while the actual navigation URL is resolved from other intent fields such as EXTRA_TEXT, so the check validates a different URL than the one navigated to.

Impact

An attacker could send non-safelisted headers to arbitrary cross-origin sites, potentially facilitating CSRF or session-based attacks.

What the attacker needed

Attacker creates an Android app; DAL verification for attacker origin; victim has Chrome for Android

The fix

The origin check should be modified to derive the origin from the actual resolved navigation URL rather than strictly intent.getData().

How it was found

  1. The attacker creates an Android app and completes DAL verification for an origin they control.
  2. The attacker app calls CustomTabsClient.warmup() and newSession() to cache the DAL relationship.
  3. The app crafts an Intent.ACTION_SEND intent with MIME type text/plain.
  4. The app sets the intent's data URI to their verified origin and puts the victim URL in EXTRA_TEXT.
  5. The app bundles non-safelisted headers into the intent using the Browser.EXTRA_HEADERS bundle.
  6. The app launches the intent, and Chrome's early navigation processes the original intent, validates intent.getData(), and launches a hidden tab to the victim URL with the injected headers.

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 for Android has a feature called Custom Tabs that lets apps open web pages with extra headers, but only for domains the app has proven it owns. This report says an attacker can trick Chrome into thinking it is sending headers to its own domain while actually sending them to a victim site. That could let the attacker perform actions on the victim site as if they were the user.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.