Missing authorization in FedCM (CVE-2026-106289)
A FedCM login result was forwarded to a pending embedder login request without checking which identity provider had completed the request. An attacker-controlled popup could therefore make a legitimate pending federated login appear successful, or disrupt it, by completing a login against a different 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 potential validation gap exists in the FedCM embedder callback path where WebContentsImpl::OnFedCmFederatedLogin unconditionally forwards login results to the opener-chain FederatedEmbedderLoginRequest. Because the completed Identity Provider (IdP) origin is discarded before reaching this sink, the browser cannot verify that the completing FedCM request matches the expected IdP. This could potentially allow an attacker-controlled popup to spoof a successful federated login or disrupt legitimate login attempts.
Affected files:
content/browser/web_contents/web_contents_impl.cccontent/browser/webid/request_service.cccontent/public/browser/webid/federated_embedder_login_request.hcontent/browser/webid/federated_embedder_login_request.cc
Estimated timestamp from git blame: 2026-03-04
Root Cause Analysis
WebContentsImpl::OnFedCmFederatedLogin serves as the RenderFrameHostDelegate sink for handling completed FedCM requests via RequestService::CompleteRequest. After notifying observers, it attempts to resolve any pending FederatedEmbedderLoginRequest by walking the window.opener chain of the WebContents via FederatedEmbedderLoginRequest::Get(this) and unconditionally invokes the callback:
void WebContentsImpl::OnFedCmFederatedLogin(
webid::FederatedLoginResult result) {
observers_.NotifyObservers(&WebContentsObserver::OnFedCmFederatedLogin,
result == webid::FederatedLoginResult::kSuccess);
if (IsBeingDestroyed()) {
return;
}
webid::FederatedEmbedderLoginRequest* embedder_login_request =
webid::FederatedEmbedderLoginRequest::Get(this);
if (embedder_login_request) {
embedder_login_request->OnFederatedResultReceived(result);
}
}
However, this function receives only the FederatedLoginResult status enum. The caller, RequestService::CompleteRequest, possesses the selected_idp_config_url but discards it before notifying the delegate:
RecordMetricsAndConsoleError(result, token_status, selected_idp_config_url);
RenderFrameHostImpl::From(&render_frame_host())
->delegate()
->OnFedCmFederatedLogin(
FederatedAuthRequestResultToFederatedLoginResult(result));
Consequently, WebContentsImpl::OnFedCmFederatedLogin lacks the necessary context to verify that the completed FedCM request matches the expected embedder_login_request->idp_origin(). Since Get() walks the window.opener chain, any popup opened from the Actor-Login tab can reach the Actor tab's pending request.
While standard dialog-based flows trigger ShowAccountsDialog which explicitly validates the IDP origin and consumes the request on a mismatch (reporting kAccountNotLoggedIn), the auto-reauthn path bypasses ShowAccountsDialog entirely when exactly one returning account is available, routing instead to ShowVerifyingDialog which does not perform this validation check.
Potential Exploitation Path
(Note: These are potential steps, as our analysis is based on static code review and our tooling has not run code to produce a working proof of concept.)
- On the Actor tab, a legitimate federated login flow is initiated (e.g., to
https://accounts.google.com), setting a pendingFederatedEmbedderLoginRequestforhttps://accounts.google.comon the Actor tab'sWebContents. - An attacker-controlled page on the Actor tab uses
window.open()to launch a popup window. - The popup initiates a FedCM request to an attacker-controlled IDP (e.g.,
https://evil-idp.example). - The auto-reauthn flow triggers on the popup (since auto-reauthn is not blocked for the popup's context), retrieves a token, and calls
CompleteRequestwithresult = kSuccess. CompleteRequestinvokesOnFedCmFederatedLogin(kSuccess)on the popup'sWebContentsImpl.OnFedCmFederatedLoginwalks the opener chain, locates the Actor tab's pending request, and unconditionally invokes its callback withkSuccess—without verifying that the completed IdP was indeedhttps://accounts.google.com.- The embedder (e.g.,
ActorLoginSiwgController) processes the login as successful, potentially callingGrantPermission()to register persistent federated permissions forhttps://accounts.google.comdespite the actual completed login being tohttps://evil-idp.example.
Suggested Fix
Modify WebContentsImpl::OnFedCmFederatedLogin and the RenderFrameHostDelegate::OnFedCmFederatedLogin interface signature to accept both the FederatedLoginResult status enum and the selected IDP origin (const url::Origin& idp_origin).
Within OnFedCmFederatedLogin, verify that the completed IDP origin matches the expected idp_origin() of the retrieved FederatedEmbedderLoginRequest before calling OnFederatedResultReceived:
void WebContentsImpl::OnFedCmFederatedLogin(
webid::FederatedLoginResult result,
const url::Origin& idp_origin) {
...
webid::FederatedEmbedderLoginRequest* embedder_login_request =
webid::FederatedEmbedderLoginRequest::Get(this);
if (embedder_login_request) {
if (embedder_login_request->idp_origin() == idp_origin) {
embedder_login_request->OnFederatedResultReceived(result);
} else {
embedder_login_request->OnFederatedResultReceived(
webid::FederatedLoginResult::kAccountNotLoggedIn);
}
}
}
Evaluated with Chrome root at commit: 5133b93d189b383c37805b1cf3a9d2dbfe8d7379
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
The delegate callback only receives a status enum and the selected identity provider origin is discarded before the call, so the sink cannot compare it with the pending request's expected origin.
Impact
The embedder could register persistent federated permissions for the expected identity provider even though the completed login was to a different one, and legitimate logins could be disrupted; the text notes this is static analysis with no working proof of concept.
What the attacker needed
Victim visits an attacker-controlled page; attacker runs their own identity provider; auto-reauthn returns exactly one account
The fix
The callback interface should also carry the selected identity provider origin and the sink should compare it with the pending request's expected origin before reporting success.
How it was found
- A legitimate federated login is started on the Actor tab, creating a pending request for the expected identity provider.
- An attacker-controlled page on that tab opens a popup window.
- The popup starts a FedCM request to an attacker-controlled identity provider.
- The auto-reauthn path completes the popup request successfully without the origin check.
- The completion walks the opener chain and fires the pending request's callback with success.
- The embedder treats the login as successful for the expected identity provider.
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 you sign in with a service like Google, the browser keeps a note saying 'waiting for Google to confirm'. The code that receives the confirmation never checked that the confirmation actually came from Google rather than some other identity provider. So a page the attacker controls could send a fake-looking confirmation and the browser would treat the sign-in as done.
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.