Incorrect authorization in Network (CVE-2026-79186)
A compromised renderer could forge the site_for_cookies field on a cross-origin subresource request so the Network Service treats it as first-party. If the target endpoint returns a Clear-Site-Data header for cookies, the browser would then delete the victim site's unpartitioned first-party cookies, including HttpOnly session 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.
Overview: A compromised renderer can forge the site_for_cookies field in a cross-origin subresource request to bypass third-party cookie restrictions. This allows an attacker to trigger the Clear-Site-Data: "cookies" mechanism and delete unpartitioned, first-party cookies (including HttpOnly session cookies) of any target site.
Affected files:
services/network/network_service_network_delegate.cccomponents/content_settings/core/common/cookie_settings_base.ccservices/network/cors/cors_url_loader_factory.cccontent/browser/storage_partition_impl.cccontent/browser/browsing_data/clear_site_data_utils.ccnet/cookies/cookie_deletion_info.cc
Estimated timestamp from git blame: 2024-10-24
Summary
A potential vulnerability exists in how the Network Service handles the Clear-Site-Data HTTP response header. A compromised renderer can forge the site_for_cookies attribute in a subresource request originating from a cross-origin iframe. This forged value bypasses validation in CorsURLLoaderFactory for iframe subresources. When the target server responds with Clear-Site-Data: "cookies", the Network Service incorrectly relies on this forged site_for_cookies value to determine if the request is first-party. Consequently, the browser deletes all unpartitioned (first-party) cookies for the target site, bypassing Site Isolation guarantees that should restrict cross-site cookie clearing to partitioned state only.
(Note: These are potential steps, as our tooling agent doesn't yet have the ability to run a live proof-of-concept.)
Potential Reproduction Steps
- Enable third-party cookie blocking in Chrome.
- A user visits
https://victim.com, which embeds a cross-origin iframe pointing tohttps://attacker.com. - The attacker compromises the renderer process hosting the
attacker.comiframe. - The compromised
attacker.comrenderer initiates afetchrequest to an endpoint on the victim's domain (e.g.,https://victim.com/logout) that is known to return theClear-Site-Data: "cookies"HTTP response header. The attacker setscredentials_mode=kInclude. - Over the
URLLoaderFactoryMojo IPC, the attacker forges thesite_for_cookiesproperty of thenetwork::ResourceRequestto match the target site (https://victim.com). - The Network Service receives the request at
CorsURLLoaderFactory::CreateLoaderAndStart. - Inside
CorsURLLoaderFactory::IsValidRequest(services/network/cors/cors_url_loader_factory.cc), the validation ofsite_for_cookiesis skipped becauserequire_cross_site_request_for_cookies_is configured asfalsefor iframe subresource factories (content/browser/url_loader_factory_params_helper.cc). - The network request is executed with the forged
site_for_cookies. (Note: Due to SameSite protections evaluating therequest_initiator,SameSite=Lax/Strictcookies will likely not be sent. This attack relies on the endpoint unconditionally returningClear-Site-Dataor relying onSameSite=Nonecookies). - The server responds with
Clear-Site-Data: "cookies". NetworkServiceNetworkDelegate::HandleClearSiteDataHeader(services/network/network_service_network_delegate.cc) processes the header and callsCookieSettings::IsPrivacyModeEnabledto determine if only partitioned cookies should be cleared.IsPrivacyModeEnableddelegates toCookieSettingsBase::GetCookieSettingInternal, which callsIsThirdPartyRequest(request->url(), request->site_for_cookies()).- Because both values are forged to
victim.com,IsThirdPartyRequestincorrectly evaluates tofalse(first-party request). IsPrivacyModeEnabledreturnskStateAllowed, resulting inpartitioned_state_allowed_only = false.- The Network Service sends an
OnClearSiteDataIPC to the Browser process (StoragePartitionImpl), passingpartitioned_state_allowed_only = false. - The Browser process executes
SiteDataClearer, settingcookie_filter_builder->SetPartitionedCookiesOnly(false). - The
BrowsingDataRemoverdeletes all unpartitioned, first-party cookies forvictim.com, successfully executing a cross-site logout and bypassing Site Isolation protections.
Suggested Fix
The Network Service should not trust the site_for_cookies value provided by the renderer process for security-sensitive decisions like processing Clear-Site-Data.
Instead of relying on request->site_for_cookies(), NetworkServiceNetworkDelegate::HandleClearSiteDataHeader should use request->isolation_info().site_for_cookies(). The IsolationInfo is securely populated by the browser process and cannot be forged by a compromised renderer.
Alternatively, validation in CorsURLLoaderFactory::IsValidRequest could be hardened to verify that if site_for_cookies is present and matches the target URL, it must also be consistent with the securely verified request_initiator_origin_lock_ or the factory's IsolationInfo.
Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0
Results from 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 Network Service trusted the renderer-supplied site_for_cookies value instead of the browser-populated IsolationInfo when deciding whether a Clear-Site-Data response should clear only partitioned cookies.
Impact
An attacker who already controls a renderer could log a user out of any site and destroy its first-party cookies, though SameSite protections mean Lax or Strict cookies likely would not be sent and the endpoint must return Clear-Site-Data unconditionally or rely on SameSite=None cookies.
What the attacker needed
Third-party cookie blocking enabled; victim site embeds attacker iframe; attacker controls the iframe renderer; victim endpoint returns Clear-Site-Data
The fix
The Network Service should use the browser-populated isolation_info().site_for_cookies() rather than the renderer-supplied value, or harden the CORS loader validation to check consistency with the initiator origin lock.
How it was found
- Enable third-party cookie blocking in the browser.
- Have the user visit the victim site, which embeds a cross-origin iframe from the attacker's site.
- Compromise the renderer process hosting the attacker's iframe.
- From that renderer, send a credentialed fetch to a victim endpoint known to return the Clear-Site-Data cookies header.
- Forge the site_for_cookies property on the request to match the victim site.
- The Network Service treats the request as first-party and instructs the browser process to delete all unpartitioned cookies for the victim.
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.
Websites can ask the browser to wipe stored data by sending a special response header called Clear-Site-Data. The browser is supposed to only honour that for the site's own pages, not for another site's page. Here the browser trusted a value supplied by the page's process, so a malicious page could pretend to be the victim site and get the victim's login cookies deleted.
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.