Inappropriate implementation in DigitalCredentials (CVE-2026-17812)
The browser-process handlers for the Digital Credentials API did not reject opaque origins, so a sandboxed iframe with delegated permissions policy could start credential requests. The safety prompt then showed a blank requester name and downstream wallets received a 'null' origin, undermining informed consent.
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: The browser-process Mojo handlers for the Digital Credentials API do not check for opaque origins. This potentially allows sandboxed iframes to trigger credential requests where the safety interstitial renders with a blank requester name and downstream wallet providers receive a 'null' origin.
Affected files:
content/browser/digital_credentials/digital_identity_request_impl.cc
Estimated timestamp from git blame: 2024-02-07
Problem Description
DigitalIdentityRequestImpl::Get() and DigitalIdentityRequestImpl::Create() handle the blink::mojom::DigitalIdentityRequest Mojo interfaces sent from renderers to initiate digital credentials requests. While these methods check fenced-frame nesting and Permissions-Policy, they currently lack a check for opaque origins (origin().opaque()).
Because of this missing guard, a sandboxed iframe with sandbox="allow-scripts" and delegated permissions policy (e.g., allow="digital-credentials-get" or allow="digital-credentials-create") can successfully invoke these APIs. Since a sandboxed iframe has an opaque origin, url::Origin::Serialize() returns the literal string "null" and GetURL() returns an empty GURL(). This propagates down to several critical components:
-
Desktop Safety Interstitial UI Spoofing: In
chrome/browser/ui/views/digital_credentials/digital_identity_safety_interstitial_controller_desktop.cc(lines 123-126), the controller formats the origin usingurl_formatter::ElideUrl(rp_origin_.GetURL(), ...). SinceGetURL()on an opaque origin is empty, it produces an empty string. The dialog renders to the user with a blank requester name (e.g.," wants to use info from your digital wallet"), preventing informed consent. -
Android Local Wallet (GMS CredMan): In
chrome/browser/digital_credentials/digital_identity_provider_android.cc(line 102),origin.Serialize()is sent to the Android system'sIdentityCredentialManagervia JNI. The local wallet receives"null"as the browser-asserted requesting origin. -
Cross-Device caBLE JSON Tunnel: In
content/browser/digital_credentials/cross_device_request_dispatcher.cc(line 48),request_info.rp_origin.Serialize()is packaged into the caBLE JSON object as"null", propagating the collapsed origin namespace across devices.
Potential Attack Scenario
(Note: These are potential steps; our analysis has statically mapped the code execution paths, but our tooling does not have runtime execution capabilities.)
-
An attacker hosts a webpage at a secure origin (e.g.,
https://evil.example.com). -
The attacker embeds a sandboxed iframe that delegates permissions:
HTML <iframe sandbox="allow-scripts" allow="digital-credentials-get" srcdoc='<button onclick="navigator.credentials.get({digital:{requests:[{protocol:\"openid4vp-v1-unsigned\",data:{}}]}}).then(c=>parent.postMessage(c.data,\"*\"))">Request Credentials</button>'> </iframe> -
The user interacts with the iframe, providing transient user activation.
-
The script inside the sandboxed iframe invokes
navigator.credentials.get(...). -
The browser process receives the request. The Permissions-Policy check passes since the policy was delegated to the opaque iframe, and the fenced-frame check passes.
-
The browser presents the safety interstitial. Because of the empty formatted origin, a blank prompt is shown to the user.
-
Upon consent, the local wallet or caBLE remote peer receives
"null"as the requesting origin.
Suggested Fix
Implement an explicit check to reject opaque origins in DigitalIdentityRequestImpl::Get() and ::Create() inside content/browser/digital_credentials/digital_identity_request_impl.cc. For example:
if (origin().opaque()) {
ReportBadMessageAndDeleteThis("DigitalIdentityRequest is not allowed from opaque origins.");
return;
}
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
Likely the Mojo request handlers checked fenced-frame nesting and Permissions-Policy but omitted a check that the calling origin is not opaque, so an empty URL and the string 'null' propagated to the UI and wallets.
Impact
A user could be shown a consent prompt with no identifiable requester and approve sharing wallet credentials with an origin recorded only as 'null'; the report notes the analysis is static and no runtime execution was performed.
What the attacker needed
Victim visits attacker page; victim clicks inside the iframe; browser supports Digital Credentials API
The fix
The handlers should explicitly reject opaque origins before processing the request.
How it was found
- Host a page on a secure origin that embeds a sandboxed iframe delegating the digital credentials permission.
- The user interacts with the iframe to give transient user activation.
- Script in the iframe calls the credentials get API for digital credentials.
- The browser process accepts the request because the policy and fenced-frame checks pass.
- The safety interstitial appears with a blank requester name.
- After consent, the wallet or remote peer receives 'null' as the requesting 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.
A sandboxed iframe is a page embedded inside another page with extra restrictions, and it gets a hidden 'opaque' identity instead of a normal website address. The browser's digital wallet prompt is meant to show which website is asking for your credentials, but here that name came out blank and the wallet was told the requester was 'null'. That means a user could approve a credential request without knowing who really asked.
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.