Skip to content
CSRF Advisory Advanced CVE-2026-87449

Cross-site request forgery in DeviceBoundSessionCredentials (CVE-2026-87449)

The Device Bound Session Credentials (DBSC) implementation in Chrome constructs session refresh POST requests using a low-level net::URLRequest, omitting standard provenance headers like Origin, Referer, and Sec-Fetch-*. An attacker controlling a subdomain can trigger a credentialed POST request to a sibling subdomain that bypasses fail-open CSRF defences, potentially performing actions with the victim's SameSite=Strict cookies.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 5 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 without the Chrome Security team.

Overview: The Device Bound Session Credentials (DBSC) implementation constructs session refresh POST requests using a low-level net::URLRequest instead of network::URLLoader. This bypasses network service helpers, omitting standard provenance headers like Origin, Referer, and Sec-Fetch-*. When combined with cross-subdomain refresh configurations, this allows an attacker to trigger same-site, credentialed POST requests to sibling subdomains that bypass fail-open CSRF defenses.

Affected files:

  • net/device_bound_sessions/registration_fetcher.cc
  • net/device_bound_sessions/session.cc
  • net/device_bound_sessions/url_fetcher.cc
  • net/device_bound_sessions/session_service_impl.cc

Estimated timestamp from git blame: 2026-03-05

Summary

A vulnerability exists in the Device Bound Session Credentials (DBSC) implementation where session refresh requests omit standard security provenance headers (Origin, Referer, Sec-Fetch-*). Because the refresh logic permits cross-subdomain configurations and reuses the triggering request's same-site context, an attacker on a subdomain can trigger a credentialed POST request to a sibling subdomain. If the target application relies on header-based CSRF protections but fails open when headers are absent, it is vulnerable to Cross-Site Request Forgery (CSRF), even if it uses SameSite=Strict cookies.

Technical Details

  1. Cross-Subdomain Scope Validation: Session::CreateIfValid (net/device_bound_sessions/session.cc) enforces that the refresh_url and scope_origin must share the same SchemefulSite as the registering fetcher URL. This allows a session registered by attacker.example.com to specify a refresh URL on victim.example.com.
  2. Wildcard Initiator Permitted: The validation for allowed_refresh_initiators uses IsValidHostPattern (net/device_bound_sessions/host_patterns.cc), which accepts the wildcard *, allowing any same-site origin to trigger the refresh.
  3. Missing Cookies Trigger Refresh: If an attacker initiates a credentialed request (e.g., via fetch()) to the victim subdomain and the bound cookie is missing from the cookie jar, SessionServiceImpl::ShouldDefer pauses the request and triggers a session refresh.
  4. Context Reuse: When building the refresh request, RegistrationFetcherImpl::ConfigureRequest (net/device_bound_sessions/registration_fetcher.cc) explicitly copies the site_for_cookies and initiator from the deferred request. This ensures the refresh request retains the SAME_SITE_STRICT context of the original request.
  5. Low-Level Network Request: RegistrationFetcherImpl uses a custom URLFetcher that instantiates a raw net::URLRequest directly, bypassing the network::URLLoader layer. Consequently, the request entirely bypasses services/network/sec_header_helpers.cc, omitting Fetch Metadata headers (Sec-Fetch-Site, Sec-Fetch-Mode, etc.). Similarly, because it skips Blink and the Network Service, Origin and Referer headers are never attached.
  6. Credential Attachment: As the request proceeds, URLRequestHttpJob::AddCookieHeaderAndStart attaches cookies based on the inherited SAME_SITE_STRICT context. This includes highly privileged SameSite=Strict and __Host- prefixed cookies belonging to the victim subdomain.

Potential Impact

An attacker controlling a subdomain can forge a credentialed POST request to a sibling subdomain with an arbitrary path and query string. The request will include SameSite=Strict and __Host- cookies but lack Origin, Referer, and Sec-Fetch-* headers. Applications that rely on these headers to validate cross-origin requests, but fail open when they are missing, will incorrectly process the request as a safe, same-origin navigation, resulting in CSRF.

Suggested Reproduction Steps

Please note: These are suggested steps based on source code analysis. Our tooling agent does not currently run executable exploits.

  1. Ensure Chrome is running on an OS where DBSC is enabled (e.g., Windows).
  2. Host an attacker-controlled application on https://attacker.example.com.
  3. The attacker application returns a Sec-Session-Registration header pointing to an endpoint that responds with a DBSC JSON configuration.
  4. The JSON configuration specifies "refresh_url": "https://victim.example.com/transfer?amount=1000" and "allowed_refresh_initiators": ["*"].
  5. Using JavaScript on attacker.example.com, execute fetch('https://victim.example.com/api', {credentials: 'include'}).
  6. Because the bound cookie does not yet exist for victim.example.com, Chrome defers the request and initiates a POST to the refresh_url.
  7. Observe via a proxy that the resulting POST to victim.example.com/transfer includes victim.example.com's SameSite=Strict cookies but completely lacks Origin, Referer, and Sec-Fetch-* headers.

Suggested Fix

Refactor RegistrationFetcherImpl and its associated URLFetcher to utilize the standard network::SimpleURLLoader (or network::URLLoader) instead of constructing a raw net::URLRequest. If utilizing the raw net::URLRequest is architecturally necessary, explicitly invoke network::SetFetchMetadataHeaders and manually append an appropriate Origin header (derived from the initiator) during request configuration in RegistrationFetcherImpl::ConfigureRequest.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


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 DBSC refresh request is built with a raw net::URLRequest that bypasses the network service helpers responsible for adding Origin, Referer, and Sec-Fetch-* headers.

Impact

An attacker controlling a subdomain could forge a credentialed POST request to a sibling subdomain, and applications that rely on missing headers but fail open would process it as safe, resulting in CSRF.

What the attacker needed

Chrome with DBSC enabled; attacker controls a subdomain; victim visits attacker subdomain; target app fails open on missing headers

The fix

The fix should refactor RegistrationFetcherImpl to use network::SimpleURLLoader or network::URLLoader, or manually set Fetch Metadata and Origin headers if the raw net::URLRequest is necessary.

How it was found

  1. Ensure Chrome is running on an OS where DBSC is enabled.
  2. Host an attacker-controlled application on a subdomain.
  3. The attacker application returns a Sec-Session-Registration header pointing to a DBSC JSON configuration.
  4. The JSON configuration specifies a refresh_url on a sibling subdomain and allows any initiator.
  5. Using JavaScript on the attacker subdomain, execute a credentialed fetch to the victim subdomain.
  6. Because the bound cookie does not yet exist, Chrome defers the request and initiates a POST to the refresh_url.

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.

When you visit a website, your browser sometimes sends extra headers that tell the site where the request came from. This report found that a special Chrome feature for keeping sessions alive sends requests without those headers. An attacker who controls one subdomain could trick the browser into sending a request to another subdomain of the same site, and the target site might treat it as safe because the usual warning headers are missing.

What is CSRF?

Another site makes a signed-in user's browser perform an action they did not intend.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site request forgery (CSRF)

The lesson behind this report.

Another site makes a signed-in user's browser perform an action they did not intend.