Skip to content
Access control Advisory Advanced CVE-2026-11252

Policy bypass in Content Settings (CVE-2026-11252)

A logic flaw in the content settings lookup code causes subdomain matching to be skipped for the secondary URL whenever the primary URL is an IP address. This lets domain-wildcard content setting rules be bypassed, so cookies or other content settings that should be blocked for a site and its subdomains may be allowed.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A logic flaw in HostIndexedContentSettings incorrectly skips subdomain-matching for secondary URLs when the primary URL is an IP address. This bypasses domain-wildcard rules, allowing unauthorized cookie access or content setting circumvention.

Affected files:

  • components/content_settings/core/common/host_indexed_content_settings.cc

Estimated timestamp from git blame: 2024-01-31

Suggested Fix Update FindInHostToContentSettings in components/content_settings/core/common/host_indexed_content_settings.cc to evaluate whether the host parameter (the string currently being queried) is an IP address, rather than hardcoding the condition to primary_url.HostIsIPAddress(). Passing a boolean flag from the caller (e.g., is_ip_address) based on the specific URL being queried (primary vs. secondary) will resolve the incorrect branching.

Context & Root Cause The general content settings indexing mechanism and map selection are validated. The vulnerability lies specifically in the subdomain walk logic during secondary URL lookups.

When HostIndexedContentSettings::Find queries the secondary_host_indexed_ map, it passes secondary_url.host() as the host parameter to FindInHostToContentSettings. However, line 94 incorrectly branches based on primary_url.HostIsIPAddress():

C++
// components/content_settings/core/common/host_indexed_content_settings.cc
if (primary_url.HostIsIPAddress()) { 
  // Performs exact match only
  auto it = indexed_content_setting.find(host);
  ...
} else {
  // Performs subdomain walk
  std::string_view subdomain(host);
  while (!subdomain.empty()) {
    ...

If the primary URL is an IP address (e.g., http://1.2.3.4/), the true branch executes. This forces an exact-match lookup for the secondary host (e.g., www.example.com). The required subdomain stripping loop (while (!subdomain.empty())) is completely skipped. Consequently, secondary-indexed domain-wildcard policies (e.g., [*.]example.com) are bypassed because the required lookup for example.com never occurs.

Potential Reproduction Steps (Note: These are suggested steps; our tooling agent cannot yet execute local code to provide a working PoC)

  1. Configure a content setting rule: primaryPattern: '*', secondaryPattern: '[*.]example.com', setting: BLOCK (e.g., block third-party cookies for this site and its subdomains).
  2. Navigate the browser to a subdomain of the target: https://www.example.com/.
  3. From the page context, initiate a subresource fetch to an IP literal: fetch('http://1.2.3.4/set-cookie', {credentials: 'include'}).
  4. The settings evaluator checks Find(primary_url="http://1.2.3.4/", secondary_url="https://www.example.com/").
  5. The IP check passes, the subdomain walk for www.example.com is skipped, and the cookie is erroneously allowed.

Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33


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.

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 subdomain walk in FindInHostToContentSettings branches on whether the primary URL is an IP address instead of whether the host currently being queried is one, so secondary lookups skip subdomain stripping.

Impact

Domain-wildcard content setting rules could be bypassed, potentially allowing unauthorised cookie access or content setting circumvention; the text notes the reproduction steps were not actually executed.

What the attacker needed

A content setting rule with a domain wildcard; victim visits a subdomain of that domain; page fetches a subresource from an IP literal

The fix

The lookup should decide whether to do an exact match based on whether the host being queried is an IP address, with the caller passing a flag for the specific URL, rather than hardcoding the primary URL's check.

How it was found

  1. Configure a content setting rule that blocks a domain wildcard for the secondary pattern.
  2. Navigate the browser to a subdomain of the target site.
  3. From the page, fetch a subresource from an IP literal with credentials included.
  4. The evaluator checks the IP as primary and the subdomain as secondary.
  5. The IP check passes, the subdomain walk is skipped, and the cookie is wrongly allowed.

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.

Browsers keep rules about what a website is allowed to do, such as whether third-party cookies can be set. These rules can apply to a whole domain and all its subdomains. Here, a coding mistake meant that when one side of the check was a numeric IP address, the browser forgot to check the domain's parent, so a rule meant to block the site was ignored.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.