Information leak in Payments (CVE-2026-106360)
The PaymentRequest API's error messages included cross-origin response data such as redirect Location URLs, HTTP status codes, and network errors. An attacker page could read this data by calling PaymentRequest.show() and inspecting the rejected promise's message.
- Fix shipped in 3 months
Security Bug
VULNERABILITY DETAILS
PaymentManifestDownloader fetches a page-supplied cross-origin URL (the
supportedMethods payment-method identifier) from the browser process
and formats failures into error strings that embed cross-origin response
data:
components/payments/content/payment_manifest_downloader.cc:220-224kPaymentManifestCrossSiteRedirectNotAllowed-- formats{original_url.spec(), redirect_url.spec()}-- the target'sLocationheader URL, including query string.:52-60RespondWithHttpStatusCodeError/GenerateHttpStatusCodeError-- formats{final_url, response_code}-- the target's HTTP status code + reason phrase.:265-270kPaymentManifestDownloadFailedWithNetworkError-- formats{final_url.spec(), net::ErrorToShortString(net_error), error_code}.:292-296--Link:headerrel="payment-method-manifest"URL.
The error string flows via
components/payments/content/payment_request.cc:698-702
client_->OnError(PaymentErrorReason::NOT_SUPPORTED, ... + error_message)
→ renderer PaymentRequest::OnError
(third_party/blink/renderer/modules/payments/payment_request.cc:1740-1745)
→ the .show() promise rejects with a DOMException whose .message
is that string.
So new PaymentRequest([{supportedMethods:'https://victim/...'}], ...).show() .catch(e => e.message) gives an attacker page the victim's cross-site
redirect Location URL, or its HTTP status, or its net-error -- data
that Fetch's opaque-response filtering exists to hide.
VERSION
Chrome Version: 149.0.7827.155
Channel: Stable
Operating System: Linux x86_64, kernel 6.12.13-amd64
REPRODUCTION CASE
Attachments: poc_server.py, cert.pem, key.pem.
Steps:
python3 poc_server.pychrome --user-data-dir=/tmp/pay --ignore-certificate-errors https://127.0.0.1:8443/(--ignore-certificate-errorsis self-signed-localhost plumbing only.)- Click probe. (
PaymentRequest.show()requires a user gesture.) - Observe the page's
<pre>output and thepoc_server.pyterminal.
OBSERVED (bug present):
Attacker page's .show() rejection .message values:
redirect-xsite: 'The payment method "https://localhost:8444/redirect-xsite"
is not supported. Cross-site redirect from
"https://localhost:8444/redirect-xsite" to
"https://third-party.test/leaked-path?token=SECRET-TOKEN-12345"
not allowed for payment manifests.'
status-403: 'The payment method "https://localhost:8444/status-403" is
not supported. Unable to download payment manifest
"https://localhost:8444/status-403". HTTP 403 Forbidden.'
SECRET-TOKEN-12345 (from the victim's Location: header) and
403 Forbidden (the victim's status line) are cross-origin response
data the attacker page reads directly.
ROOT CAUSE
| Site | |
|---|---|
payment_manifest_downloader.cc:220-224 |
kPaymentManifestCrossSiteRedirectNotAllowed embeds redirect_url.spec() |
:52-60 |
GenerateHttpStatusCodeError embeds response_code + reason |
:265-270 |
kPaymentManifestDownloadFailedWithNetworkError embeds net_error |
:292-296 |
Link-header URL embedded |
payment_request.cc:698-702 |
Appends error_message to NOT_SUPPORTED mojo OnError |
blink/.../payment_request.cc:1740-1745 |
Rejects .show() with DOMException(message) |
SUGGESTED FIX
At payment_request.cc:698, do not append the downloader's
error_message to the client-facing OnError string; keep the DevTools
log_->Error() for developer diagnostics. Or: sanitize the downloader's
error strings to omit cross-origin response data (redirect URL, status,
net-error, Link URL) -- leave only the requested supportedMethods URL
(which the page already knows).
CREDIT INFORMATION
Reporter credit: NH DEV
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 payment manifest downloader embedded cross-origin response data (redirect URL, HTTP status, network error, Link header URL) into error strings that were passed to the renderer and exposed in the rejected PaymentRequest.show() promise.
Impact
An attacker page could read cross-origin response data such as redirect URLs with query strings, HTTP status codes, and network errors, which Fetch's opaque-response filtering normally hides.
What the attacker needed
Victim visits attacker page; user gesture to call show()
The fix
The error message from the downloader should not be appended to the client-facing OnError string; alternatively, sanitize the error strings to omit cross-origin response data.
How it was found
- Run the provided Python proof-of-concept server.
- Launch Chrome with a temporary profile and ignore certificate errors, pointing to the local HTTPS page.
- Click the probe button to trigger PaymentRequest.show().
- Observe the page output and the server terminal to see the leaked data in the error message.
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.
When a web page asks the browser to start a payment, the browser fetches a payment method URL. If that fetch fails, the browser shows an error message to the page. This report found that the error message included private details from the other website, like where it redirected to or its HTTP status, which the page should not be able to see.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.