Insufficient policy enforcement in Search (CVE-2026-8011)
A logic error in Chrome's OpenSearch Description Document fetcher sets the request's site_for_cookies to the target URL instead of the initiator, causing cross-site fetches to be treated as first-party. An attacker could trigger credentialed GET requests to a victim site, bypassing Third-Party Cookie Deprecation and sending unpartitioned SameSite=None cookies.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 41 days
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A logic error in the OpenSearch Description Document (OSDD) fetcher incorrectly sets the request's site_for_cookies to the target URL rather than the initiator. This causes the network service to misclassify cross-site OSDD fetches as first-party requests, bypassing Third-Party Cookie Deprecation (3PCD) protections and sending unpartitioned SameSite=None cookies.
Affected files:
components/search_engines/template_url_fetcher.ccchrome/browser/ui/search_engines/search_engine_tab_helper.cc
Estimated timestamp from git blame: 2025-01-08
Description
There is a potential logic error in how Chrome fetches OpenSearch Description Documents (OSDD) that allows a cross-site attacker to trigger a credentialed GET request to a victim's server, bypassing Third-Party Cookie Deprecation (3PCD) protections.
The vulnerability exists in components/search_engines/template_url_fetcher.cc. When a page declares an OSDD via a <link rel='search'> tag, the browser eventually invokes TemplateURLFetcher::ScheduleDownload to fetch the document. In the TemplateURLFetcher::RequestDelegate constructor, the network::ResourceRequest is initialized with:
// components/search_engines/template_url_fetcher.cc:140
resource_request->site_for_cookies = net::SiteForCookies::FromUrl(osdd_url);
Because site_for_cookies is derived directly from the target osdd_url rather than the top-level initiating document's site, the network service's cookie policy logic (CookieSettingsBase::GetCookieSettingInternal) incorrectly evaluates IsThirdPartyRequest(url, site_for_cookies) as false. The request is treated as a first-party request, completely bypassing 3PCD blocking logic.
While SameSite=Lax and Strict cookies remain protected because ComputeSameSiteContextForRequest independently verifies the request_initiator (which is correctly set to the attacker's site), all unpartitioned SameSite=None cookies are included in the outgoing cross-site request.
Potential Reproduction Steps
Note: These are suggested steps based on static analysis, as this agent does not have the ability to run a live proof-of-concept.
- Ensure third-party cookies are blocked (default behavior under 3PCD).
- A victim logs into
victim.com, which sets aSameSite=None; Securesession cookie (without thePartitionedattribute). - The victim navigates to a malicious site hosted at the root path (e.g.,
https://attacker.com/). Note: The root path is required becauseSearchEngineTabHelper::GenerateKeywordFromNavigationEntryskips keyword generation for URLs with a path length > 1. - The
attacker.compage includes the following tag in its<head>:<link rel='search' type='application/opensearchdescription+xml' href='https://victim.com/api/endpoint'> - The browser processes the tag and dispatches an OSDD fetch to
victim.com. - Because of the
site_for_cookiesflaw, the request will carry the victim's unpartitionedSameSite=Nonecookies tovictim.com/api/endpoint, successfully bypassing 3PCD.
Impact
- Cross-site tracking bypass: A victim site can receive a credentialed request whenever a user visits an attacker-controlled page, allowing the victim to track the user across sites despite 3PCD.
- Blind GET-based CSRF: An attacker can trigger credentialed GET requests to sensitive endpoints on a victim's site that rely on 3PCD for protection rather than explicit
SameSiteattributes. - Note: The attacker cannot read the response body, as the OSDD fetch response is consumed internally by the browser process (
TemplateURLParser).
Suggested Fix
Update TemplateURLFetcher::RequestDelegate to correctly construct the site_for_cookies based on the initiating document's origin, or explicitly use an empty net::SiteForCookies() for cross-site OSDD fetches so that the network service correctly identifies them as third-party requests and applies 3PCD blocking appropriately:
resource_request->site_for_cookies = net::SiteForCookies::FromOrigin(initiator);
Evaluated with Chrome root at commit: 0eb4855bda702feaaa8b899336664f97e3df88b8
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. Please feel free to reach out to me if you have concerns or feedback.
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 incorrectly derives site_for_cookies from the target OSDD URL instead of the initiating document's origin, causing the network service to misclassify cross-site requests as first-party.
Impact
An attacker could trigger credentialed GET requests to a victim site, enabling cross-site tracking or blind GET-based CSRF, but cannot read the response body.
What the attacker needed
Victim logged into target site; target sets SameSite=None cookie; victim visits attacker page at root path; third-party cookies blocked
The fix
The code should be updated to construct site_for_cookies from the initiating document's origin or use an empty SiteForCookies for cross-site OSDD fetches.
How it was found
- Ensure third-party cookies are blocked (default under 3PCD).
- Victim logs into victim.com, which sets a SameSite=None; Secure session cookie without Partitioned.
- Victim navigates to a malicious site hosted at the root path.
- The malicious page includes a <link rel='search'> tag pointing to victim.com.
- The browser processes the tag and dispatches an OSDD fetch to victim.com.
- The request carries the victim's unpartitioned SameSite=None cookies to victim.com, bypassing 3PCD.
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 a website asks the browser to fetch a search description file from another site, the browser normally should treat that as a third-party request and block certain cookies. Here, a mistake made the browser think the request was first-party, so it sent cookies that should have been blocked. An attacker could use this to make a victim's browser send requests with their cookies to a target site, though the attacker cannot read the response.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.