Insufficient validation of untrusted input in Payments (CVE-2026-17791)
The Payment Request code in the browser process did not check which service worker was asking to open a payment handler window, and did not check that the caller's origin matched the active payment flow. A compromised renderer could therefore load its own content into another tab's trusted payment dialog, and could also crash the browser by sending the request before a payment app was selected.
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 compromised renderer process can exploit a lack of caller validation to hijack an active Payment Request dialog in a different tab within the same profile. By invoking the OpenPaymentHandlerWindow Mojo IPC, an attacker can inject an arbitrary same-origin URL into a trusted browser-modal dialog belonging to another origin's payment flow. If no payment app is currently selected in the target dialog, this action also triggers a null pointer dereference, leading to a browser process crash.
Affected files:
components/payments/content/payment_request_display_manager.cccontent/browser/service_worker/service_worker_version.ccchrome/browser/payments/chrome_payment_request_delegate.ccchrome/browser/ui/views/payments/payment_request_dialog_view.ccchrome/browser/ui/views/payments/payment_handler_web_flow_view_controller.cc
Estimated timestamp from git blame: 2018-01-12
Vulnerability Description
A logic flaw in the Payment Request implementation on desktop platforms creates a 'confused deputy' scenario. The PaymentRequestDisplayManager, a profile-scoped singleton responsible for coordinating payment UIs, routes requests to open Payment Handler windows to the currently active payment flow without verifying the identity of the caller.
The vulnerability consists of two primary failures in the browser process:
- Missing Authorization in
ServiceWorkerVersion: The Mojo IPC handlerServiceWorkerVersion::OpenPaymentHandlerWindow(exposed viablink::mojom::ServiceWorkerHost) fails to verify that the calling service worker is authorized to open a window. Specifically, it does not check if the service worker is currently handling an activePaymentRequestEventinitiated by a legitimate merchant flow. - Lack of Origin Validation in
PaymentRequestDisplayManager: The request is passed toPaymentRequestDisplayManager::ShowPaymentHandlerWindow, which immediately dispatches the URL to thecurrent_handle_(the active payment flow for the profile) if one exists. It performs no check to ensure the service worker's origin matches the payment app intended for that handle.
Potential Attack Scenario (Unverified)
- Preparation: An attacker achieves code execution in a renderer process hosting a service worker for
https://attacker.com(e.g., via a separate vulnerability or by hosting a malicious site). - Victim Initiation: A user initiates a legitimate payment on
https://merchant.comin a separate tab. The browser displays a modalPaymentRequestdialog. This dialog is now stored as thecurrent_handle_in the profile'sPaymentRequestDisplayManager. - Exploitation: The compromised renderer invokes
OpenPaymentHandlerWindowfor the attacker's service worker, providing the URLhttps://attacker.com/phish. - Hijacking: The browser process incorrectly routes this request to the merchant's dialog. The dialog transitions to the Payment Handler screen, loading the attacker's content.
- Impact: The attacker controls the content of a trusted browser-modal dialog. If a legitimate payment app (e.g., Google Pay) was already selected, the dialog header may even display the legitimate app's icon (retrieved from the merchant's
PaymentRequestState), while the content area hosts the phishing page.
Potential DoS (Null Pointer Dereference)
If the OpenPaymentHandlerWindow IPC is sent while a PaymentRequest dialog is open but before the user has selected a specific payment app, PaymentHandlerWebFlowViewController::PopulateSheetHeaderView will attempt to dereference state()->selected_app() (which is nullptr), resulting in a deterministic browser process crash.
Affected Locations
content/browser/service_worker/service_worker_version.cc:OpenPaymentHandlerWindowlacks authorization checks.components/payments/content/payment_request_display_manager.cc:ShowPaymentHandlerWindowlacks caller origin validation.chrome/browser/ui/views/payments/payment_handler_web_flow_view_controller.cc:PopulateSheetHeaderViewlacks a null check forselected_app().
Suggested Fix
- In
ServiceWorkerVersion, implement a check to ensure thatOpenPaymentHandlerWindowis only permitted if the version is currently processing a validPaymentRequestEvent(e.g., by checking the count of inflight payment-related requests). - In
PaymentRequestDisplayManager::ShowPaymentHandlerWindow, validate that the origin of the calling service worker matches the origin of the payment app associated with thecurrent_handle_. - Add a null pointer check in
PaymentHandlerWebFlowViewController::PopulateSheetHeaderViewforstate()->selected_app()to prevent the browser crash.
Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a
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.
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 Mojo IPC handler for opening a payment handler window performed no authorisation or origin check before the profile-wide display manager forwarded the URL to whichever payment flow was currently active.
Impact
An attacker could control the content of a trusted browser-modal payment dialog, potentially showing a legitimate payment app's icon above a phishing page, and could deterministically crash the browser process if no payment app was yet selected; the scenario is described as unverified.
What the attacker needed
Compromised renderer or malicious site; victim has an open payment dialog; same browser profile
The fix
The report suggests authorising the IPC against an active payment event, validating the caller's origin against the payment app for the current handle, and adding a null check before using the selected app.
How it was found
- Get code execution in a renderer that hosts a service worker for the attacker's site.
- The victim starts a legitimate payment on another site, so a payment dialog becomes the active flow for the profile.
- The compromised renderer invokes the payment handler window IPC with an attacker-controlled URL.
- The browser routes the request to the merchant's dialog, which loads the attacker's content in a trusted modal.
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.
A payment window is a trusted pop-up the browser shows when you pay on a website. The browser was not checking who asked it to put content inside that window, so a malicious page could slip its own fake page into someone else's payment dialog and try to trick them into entering card details. The same missing check also let a page crash 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.