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

Incorrect authorization in Network (CVE-2026-79205)

A sandboxed iframe's cookie override is decided once at navigation start and then reused across redirects, so a redirect to a same-site but cross-origin host can carry a SameSite=None cookie that should have been blocked. An attacker could potentially read or send cookies across origins that the sandbox was meant to keep apart.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 3 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.

Overview: A potential logic vulnerability in NavigationURLLoaderImpl fails to re-evaluate sandbox cookie overrides on redirects. This potentially allows a sandboxed iframe to bypass origin-level cookie restrictions when redirected to same-site, cross-origin targets.

Affected files:

  • content/browser/loader/navigation_url_loader_impl.cc
  • content/browser/renderer_host/render_frame_host_impl.cc
  • components/content_settings/core/common/cookie_settings_base.cc

Estimated timestamp from git blame: 2025-01-23

Summary

A potential security logic vulnerability in the cookie sandbox-override mechanism allows sandboxed iframes to bypass origin-level cookie restrictions when redirected to a same-site, cross-origin destination. This issue stems from NavigationURLLoaderImpl evaluating the cookie override exactly once when the navigation begins, and subsequently reusing the same URLLoaderFactory (and its overrides) across subsequent redirects without recheck.

Root Cause Analysis

There are two potential core logic errors:

  1. Use of Stale State during Start: In content/browser/loader/navigation_url_loader_impl.cc, ShouldAllowSameSiteNoneCookiesInSandbox (lines 487–502) evaluates whether to grant the cookie override kAllowSameSiteNoneCookiesInSandbox based on frame_tree_node.current_frame_host(). This queries the sandbox configuration (active_sandbox_flags()) of the currently committed (old) document rather than the pending/new navigation state.
  2. Persistence across Redirects: When the navigation starts, ShouldAllowSameSiteNoneCookiesInSandbox performs an origin-level check using AncestorsAllowSameSiteNoneCookiesOverride(...) on the initial request URL origin. If this initial destination is same-origin with the frame ancestors, the override is granted and baked into the URLLoaderFactory parameters.

During redirects, the same factory is reused. While some overrides (like kStorageAccessGrantEligible) are explicitly removed on cross-origin redirects inside URLLoader::FollowRedirect (defined in services/network/url_loader.cc:1039-1046), kAllowSameSiteNoneCookiesInSandbox is not. However, the Network Service re-verification check (CookieSettingsBase::IsAllowedBySandboxValue inside components/content_settings/core/common/cookie_settings_base.cc:336) only enforces a site-level match (SchemefulSite::IsSameSite) on the redirect target URL against the top-level site. This effectively downgrades the browser's origin-level ancestor gate to a site-level gate.

Potential Reproduction Steps

(Note: These are potential steps, as our testing tools do not run active execution environments).

  1. Set a SameSite=None; Secure cookie for https://sub.a.example.
  2. Load a top-level page https://a.example/top.html which embeds a sandboxed iframe: <iframe sandbox="allow-scripts allow-same-site-none-cookies" src="https://a.example/middle.html">.
  3. Inside middle.html (which has an opaque origin with precursor a.example), embed an inner iframe pointing to https://a.example/redirect.
  4. https://a.example/redirect responds with an HTTP 302 redirecting to https://sub.a.example/target.
  5. Observe if the request to sub.a.example carries the SameSite=None cookie. If the navigation had gone directly to sub.a.example from the same sandboxed context, the cookie would have been blocked because sub.a.example is cross-origin to the parent's precursor a.example (failing the origin-level ancestor check).

Suggested Fix

To address this potential issue, consider:

  1. Ensuring that URLLoader::FollowRedirect in services/network/url_loader.cc removes net::CookieSettingOverride::kAllowSameSiteNoneCookiesInSandbox from the request overrides when the redirect is cross-origin (matching the behavior of kStorageAccessGrantEligible).
  2. Modifying ShouldAllowSameSiteNoneCookiesInSandbox to evaluate sandbox constraints against the pending navigation state/target rather than relying on the initial URL and stale frame host state.

Evaluated with Chrome root at commit: fb72408a8493c46bc75fae1c70d03daec96b3040


Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:

  • If you are familiar with the severity guidelines, you may adjust the severity.
  • If this is a false positive, and there's no work to be done, please close as WAI.
  • If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.

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 sandbox cookie override is evaluated once against the initial URL and stale frame state, then carried through redirects, while the network service only re-checks at site level rather than origin level.

Impact

A sandboxed iframe could potentially send a SameSite=None cookie to a same-site but cross-origin host that the origin-level check would otherwise have blocked; the report notes the steps are theoretical and were not executed.

What the attacker needed

Sandboxed iframe with cookie override; attacker controls redirect on same site; victim has SameSite=None cookie

The fix

The override should be stripped on cross-origin redirects, matching how the storage-access override is handled, and the sandbox check should use the pending navigation state rather than the old frame host.

How it was found

  1. Set a SameSite=None cookie for a subdomain of the site.
  2. Load a top-level page that embeds a sandboxed iframe allowing same-site-none cookies.
  3. From inside that iframe, embed a further iframe pointing at a redirect endpoint on the same site.
  4. The redirect endpoint responds with a 302 to the subdomain target.
  5. Observe whether the request to the subdomain carries the SameSite=None cookie.

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.

Cookies can be marked so they are sent even when a page is embedded from another site, and a sandboxed frame is normally only allowed to use them when the destination is closely related to the parent page. Here the browser checked that relationship once at the start and then kept the permission while the page bounced to a different host. That means a cookie could reach a host the check was supposed to exclude.

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.