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

Missing authorization in CustomTabs (CVE-2026-79286)

The exported CustomTabsConnectionService allows any installed Android app to trigger image decoding of an attacker-controlled URI directly in the browser process, bypassing the sandboxed DecoderService. An attacker could exploit a memory corruption vulnerability in Skia to achieve arbitrary code execution within the browser process, leading to a full sandbox escape.

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: The exported CustomTabsConnectionService allows any installed Android app to trigger image decoding of an attacker-controlled URI directly in the browser process. This bypasses the sandboxed DecoderService and violates the Rule of 2 by parsing untrusted input using memory-unsafe native code (Skia) in a highly privileged process.

Affected files:

  • chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnection.java
  • chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsClientFileProcessor.java
  • chrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionServiceImpl.java
  • chrome/android/java/src/org/chromium/chrome/browser/base/SplitCompatCustomTabsService.java
  • base/android/java/src/org/chromium/base/FileUtils.java

Estimated timestamp from git blame: 2025-09-08

Description

Chrome for Android exposes the CustomTabsConnectionService, which is exported in the manifest without requiring any permissions to bind. This service exposes the receiveFile AIDL method. Any installed application can connect to this service and invoke receiveFile with an arbitrary URI.

When receiveFile is called with the purpose FILE_PURPOSE_TRUSTED_WEB_ACTIVITY_SPLASH_IMAGE, the following call chain occurs entirely within the highly privileged browser process:

  1. SplitCompatCustomTabsService.receiveFile delegates to CustomTabsConnectionServiceImpl.receiveFile.
  2. CustomTabsConnection.receiveFile routes the request to CustomTabsClientFileProcessor.processFile without validating the caller's UID or checking if the caller is a verified Trusted Web Activity (TWA).
  3. CustomTabsClientFileProcessor.receiveTwaSplashImage is invoked, which calls FileUtils.queryBitmapFromContentProvider(context, uri).
  4. FileUtils.queryBitmapFromContentProvider opens a ParcelFileDescriptor from the attacker-supplied URI and directly calls the Android framework API BitmapFactory.decodeFileDescriptor.

Security Impact

BitmapFactory is a Java facade that relies on the native Android Skia library (written in C++) to parse and decode image formats. Because CustomTabsConnectionService runs in the main browser process, this architecture forces the browser process to parse untrusted, attacker-controlled data using a memory-unsafe language.

This violates Chromium's "Rule of 2" and bypasses Chrome's existing sandboxing mechanisms for image decoding (such as DecoderService, which uses seccomp-bpf to safely process untrusted images).

If an attacker provides a malformed image designed to exploit a memory corruption vulnerability (N-day or 0-day) in the Android Skia library, they could achieve arbitrary code execution within the browser process. This would lead to a full sandbox escape, granting the malicious app access to cookies, saved passwords, and other sensitive user data.

Potential Reproduction Steps

Note: These are suggested steps; we do not currently have a weaponized proof-of-concept.

  1. Create a malicious Android application with a ContentProvider that serves a malformed image (e.g., a crafted WebP or PNG known to trigger a Skia vulnerability).
  2. Have the malicious app bind to Chrome's CustomTabsConnectionService using the intent action android.support.customtabs.action.CustomTabsService.
  3. Invoke the receiveFile method on the ICustomTabsService binder, providing a dummy session token, the URI to the malicious ContentProvider, and setting purpose to 1 (FILE_PURPOSE_TRUSTED_WEB_ACTIVITY_SPLASH_IMAGE).
  4. Chrome's browser process will open the URI and pass the file descriptor to BitmapFactory.decodeFileDescriptor, triggering the vulnerability in the browser process heap.

Suggested Fix

  1. Sandbox the Decoding: Do not use BitmapFactory.decodeFileDescriptor in the browser process. Instead, route the image decoding through a sandboxed utility process, such as Chrome's DecoderService, which is specifically designed to safely parse untrusted image data.
  2. Caller Validation: Implement proper validation in CustomTabsConnection.receiveFile to ensure that the calling UID (Binder.getCallingUid()) matches the UID associated with the session, and verify that the caller is a legitimate TWA before processing the file.

Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0


Results from 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.

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

The exported service does not validate the caller's identity and performs image decoding in the browser process using memory-unsafe native code, bypassing the sandboxed decoder.

Impact

If an attacker provides a malformed image designed to exploit a memory corruption vulnerability in Skia, they could achieve arbitrary code execution within the browser process, leading to a full sandbox escape and access to sensitive user data.

What the attacker needed

Malicious app installed on victim's device; victim uses Chrome for Android

The fix

The decoding should be routed through a sandboxed utility process like DecoderService, and caller validation should be added to ensure the calling UID matches the session and the caller is a legitimate TWA.

How it was found

  1. Create a malicious Android app with a ContentProvider that serves a malformed image.
  2. Bind to Chrome's CustomTabsConnectionService using the intent action.
  3. Invoke the receiveFile method with a dummy session token, the URI to the malicious ContentProvider, and purpose set to 1.
  4. Chrome's browser process opens the URI and passes the file descriptor to BitmapFactory.decodeFileDescriptor, triggering the vulnerability.

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 service that other apps can connect to. This service lets any app ask Chrome to decode an image from a web address the app controls. Because the decoding happens inside Chrome's main process instead of a separate safe process, a malicious image could let the attacker run code inside Chrome and steal your data.

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.