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

Insufficient validation of untrusted input in WebAPKs (CVE-2026-19143)

A helper that builds an intent for a WebAPK sets the package filter but leaves an explicit component from the supplied intent URI in place, so Android resolves the intent to a legitimate WebAPK and its signature check passes while Chrome keeps the attacker's package name. The attacker's app can then have Chrome's unsandboxed browser process decode an attacker-supplied splash image in-process, which could be used to trigger memory corruption in native image codecs.

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 potential vulnerability in Chrome for Android allows a co-installed malicious app to bypass signature validation in WebApkValidator by supplying an intent URI with an explicit component. This bypass permits the attacker's package to launch SameTaskWebApkActivity and trigger custom splash screen retrieval. Consequently, the unsandboxed Browser process decodes an attacker-controlled image in-process via BitmapFactory, violating the Rule of 2.

Affected files:

  • chrome/android/java/src/org/chromium/chrome/browser/browserservices/ui/splashscreen/webapps/WebappSplashController.java
  • components/webapk/android/libs/client/src/org/chromium/components/webapk/lib/client/WebApkValidator.java
  • base/android/java/src/org/chromium/base/FileUtils.java

Estimated timestamp from git blame: 2017-06-30

Detailed Writeup

1. The Package Validation Bypass in WebApkValidator

In components/webapk/android/libs/client/src/org/chromium/components/webapk/lib/client/WebApkValidator.java, the helper method createWebApkIntentForUrlAndOptionalPackage parses a user-provided intent URL and restricts the intent to a specific WebAPK package if specified:

Java
public static @Nullable Intent createWebApkIntentForUrlAndOptionalPackage(
        String url, @Nullable String applicationPackage) {
    Intent intent;
    try {
        intent = Intent.parseUri(url, Intent.URI_INTENT_SCHEME);
    } catch (Exception e) {
        return null;
    }

    intent.addCategory(Intent.CATEGORY_BROWSABLE);
    if (applicationPackage != null) {
        intent.setPackage(applicationPackage);
    } else {
        intent.setComponent(null);
    }
    ...

If the input url contains an explicit component pointing to a legitimate WebAPK (e.g., component=org.chromium.webapk.legit_pwa/...), the applicationPackage != null branch is executed. This sets the package filter to the attacker's package (com.attacker) but fails to clear the explicit component.

When PackageManager.queryIntentActivities is subsequently called to resolve the intent, the Android framework respects the explicit component and ignores the conflicting package filter. Thus, the resolved ResolveInfo corresponds to the legitimate WebAPK, and its signature is verified successfully. However, Chrome downstream accepts the unvalidated com.attacker package name for further execution.

2. In-Process Native Image Decoding (Rule of 2 Violation)

Upon successful validation bypass, WebappLauncherActivity launches SameTaskWebApkActivity using the unvalidated package name.

During startup, WebappSplashController.java attempts to build the splash screen by querying the WebAPK's content provider:

Java
String packageName = mWebappInfo.webApkPackageName();
Bitmap splashBitmap =
        FileUtils.queryBitmapFromContentProvider(
                appContext,
                Uri.parse(WebApkCommonUtils.generateSplashContentProviderUri(packageName)));

In base/android/java/src/org/chromium/base/FileUtils.java, this resolves the content provider URI (content://com.attacker.SplashContentProvider/cached_splash_image) and decodes the resulting file descriptor:

Java
public static @Nullable Bitmap queryBitmapFromContentProvider(Context context, Uri uri) {
    try (ParcelFileDescriptor parcelFileDescriptor =
            context.getContentResolver().openFileDescriptor(uri, "r")) {
        ...
        FileDescriptor fileDescriptor = parcelFileDescriptor.getFileDescriptor();
        Bitmap bitmap = BitmapFactory.decodeFileDescriptor(fileDescriptor);

Because the decoding is performed using BitmapFactory.decodeFileDescriptor directly in the highly privileged Browser process rather than the sandboxed data_decoder process, this constitutes a direct "Rule of 2" violation. An attacker could exploit a platform-level vulnerability within native image codecs (such as libwebp or Skia) to execute arbitrary code with Browser process privileges, escaping the sandbox entirely.


Potential Attack Scenario

  1. A co-installed malicious app (com.attacker) registers a ContentProvider under com.attacker.SplashContentProvider that serves a malformed image payload.
  2. The malicious app fires an intent to the exported WebappLauncherActivity containing:
    • EXTRA_WEBAPK_PACKAGE_NAME = "com.attacker"
    • EXTRA_SPLASH_PROVIDED_BY_WEBAPK = true
    • EXTRA_URL = "intent:#Intent;component=org.chromium.webapk.legit_pwa/org.chromium.webapk.shell_apk.h2o.H2OOpaqueMainActivity;end"
  3. Chrome validates the intent. Due to the explicit component mismatch, the signature validation passes by verifying the legitimate WebAPK (org.chromium.webapk.legit_pwa).
  4. Chrome launches SameTaskWebApkActivity and calls FileUtils.queryBitmapFromContentProvider to query the attacker's custom splash screen content provider.
  5. BitmapFactory.decodeFileDescriptor decodes the malicious image in-process within Chrome's Browser process, potentially triggering memory corruption.

Note: These are potential steps. Our tooling does not currently have the capability to run code or provide a functional proof-of-concept exploit.


Suggested Remediation

Explicitly clear the component in createWebApkIntentForUrlAndOptionalPackage when an applicationPackage restriction is applied:

Java
    intent.addCategory(Intent.CATEGORY_BROWSABLE);
    if (applicationPackage != null) {
        intent.setPackage(applicationPackage);
        intent.setComponent(null); // FIX: Ensure explicit components cannot bypass package limits
    } else {
        intent.setComponent(null);
    }

Evaluated with Chrome root at commit: 5133b93d189b383c37805b1cf3a9d2dbfe8d7379


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.

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 intent builder set the package filter but did not clear the explicit component parsed from the untrusted intent URI, so resolution and signature validation used the legitimate WebAPK while downstream code used the attacker's package name.

Impact

An attacker could exploit a platform-level flaw in native image codecs to run code with browser process privileges and escape the sandbox, though the report notes no working proof of concept was produced.

What the attacker needed

A malicious app installed on the same device; a legitimate WebAPK installed; Chrome for Android

The fix

The intent builder should also clear the explicit component whenever a package restriction is applied.

How it was found

  1. A co-installed malicious app registers a content provider that serves a malformed image.
  2. The malicious app sends an intent to the exported launcher activity with the attacker package name, the splash flag set and an intent URI naming a legitimate WebAPK component.
  3. Chrome validates the intent and the signature check passes against the legitimate WebAPK because of the explicit component.
  4. Chrome launches the same-task WebAPK activity and queries the attacker's splash content provider.
  5. The image is decoded in-process in the browser process, potentially triggering memory corruption.

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.

Android apps can ask other apps to do things by sending them a message called an intent, and an intent can name both a target app and a specific screen inside it. Here the code overwrote the target app name but forgot to remove the specific screen name, so Android followed the screen name and checked the wrong app's signature. Chrome then trusted the attacker's app name and loaded an image from it, and because that image was decoded inside Chrome's main, unsandboxed process, a crafted image could crash or compromise the browser.

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.