Inappropriate implementation in Payments (CVE-2026-11148)
In Android release builds, the payment manifest verifier used a cache key derived from a 32-bit Java hash of the payment method URL rather than the URL itself. An attacker could craft a colliding URL so that a poisoned cache entry caused a malicious app to be treated as a valid payment handler for a legitimate payment method.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 53 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: In release builds, PaymentManifestVerifier uses GURL.toString() as a cache key, which falls back to Object.toString() and outputs a string containing the URL's 32-bit Java hash code. An attacker can exploit this easily computable hash collision to poison the payment manifest cache. This potentially allows a malicious Android app to bypass verification and intercept payment data for legitimate, unassociated payment methods.
Affected files:
components/payments/content/android/java/src/org/chromium/components/payments/PaymentManifestVerifier.javaurl/android/java/src/org/chromium/url/GURL.javacomponents/payments/content/android/java/src/org/chromium/components/payments/AndroidPaymentAppFinder.javacomponents/payments/content/web_payments_table.cccomponents/payments/content/android/web_payments_web_data_service_android.cc
Estimated timestamp from git blame: 2017-08-01
The PaymentManifestVerifier in Chrome for Android utilizes a persistent SQLite-backed cache (via WebPaymentsWebDataService) to store validated payment method manifests. This cache prevents Chrome from needing to download and parse manifest files every time a payment request is initiated.
The Vulnerability
There is a flaw in how the cache key is generated for payment method manifests in PaymentManifestVerifier.java. Both when reading from the cache (line 267) and when writing to the cache (line 458), the verifier uses mMethodName.toString() as the cache key, where mMethodName is a GURL object.
In official Android release builds (where BuildConfig.ENABLE_ASSERTS is false), org.chromium.url.GURL.toString() is implemented to return super.toString(). Since GURL does not explicitly extend another class, this resolves to java.lang.Object.toString(), which returns getClass().getName() + "@" + Integer.toHexString(hashCode()).
Because GURL overrides hashCode() to return the 32-bit Java String.hashCode() of the URL spec, the resulting cache key string is org.chromium.url.GURL@ followed by the hex representation of the URL's 32-bit string hash.
Java's String.hashCode() algorithm uses a small multiplier (31) and a 32-bit space, making it highly susceptible to trivial preimage attacks (hash collisions). This means an attacker can easily find an arbitrary URL whose hash matches the hash of a target legitimate payment method URL.
Potential Attack Scenario
(Note: These are suggested steps; our tooling agent cannot execute code to verify this end-to-end.)
- Preconditions: An attacker computes an
attacker_url(e.g.,https://attacker.com/collision) that hash-collides with a target payment method (e.g.,https://bank.com/pay). The attacker induces a user to install two malicious apps: App A (registered forattacker_url) and App B (registered fortarget_urland designed to steal payment data). - Cache Poisoning: The user visits an attacker-controlled HTTPS page that initiates a
PaymentRequestfor theattacker_url. Chrome creates a verifier, downloads the attacker's manifest, and validates App B as a related application. Crucially, the verifier writes this verification result to the SQLite cache usingmMethodName.toString()as the key. Because of the hash collision, this poisoned key is identical to the key that will be used for the target URL. - Exploitation: When the user later visits a legitimate merchant that requests the
target_urlpayment method,PaymentManifestVerifierqueries the cache usingtarget_url.toString(). Due to the collision, it retrieves the attacker's poisoned entry. The verifier then incorrectly validates the attacker's App B against the poisoned manifest cache, authorizing it as a legitimate handler for the target payment method.
Impact
An attacker can successfully bypass the W3C Payment Method Manifest verification mechanism. This allows a malicious application to be presented as a valid payment handler on a legitimate merchant's site, enabling the app to receive the merchant's payment intent, including sensitive cross-origin data such as the topLevelOrigin, paymentRequestOrigin, and the merchant's specific PaymentMethodData.
Suggested Fix
In PaymentManifestVerifier.java, modify all cache interactions to use the actual URL string rather than toString().
Change lines 267 and 458 to use mMethodName.getSpec() instead of mMethodName.toString().
For example, line 267 should be:
if (!mCache.getPaymentMethodManifest(mMethodName.getSpec(), this)) {
And line 457-458 should be:
mCache.addPaymentMethodManifest(mMethodName.getSpec(), ...)
This ensures the exact URL string is used as the unique key in the SQLite database, preventing hash collision attacks.
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 cache key was built with GURL.toString(), which in release builds falls back to Object.toString() and yields only the class name plus the URL's 32-bit hash code, so distinct URLs collide.
Impact
A malicious app could be presented as a valid payment handler on a legitimate merchant's site and receive the merchant's payment intent, including cross-origin data such as the top-level origin and payment request origin; the report notes the scenario was not executed end to end.
What the attacker needed
Chrome for Android release build; victim installs two malicious apps; victim visits attacker page; victim later visits a merchant
The fix
The cache reads and writes should use the actual URL string via getSpec() instead of toString(); the text does not say whether this was applied.
How it was found
- Compute an attacker URL whose hash matches a target legitimate payment method URL.
- Get the victim to install two malicious apps, one registered for the attacker URL and one for the target URL.
- Have the victim visit an attacker page that starts a payment request for the attacker URL, causing the poisoned result to be cached under the colliding key.
- When the victim later visits a legitimate merchant requesting the target payment method, the poisoned cache entry is read and the attacker's app is treated as a valid handler.
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 remembers which apps are allowed to handle a given payment method, storing that in a local database. The lookup key was not the full web address but a short number computed from it, and many different addresses can produce the same number. By finding a lookalike address with the same number, an attacker could make Chrome trust their app for a real bank's payment method.
What is Cache bugs?
A cache and the origin disagree about a request, so a poisoned response is served to everyone or a private page is stored as public.