Skip to content
Race condition Advisory Advanced CVE-2026-78894

Race condition in Payments (CVE-2026-78894)

A time-of-check to time-of-use flaw in the Payment Request API's payment app info fetcher allows a compromised renderer to delay a manifest response and navigate the frame cross-origin, causing a subsequent icon download to run in the context of the new site. This gives a 1-bit oracle that can reveal whether a credentialed request on the victim site succeeded, leaking login state or resource existence.

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. If you're a feature owner CC-ed on this bug, please do your best to review these reports without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A potential Time-Of-Check to Time-Of-Use vulnerability exists in PaymentAppInfoFetcher. A compromised renderer can delay a web app manifest response and navigate the frame, causing a subsequent icon download to execute in the context of the newly committed cross-origin frame. This allows an attacker to leak cross-origin state via a 1-bit oracle.

Affected files:

  • content/browser/payments/payment_app_info_fetcher.cc
  • content/browser/web_contents/web_contents_impl.cc
  • content/browser/manifest/manifest_icon_downloader.cc
  • content/public/browser/manifest_icon_downloader.h

Estimated timestamp from git blame: 2024-07-19

Summary

A potential Time-Of-Check to Time-Of-Use (TOCTOU) vulnerability exists in the PaymentAppInfoFetcher component of the Payment Request API. A compromised renderer can exploit this to trigger a credentialed icon fetch using the context of a cross-origin site (e.g., a site the user has navigated to in the same tab). This results in a 1-bit cross-origin oracle that can leak information like login status or resource existence on the victim site.

Root Cause

The vulnerability resides in PaymentAppInfoFetcher::SelfDeleteFetcher, which handles fetching payment app information, including the manifest and icon.

  1. In SelfDeleteFetcher::Start(), the code verifies that the provided context_url is same-origin with the WebContents's current primary main frame (web_contents_->GetLastCommittedURL()). After this check passes, it stores a WeakPtr to the WebContents and initiates an asynchronous IPC to the renderer to fetch the web app manifest via GetManifest().
  2. When the manifest response eventually arrives, execution resumes in SelfDeleteFetcher::FetchPaymentAppManifestCallback. The code verifies that the WebContents is still alive via the WeakPtr, but it fails to re-verify that the frame's current origin is still the same as the original context_url.
  3. The code then extracts an icon URL from the manifest and initiates a download via ManifestIconDownloader::Download(). Crucially, this function call does not specify an initiator_frame_routing_id.
  4. Inside WebContentsImpl::DownloadImageInFrame(), because the initiator_frame_routing_id is empty, the browser falls back to calling GetPrimaryMainFrame() to resolve the initiator frame.
  5. If the tab has navigated cross-origin between the time the manifest was requested and the response was received, GetPrimaryMainFrame() will return the newly committed, cross-origin frame. Consequently, the DownloadImage Mojo request is sent to the new trusted renderer, executing a first-party, credentialed fetch.

Potential Attack Vector

Note: These are suggested steps; our tooling has not executed this as a live exploit.

  1. An attacker controls a compromised renderer process hosting https://attacker.com/.
  2. The attacker uses the bound payments::mojom::PaymentManager Mojo interface to call Init(), ensuring the browser will attempt to fetch payment app info, followed by SetPaymentInstrument().
  3. The browser validates the origin in PaymentAppInfoFetcher, passes the check, and sends a RequestManifest IPC to the attacker's renderer.
  4. The attacker's compromised renderer intentionally stalls the RequestManifest response and initiates a top-level navigation of the frame to https://victim.com/.
  5. After the browser commits the navigation (updating GetPrimaryMainFrame() to point to victim.com), the old attacker.com frame enters the pending_delete state but remains alive to run unload handlers. During this window, the attacker's renderer finally sends the delayed RequestManifestResponse, containing an icon URL pointing to a private resource on victim.com (e.g., https://victim.com/private_avatar.png).
  6. The browser processes the response. Because it skips re-validating the origin, it attempts to download the icon.
  7. Due to the lack of an initiator_frame_routing_id, the download request falls back to GetPrimaryMainFrame(), routing the DownloadImage request to the trusted victim.com renderer.
  8. The victim.com renderer executes a same-origin fetch for the image, attaching all relevant credentials (including SameSite=Strict cookies).
  9. The success or failure of the image decode operation is returned to the browser. This result dictates whether the original SetPaymentInstrument call succeeds or fails (FETCH_PAYMENT_APP_INFO_FAILED).
  10. The attacker receives this success/failure signal via their original Mojo callback, providing a 1-bit oracle confirming whether the credentialed fetch on victim.com succeeded.

Impact

While an attacker cannot read the image pixels directly, they gain a 1-bit oracle that can detect whether a specific credentialed request on a cross-origin site succeeded. This can be used to infer the user's login state or the existence of private resources on the victim domain.

Suggested Fix

  1. In PaymentAppInfoFetcher::SelfDeleteFetcher::FetchPaymentAppManifestCallback, re-validate that url::IsSameOriginWith(context_url_, web_contents_->GetLastCommittedURL()) before proceeding with the icon download.
  2. In PaymentAppInfoFetcher::SelfDeleteFetcher::Start, capture the GlobalRenderFrameHostId of the validated frame and pass it explicitly to ManifestIconDownloader::Download() rather than relying on the GetPrimaryMainFrame() fallback. This ensures the download request is routed to the correct, originally validated frame, failing safely if that frame is no longer active.

Evaluated with Chrome root at commit: 3acbde3302da0cb19488c22c0eb007c791207b4b


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.

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 code fails to re-validate the frame's origin after an asynchronous manifest fetch and does not pass the original frame's routing ID to the icon downloader, so the download falls back to the current primary main frame.

Impact

An attacker cannot read the image pixels directly but gains a 1-bit oracle that can infer the user's login state or the existence of private resources on the victim domain.

What the attacker needed

Compromised renderer process; victim visits attacker-controlled page; victim has an account on the target site

The fix

The fix should re-validate that the context URL is still same-origin with the current committed URL before downloading the icon, and should capture and pass the original frame's routing ID to the icon downloader instead of relying on the primary main frame fallback.

How it was found

  1. Attacker controls a compromised renderer hosting a site and calls the payment manager interface to start fetching payment app info.
  2. The browser validates the origin and sends a manifest request to the attacker's renderer.
  3. The attacker stalls the manifest response and navigates the frame to the victim site.
  4. After the navigation commits, the attacker sends the delayed manifest response with an icon URL pointing to a private resource on the victim site.
  5. The browser processes the response without re-checking the origin and attempts to download the icon.
  6. Because no initiator frame routing ID is provided, the download is routed to the victim site's renderer, which performs a credentialed fetch; success or failure is returned to the attacker as a 1-bit signal.

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 browser component checks that a request comes from the same website as the current page, but it only checks once at the start. If the page navigates to a different site before the check finishes, the later steps still use the new site's identity. An attacker who controls the first page can then make the browser fetch a private image from the second site and learn from success or failure whether the user is logged in there.

What is Race condition?

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Race conditions

The lesson behind this report.

Parallel requests reach a state the code assumed could not happen: a coupon used twice, a limit overrun, a check skipped.