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.javachrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsClientFileProcessor.javachrome/android/java/src/org/chromium/chrome/browser/customtabs/CustomTabsConnectionServiceImpl.javachrome/android/java/src/org/chromium/chrome/browser/base/SplitCompatCustomTabsService.javabase/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:
SplitCompatCustomTabsService.receiveFiledelegates toCustomTabsConnectionServiceImpl.receiveFile.CustomTabsConnection.receiveFileroutes the request toCustomTabsClientFileProcessor.processFilewithout validating the caller's UID or checking if the caller is a verified Trusted Web Activity (TWA).CustomTabsClientFileProcessor.receiveTwaSplashImageis invoked, which callsFileUtils.queryBitmapFromContentProvider(context, uri).FileUtils.queryBitmapFromContentProvideropens aParcelFileDescriptorfrom the attacker-supplied URI and directly calls the Android framework APIBitmapFactory.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.
- Create a malicious Android application with a
ContentProviderthat serves a malformed image (e.g., a crafted WebP or PNG known to trigger a Skia vulnerability). - Have the malicious app bind to Chrome's
CustomTabsConnectionServiceusing the intent actionandroid.support.customtabs.action.CustomTabsService. - Invoke the
receiveFilemethod on theICustomTabsServicebinder, providing a dummy session token, the URI to the maliciousContentProvider, and settingpurposeto1(FILE_PURPOSE_TRUSTED_WEB_ACTIVITY_SPLASH_IMAGE). - 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
- Sandbox the Decoding: Do not use
BitmapFactory.decodeFileDescriptorin the browser process. Instead, route the image decoding through a sandboxed utility process, such as Chrome'sDecoderService, which is specifically designed to safely parse untrusted image data. - Caller Validation: Implement proper validation in
CustomTabsConnection.receiveFileto 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.
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
- Create a malicious Android app with a ContentProvider that serves a malformed image.
- Bind to Chrome's CustomTabsConnectionService using the intent action.
- Invoke the receiveFile method with a dummy session token, the URI to the malicious ContentProvider, and purpose set to 1.
- 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.