Insufficient validation of untrusted input in Web Authentication (CVE-2026-17681)
On Android, the WebAuthn AuthenticatorFactory does not check whether the calling RenderFrameHost is active, so a Back/Forward cached renderer can bind the Authenticator interface. This lets a compromised renderer show privileged credential dialogs over an unrelated foreground page and forge the topOrigin in signed WebAuthn assertions.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 2 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: On Android, the WebAuthn AuthenticatorFactory does not verify the active lifecycle state of the calling RenderFrameHost, potentially allowing an inactive Back/Forward cached (BFCache'd) renderer to bind the Authenticator interface. This enables a compromised renderer to bypass WebContents visibility checks, overlaying privileged system credential dialogs over unrelated active foreground pages. It also allows forging the 'topOrigin' parameter in cryptographically signed WebAuthn assertions.
Affected files:
components/webauthn/android/java/src/org/chromium/components/webauthn/AuthenticatorFactory.javacontent/browser/renderer_host/render_frame_host_impl.cc
Estimated timestamp from git blame: 2018-03-29
Root Cause
On Android, RenderFrameHostImpl::GetWebAuthenticationService (in content/browser/renderer_host/render_frame_host_impl.cc around line 15041) binds requests for the blink.mojom.Authenticator interface. Unlike desktop platforms where AuthenticatorImpl::Create performs an explicit validation check (if (!render_frame_host->IsActive()) { return; }), the Android branch directly forwards the interface receiver to Java without checking the lifecycle state of the frame:
void RenderFrameHostImpl::GetWebAuthenticationService(
mojo::PendingReceiver<blink::mojom::Authenticator> receiver) {
#if !BUILDFLAG(IS_ANDROID)
AuthenticatorImpl::Create(this, std::move(receiver));
#else
GetJavaInterfaces()->GetInterface(std::move(receiver));
#endif
}
On the Java side, AuthenticatorFactory.createImpl() (in components/webauthn/android/java/src/org/chromium/components/webauthn/AuthenticatorFactory.java around line 34) instantiates the Authenticator implementation. It performs no validation to verify that mRenderFrameHost is in an active lifecycle state, and derives topOrigin from the primary main frame of the live WebContents:
Origin topOrigin = webContents.getMainFrame().getLastCommittedOrigin();
If the calling RenderFrameHost is inactive and cached in the Back/Forward Cache (BFCache), the delegate WebContents primary main frame represents the newly navigated, active foreground page. Consequently, topOrigin is incorrectly resolved to the active page's origin (e.g., https://victim.com) rather than the cached page's origin (https://attacker.com).
Potential Trigger Path
Note: These are suggested and potential steps; our security tooling does not currently have the capability to run or execute code to produce a live proof of concept.
- BFCache Transition: A compromised renderer hosting
https://attacker.cominitiates a navigation tohttps://victim.com. Theattacker.compage enters the Back/Forward Cache, and itsRenderFrameHostlifecycle state transitions tokInBackForwardCachewhile the renderer process remains alive. - Bypassing Freeze: The compromised renderer bypasses process-freezing scheduler constraints and requests the
blink.mojom.Authenticatorinterface via the BFCache'd frame'sBrowserInterfaceBrokerchannel. - Interface Binding: Since BFCache does not apply Mojo capability control binders to this interface, the browser binds the
Authenticatorpipe and instantiates the JavaAuthenticatorImplwithmOriginashttps://attacker.comandmTopOriginset to the currently active main frame's origin (https://victim.com). - Visibility Gate Bypass: The attacker sends WebAuthn requests (such as
GetCredentialorMakeCredential) over the bound pipe. Because the browser tab is in the foreground showingvictim.com, the internal visibility check (mWebContents.getVisibility() != Visibility.VISIBLE) passes, launching privileged system FIDO2 / Credential Manager UI prompts overlaid on top of the activevictim.compage. - Cryptographic Assertion Forgery: The forged
topOrigin(https://victim.com) is serialized into theclientDataJSONand cryptographically signed by the device's authenticator, falsely asserting thatattacker.comwas embedded invictim.comduring the signature generation.
Fix Recommendation
Add an active check before invoking GetJavaInterfaces() in RenderFrameHostImpl::GetWebAuthenticationService inside content/browser/renderer_host/render_frame_host_impl.cc:
void RenderFrameHostImpl::GetWebAuthenticationService(
mojo::PendingReceiver<blink::mojom::Authenticator> receiver) {
if (!IsActive()) {
return;
}
#if !BUILDFLAG(IS_ANDROID)
AuthenticatorImpl::Create(this, std::move(receiver));
#else
GetJavaInterfaces()->GetInterface(std::move(receiver));
#endif
}
Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8
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 Android code path binds the WebAuthn interface without checking that the calling frame is active, unlike the desktop path which checks IsActive().
Impact
A compromised renderer could overlay privileged credential dialogs on an unrelated foreground page and obtain signed assertions that falsely claim the attacker's page was embedded in the victim page.
What the attacker needed
Android device; compromised renderer process; victim page in foreground
The fix
The report recommends adding an IsActive() check before forwarding the interface on Android; it does not state that a fix has been applied.
How it was found
- A compromised renderer on the attacker page navigates to the victim page, putting the attacker page into the Back/Forward Cache.
- The compromised renderer bypasses process freezing and requests the Authenticator interface through the cached frame.
- The browser binds the interface and creates the Java Authenticator with the attacker origin but the active victim page as top origin.
- The attacker sends WebAuthn requests, and the visibility check passes because the victim page is in the foreground.
- The forged top origin is signed into the WebAuthn assertion.
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.
WebAuthn is the browser feature behind security keys and passkeys. A page that is no longer visible can still ask the browser to start a login prompt, and the browser wrongly labels that request as coming from the page the user is currently looking at. An attacker who already controls a page could then trick the user into approving a credential prompt for a different site.
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.