Skip to content
Business logic Advisory Advanced CVE-2026-17738

Insufficient validation of untrusted input in Payments (CVE-2026-17738)

A logic flaw in Secure Payment Confirmation allows a compromised renderer to change the transaction amount after the trusted UI is displayed, so the authenticator signs an attacker-controlled value that the user never approved. This breaks the What You See Is What You Sign guarantee.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A logic flaw in Secure Payment Confirmation (SPC) allows a compromised renderer to change the transaction amount via Mojo IPC after it is displayed to the user. Because the UI does not update but the signing logic reads the live state, the authenticator signs an attacker-controlled value. This breaks the "What You See Is What You Sign" guarantee.

Affected files:

  • components/payments/content/payment_request.cc
  • components/payments/content/secure_payment_confirmation_app.cc
  • components/payments/content/secure_payment_confirmation_controller.cc
  • components/payments/content/payment_request_spec.cc

Estimated timestamp from git blame: 2026-01-09

Summary

Secure Payment Confirmation (SPC) is designed to ensure that a user cryptographically signs a transaction for a specific amount and payee shown in a trusted browser UI. A potential Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the browser's handling of the PaymentRequest::UpdateWith Mojo IPC. A compromised renderer can mutate the transaction details after the trusted UI has been displayed. Because the SPC controller does not observe these changes, but the signing logic later reads the live state from the PaymentRequestSpec, the authenticator signs an attacker-controlled amount that the user never approved.

Root Cause

The vulnerability arises from two unsynchronized reads of mutable state in the PaymentRequestSpec object, combined with a lack of UI observation:

  1. Display Read (Time of Check): In SecurePaymentConfirmationController::SetupModelAndShowDialogIfApplicable, the total amount is read from request_->spec()->GetTotal(app) and stored in the UI model. Critically, the controller is not a PaymentRequestSpec::Observer and does not handle spec updates, so the displayed amount remains static even if the underlying spec changes.
  2. State Mutation: A compromised renderer can trigger a mutation via the PaymentRequest::UpdateWith Mojo IPC handler in components/payments/content/payment_request.cc. This function verifies that the payment request is showing, but it unconditionally updates the PaymentRequestSpec via spec_->UpdateWith(std::move(details)). The transaction total is overwritten, but the UI is never notified.
  3. Sign Read (Time of Use): When the user clicks "Verify", the signing flow invokes SecurePaymentConfirmationApp::OnGetBrowserBoundKey. This function dynamically reads the amount again using spec_->GetTotal(this)->amount.Clone() to pass it to the authenticator for signing.

Since the SPC UI is not updated during step 2, it continues to display the original amount while the signing process uses the new, malicious amount.

Potential Reproduction Steps

Note: These are suggested steps based on code analysis; our tooling cannot currently execute a live PoC.

  1. From a compromised renderer, initiate a PaymentRequest for Secure Payment Confirmation with a legitimate amount (e.g., $5.00).
  2. Wait for the browser to display the SPC dialog showing $5.00.
  3. Send a PaymentRequest::UpdateWith Mojo IPC from the renderer with a modified amount (e.g., $5000.00).
  4. The browser process processes the IPC and updates the PaymentRequestSpec to $5000.00. The UI remains unchanged, still showing $5.00.
  5. The user clicks "Verify", believing they are approving a $5.00 transaction.
  6. The browser process reads the newly updated $5000.00 from PaymentRequestSpec and includes it in the PaymentOptions to be signed by the authenticator.
  7. The user performs biometric authentication, and the authenticator signs the $5000.00 transaction hash.

Suggested Fix

There are a few ways to resolve this:

  1. Snapshotting: Snapshot the exact PaymentOptions (including the amount and payee) at the exact moment the SPC UI is generated (Time of Check), and use that immutable snapshot for the authenticator signing request (Time of Use).
  2. Reject Updates: Modify PaymentRequest::UpdateWith to explicitly reject updates if the currently selected app is an SPC app, as SPC does not fundamentally support dynamic cart updates during the verification prompt.
  3. Observation & Abort: Have SecurePaymentConfirmationController observe PaymentRequestSpec. If the spec is updated while the dialog is showing, either securely refresh the UI or abort the payment flow entirely.

Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33


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.

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

The SPC controller does not observe updates to the PaymentRequestSpec, so the displayed amount remains static while the signing logic later reads the live, mutated state.

Impact

A compromised renderer could cause the authenticator to sign an attacker-controlled amount that the user never approved, breaking the What You See Is What You Sign guarantee.

What the attacker needed

Compromised renderer; user clicks Verify; user performs biometric authentication

The fix

The issue should be fixed by snapshotting the PaymentOptions at the time the SPC UI is generated and using that immutable snapshot for signing, or by rejecting updates when an SPC app is selected, or by having the controller observe the spec and abort or refresh if it changes.

How it was found

  1. From a compromised renderer, initiate a PaymentRequest for Secure Payment Confirmation with a legitimate amount.
  2. Wait for the browser to display the SPC dialog showing the legitimate amount.
  3. Send a PaymentRequest::UpdateWith Mojo IPC from the renderer with a modified amount.
  4. The browser process processes the IPC and updates the PaymentRequestSpec, but the UI remains unchanged.
  5. The user clicks Verify, believing they are approving the original amount.
  6. The browser process reads the updated amount from PaymentRequestSpec and includes it in the PaymentOptions to be signed by the authenticator.

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.

Secure Payment Confirmation is a browser feature that shows you a payment amount and then asks your device to digitally sign it, so you can prove you approved that exact amount. The bug is that the browser reads the amount twice: once to show you, and again later to sign. Between those two reads, a malicious webpage can quietly change the amount, so you approve one number but sign a different one.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.