Skip to content
Open redirect Advisory Advanced CVE-2026-13021

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.cc
  • net/device_bound_sessions/url_fetcher.cc
  • net/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):

  1. It parses the session configuration JSON and resolves the refresh_url using the post-redirect URL (url_fetcher_->request().url()).
  2. The .well-known authorization check bypass logic evaluates fetcher_endpoint_.GetHost() != session->origin().host().
  3. 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-known check 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).

  1. The victim visits the attacker's subdomain: https://attacker.example.com.
  2. 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"
  3. Chrome parses this and verifies that the pre-redirect URL (https://example.com/redirect...) is same-site with the request URL.
  4. RegistrationFetcherImpl is created with fetcher_endpoint_ set to https://example.com/redirect....
  5. The request is initiated and transparently follows the 302 redirect to https://attacker.example.com/dbsc.
  6. 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".
  7. Session::CreateIfValid validates the configuration. It resolves the relative refresh URL against the post-redirect URL, yielding https://attacker.example.com/refresh. It also confirms the scope origin (example.com) is same-site with the post-redirect URL.
  8. The authorization bypass check evaluates fetcher_endpoint_.GetHost() != session->origin().host(). Because fetcher_endpoint_ is example.com and the session origin is example.com, the check evaluates to false, bypassing the .well-known check.
  9. A site-wide DBSC session is installed. Subsequent requests to *.example.com will 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.

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 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

  1. The victim visits the attacker's subdomain.
  2. The attacker serves a DBSC registration header pointing to an open redirect on the apex domain.
  3. Chrome checks that the pre-redirect URL is same-site with the request URL.
  4. The request follows the redirect to the attacker's endpoint, which returns a DBSC configuration with include_site true and a relative refresh URL.
  5. 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.
  6. 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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Open redirect

The lesson behind this report.

A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.