Skip to content
CSRF Advisory Advanced CVE-2026-87622

Missing authorization in FedCM (CVE-2026-87622)

The FedCM Disconnect entry point in the browser process did not reject callers from opaque origins or fenced frames, unlike sibling entry points. A sandboxed iframe with delegated permissions could therefore trigger a credentialed disconnect request to an identity provider with an Origin header serialised as null, potentially revoking a victim's account linkage.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 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: The FedCM RequestService::Disconnect Mojo entry point lacks critical validation to reject opaque-origin and fenced-frame callers. This potentially allows a sandboxed iframe with delegated permissions or a frame inside a fenced frame to initiate credentialed disconnect requests with an Origin header serialized to 'null'. This bypasses standard origin boundary checks and cross-site request forgery protections at the Identity Provider.

Affected files:

  • content/browser/webid/request_service.cc
  • third_party/blink/renderer/modules/credentialmanagement/identity_credential.cc
  • content/browser/webid/disconnect_request.cc

Estimated timestamp from git blame: 2023-10-26

Potential Security Boundary Bypass in FedCM Disconnect

We have identified a potential security vulnerability in the Federated Credential Management (FedCM) Disconnect API implementation, where the browser process fails to validate and reject opaque-origin and fenced-frame callers. This could allow an untrusted or sandboxed context to issue browser-mediated, credentialed POST requests to an Identity Provider's (IdP) disconnect endpoint with an Origin: null header.

Note: The following analysis and steps are potential/suggested based on static code review; our automated environment does not currently have the capability to run code or execute a live proof-of-concept.


Root Cause Analysis

1. Lack of Browser-Side Validation

In content/browser/webid/request_service.cc at line 2836, RequestService::Disconnect contains no checks to ensure that the calling frame is not an opaque origin and is not nested within a fenced frame. By contrast, sibling entry points like RequestToken (line 291) call ShouldTerminateRequest() which rejects fenced frames:

C++
if (render_frame_host().IsNestedWithinFencedFrame()) {
  ReportBadMessage("FedCM should not be allowed in fenced frame trees.");
  return true;
}

And RequestToken also explicitly rejects opaque origins (line 448):

C++
if (origin().opaque()) {
  CompleteRequestWithError(...);
  return;
}

In the Disconnect flow, these checks are absent. The DisconnectRequest constructor in content/browser/webid/disconnect_request.cc only has a release-stripped DCHECK for the main frame being in the primary main frame:

C++
RenderFrameHost* main_frame = render_frame_host->GetMainFrame();
DCHECK(main_frame->IsInPrimaryMainFrame());
embedding_origin_ = main_frame->GetLastCommittedOrigin();

In production builds, this DCHECK compiles out, allowing fenced frames to proceed.

2. Lack of Renderer-Side Validation

In third_party/blink/renderer/modules/credentialmanagement/identity_credential.cc at line 107, IdentityCredential::disconnect is implemented as a static method and bypasses the standard credential helper checks (such as CheckGenericSecurityRequirementsForCredentialsContainerRequest()), which would normally reject fenced-frame callers.

3. Bypassing Origin Check via Permissions Policy and Third-Party Cookies

A sandboxed iframe declared with sandbox="allow-scripts" allow="identity-credentials-get" is allowed to run the API because the feature is delegated. Since the iframe has an opaque origin, the requester's origin is captured as opaque. In content/browser/webid/disconnect_request.cc at line 102, the browser calls HasSharingPermissionOrIdpHasThirdPartyCookiesAccess. If the embedding origin (https://attacker.example) has third-party cookie access to the IdP, this check returns true (via api_permission_delegate->HasThirdPartyCookiesAccess in webid_utils.cc line 438), completely bypassing the sharing permission check for the requester's opaque origin.

4. Serialization of Origin to "null"

When IdpNetworkRequestManager::SendDisconnectRequest prepares the fetch in content/browser/webid/idp_network_request_manager.cc (line 1317), it creates a credentialed resource request. The NetworkRequestManager::CreateCredentialedResourceRequest in content/browser/webid/network_request_manager.cc (line 313) sets the Origin header to relying_party_origin_.Serialize(). For an opaque origin, this serializes to the literal string "null". This credentialed CORS request is then sent to the IdP carrying the user's cookies.


Potential Exploitation Scenario

  1. A user is logged in to a FedCM-supporting IdP (e.g., https://idp.example) and has active first-party session cookies.

  2. The user visits an attacker-controlled page https://attacker.example.

  3. The attacker page hosts a sandboxed iframe with delegated permissions:

    HTML
    <iframe sandbox="allow-scripts" allow="identity-credentials-get"
            srcdoc='<script>IdentityCredential.disconnect({configURL:"https://idp.example/fedcm/config.json",clientId:"target-rp-client-id",accountHint:"[email protected]"});</script>'></iframe>
    
  4. Both the renderer and browser-side permissions policy checks pass because the feature is delegated.

  5. The browser initiates the FedCM disconnect flow. Since the embedder is https://attacker.example, the third-party cookie check passes, and the browser issues a credentialed POST to the IdP's disconnect endpoint with Origin: null and the victim's session cookies.

  6. If the IdP does not explicitly reject requests containing Origin: null, it will process the request and silently disconnect/revoke the victim's account linkage.


Suggested Fix

Enforce browser-side validation in RequestService::Disconnect in content/browser/webid/request_service.cc to reject both opaque origins and fenced-frame callers:

C++
void RequestService::Disconnect(...) {
  if (render_frame_host().IsNestedWithinFencedFrame()) {
    ReportBadMessage("FedCM disconnect is not allowed in fenced frame trees.");
    return;
  }
  if (origin().opaque()) {
    ReportBadMessage("FedCM disconnect is not allowed from opaque origins.");
    return;
  }
  ...
}

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.

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 Disconnect Mojo handler omitted the opaque-origin and fenced-frame checks that sibling entry points perform, and the only guard was a DCHECK that is stripped in release builds.

Impact

An attacker could cause a logged-in user's account linkage at the identity provider to be silently disconnected, but only if the identity provider does not reject requests carrying a null origin; the analysis is from static review and no live proof of concept was run.

What the attacker needed

Victim logged in to the identity provider; victim visits attacker page; identity provider accepts null origin

The fix

The browser-side Disconnect handler should reject fenced-frame callers and opaque origins, as the report suggests.

How it was found

  1. The victim is logged in to a FedCM-supporting identity provider with active session cookies.
  2. The victim visits an attacker-controlled page.
  3. The page embeds a sandboxed iframe with the identity-credentials-get permission delegated.
  4. The iframe script calls the disconnect API with the identity provider config, client ID and account hint.
  5. The browser sends a credentialed POST to the identity provider's disconnect endpoint with Origin set to null.
  6. If the identity provider does not reject a null origin, the victim's account linkage is silently revoked.

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 websites use an identity provider (such as a large account service) to sign users in. A disconnect call tells the identity provider to unlink an account. The browser normally checks where such calls come from, but here it did not check for a special kind of untrusted frame, so a malicious page could ask the identity provider to unlink the victim's account while the victim is logged in.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.