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.cccontent/browser/renderer_host/render_frame_host_impl.cccomponents/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:
- 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 overridekAllowSameSiteNoneCookiesInSandboxbased onframe_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. - Persistence across Redirects: When the navigation starts,
ShouldAllowSameSiteNoneCookiesInSandboxperforms an origin-level check usingAncestorsAllowSameSiteNoneCookiesOverride(...)on the initial request URL origin. If this initial destination is same-origin with the frame ancestors, the override is granted and baked into theURLLoaderFactoryparameters.
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).
- Set a
SameSite=None; Securecookie forhttps://sub.a.example. - Load a top-level page
https://a.example/top.htmlwhich embeds a sandboxed iframe:<iframe sandbox="allow-scripts allow-same-site-none-cookies" src="https://a.example/middle.html">. - Inside
middle.html(which has an opaque origin with precursora.example), embed an inner iframe pointing tohttps://a.example/redirect. https://a.example/redirectresponds with an HTTP302redirecting tohttps://sub.a.example/target.- Observe if the request to
sub.a.examplecarries theSameSite=Nonecookie. If the navigation had gone directly tosub.a.examplefrom the same sandboxed context, the cookie would have been blocked becausesub.a.exampleis cross-origin to the parent's precursora.example(failing the origin-level ancestor check).
Suggested Fix
To address this potential issue, consider:
- Ensuring that
URLLoader::FollowRedirectinservices/network/url_loader.ccremovesnet::CookieSettingOverride::kAllowSameSiteNoneCookiesInSandboxfrom the request overrides when the redirect is cross-origin (matching the behavior ofkStorageAccessGrantEligible). - Modifying
ShouldAllowSameSiteNoneCookiesInSandboxto 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.
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
- Set a SameSite=None cookie for a subdomain of the site.
- Load a top-level page that embeds a sandboxed iframe allowing same-site-none cookies.
- From inside that iframe, embed a further iframe pointing at a redirect endpoint on the same site.
- The redirect endpoint responds with a 302 to the subdomain target.
- 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.