Skip to content
Access control Advisory Advanced CVE-2026-87472

Improper input validation in FedCM (CVE-2026-87472)

A logic flaw in FedCM lets a compromised renderer set a flag that signals a provider came from the trusted IdP registry, so the browser skips the mandatory well-known file check. An attacker could then show the trusted native FedCM dialog naming an arbitrary victim origin as an identity provider.

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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A logic error in FedCM allows a compromised renderer to bypass mandatory origin authorization checks by spoofing the 'from_idp_registration_api' flag. This permits an attacker to display trusted browser UI impersonating arbitrary domains.

Affected files:

  • content/browser/webid/request_service.cc
  • content/browser/webid/config_fetcher.cc
  • third_party/blink/public/mojom/webid/federated_auth_request.mojom
  • content/browser/webid/accounts_fetcher.cc
  • content/browser/webid/webid_utils.cc

Estimated timestamp from git blame: 2025-01-17

Summary

Federated Credential Management (FedCM) requires that an origin acting as an Identity Provider (IdP) authorize its configuration URLs via a /.well-known/web-identity file. This enforcement is bypassed if the IdP is registered via the browser's IdP registration API. A logic flaw allows a compromised renderer to spoof this "registered" status, causing the browser to skip the mandatory well-known file check.

Vulnerability Details

The blink::mojom::IdentityProviderConfig struct, passed from the renderer to the browser in the FederatedAuthRequest::RequestToken IPC, contains a boolean field from_idp_registration_api. This flag is intended to signal that the configuration was retrieved from the browser's trusted IdP registry.

In content/browser/webid/request_service.cc, the RequestToken method handles the incoming IPC. It contains logic to sanitize the provider list via MaybeAddRegisteredProviders (line 312), but this block is only executed if the kFedCmIdPRegistration feature is enabled (line 309). Since this feature is disabled by default, the browser proceeds with the raw, attacker-controlled IdentityProviderConfig structs provided in the IPC. Unlike the RequestUserInfo method (line 616), RequestToken fails to verify or clear the from_idp_registration_api flag when the feature is disabled.

The from_idp_registration_api flag propagates to ConfigFetcher::FetchRequest::force_skip_well_known_enforcement (line 806). In content/browser/webid/config_fetcher.cc, this flag causes ShouldSkipWellKnownEnforcementForIdp to return true (line 388). As a result:

  1. Network failures when fetching the /.well-known/web-identity file are ignored (line 101).
  2. The mandatory check to ensure the config URL is listed in the well-known file's provider_urls list is skipped (line 305).

Impact

An attacker with control over a renderer process can potentially perform UI spoofing on a primary security surface. By hosting a FedCM configuration file on a victim domain (e.g., via an upload path) and initiating a request with the spoofed flag, the attacker can cause the trusted native FedCM dialog to appear, identifying the victim origin as the IdP. This bypasses the fundamental requirement that the victim origin must opt-in to acting as an IdP.

If the experimental kFedCmLightweightMode is enabled, the browser may even populate the spoofed dialog with the user's real accounts for the victim origin, as the browser trusts the (spoofed) registration status to skip the standard accounts fetch.

Potential Steps to Reproduce

  1. Compromise a renderer process.
  2. Identify a victim origin https://victim.com that does not host a /.well-known/web-identity file.
  3. Host a malicious FedCM config file at https://victim.com/path/to/fedcm.json (e.g., via a file upload).
  4. From the compromised renderer, send a RequestToken Mojo IPC where the IdentityProviderConfig has config_url = "https://victim.com/path/to/fedcm.json" and from_idp_registration_api = true.
  5. Observe that the browser fetches the malicious config, ignores the absence of the well-known file, and displays trusted native UI for victim.com.

Note: These are potential steps based on code analysis; our current environment does not support running proof-of-concept code.

Suggested Fix

The browser process should never trust the from_idp_registration_api flag directly from a renderer. In content/browser/webid/request_service.cc, the RequestToken method should sanitize all input providers. Specifically, if IsIdPRegistrationEnabled() is false, the from_idp_registration_api flag must be forced to false for all providers. If the feature is enabled, the browser must verify that any provider claiming to be from the registration API is actually present in the trusted registry.

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.

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 browser trusted a boolean flag supplied by the renderer instead of clearing or verifying it against its own registry when the registration feature is disabled.

Impact

An attacker who controls a renderer could perform UI spoofing on a trusted browser surface, and with the experimental lightweight mode enabled the dialog may even show the user's real accounts for the victim origin; the report notes no proof of concept was run.

What the attacker needed

Control of a renderer process; victim origin without well-known file; ability to host a file on victim origin

The fix

The browser should force the registration flag to false for all providers when the feature is disabled, and otherwise check that any provider claiming registration is actually in its trusted registry.

How it was found

  1. Compromise a renderer process.
  2. Pick a victim origin that does not host the well-known web-identity file.
  3. Place a FedCM configuration file on the victim origin, for example through an upload path.
  4. Send a RequestToken IPC from the compromised renderer with the provider config pointing at that file and the registration flag set to true.
  5. Observe the browser fetching the config, ignoring the missing well-known file and showing native UI for the victim origin.

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.

FedCM is a browser feature that lets a website act as a login provider, but only after the site proves it opted in by publishing a small file at a fixed address. The browser asks the page's code for a list of providers, and that code can lie about a provider being already approved. Because the browser believed the lie, it showed its own trusted login pop-up for a site that never agreed to be a login provider.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.