Insufficient validation of untrusted input in Variations (CVE-2026-17774)
A network-position attacker can force Chrome into a 'Null Seed' safe mode by repeatedly crashing the browser process with a malicious gzip response during an insecure HTTP fallback, preventing the variations crash streak from being reset. This disables all Finch-delivered security mitigations, allowing the attacker to exploit vulnerabilities that were previously mitigated by a kill-switch.
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 without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A network-position attacker can disable all Finch-delivered security mitigations by forcing Chrome into 'Null Seed' safe mode. This is achieved by inducing repeated browser process crashes using a malicious gzip response during an insecure HTTP fallback, which prevents the variations crash streak from being reset.
Affected files:
components/variations/service/safe_seed_manager.cccomponents/metrics/clean_exit_beacon.cccomponents/variations/service/variations_field_trial_creator.cccomponents/variations/variations_seed_store.cccomponents/variations/service/variations_service.cc
Estimated timestamp from git blame: 2022-11-15
Summary
A potential vulnerability in the Variations Safe Mode mechanism allows a network-position (MITM) attacker to bypass emergency security mitigations delivered via Finch (variations seeds). By suppressing successful variations seed fetches and inducing a series of browser process crashes, an attacker can escalate the 'crash streak' to a threshold that forces Chrome into a kNullSeed state. In this state, all field trials and emergency kill-switches are disabled, reverting features to their compile-time default states.
Root Cause Analysis
The Variations Safe Mode is designed to protect users from problematic variations seeds by reverting to a 'Safe Seed' or a 'Null Seed' if Chrome crashes repeatedly during startup. The logic governing this escalation can be manipulated:
- Gzip-Bomb Vulnerability: In
components/variations/variations_seed_store.cc, theProcessSeedDatafunction handles gzip-compressed seeds. It callscompression::GzipUncompress, which extracts the expected uncompressed size from the last 4 bytes of the gzip stream (theISIZEfield) and callsresize()on the output string before decompression begins. - Deterministic OOM: A network attacker can serve a small gzip stream with an
ISIZEvalue set to a large number (e.g., 4GB). In the browser process,std::string::resize()will attempt a massive allocation. If the allocation fails or exceeds internal limits, PartitionAlloc will trigger an immediate Out-Of-Memory (OOM) crash. - Persistence of Crash Streak: The
kVariationsCrashStreakcounter (incomponents/metrics/clean_exit_beacon.cc) is incremented whenever a session is determined to have exited uncleanly. It is only reset inSafeSeedManager::RecordSuccessfulFetch, which is called after a seed is successfully fetched, processed, and verified. Since the crash occurs during processing (before signature verification), the streak is never reset. - Safe Mode Escalation: If the crash streak reaches the
kCrashStreakNullSeedThreshold(default is 4),SafeSeedManager::GetSeedType()returnsSeedType::kNullSeed, causingVariationsFieldTrialCreatorto skip the application of all variations trials.
Potential Attack Scenario
- Network MITM: The attacker intercepts traffic to the variations server (
clientservices.googleapis.com). - Force HTTP Fallback: The attacker blocks HTTPS connections, forcing Chrome to attempt an insecure HTTP fetch.
- Deliver Gzip Bomb: The attacker serves a 200 OK response with the
IM: gzipheader and a gzip-compressed payload with a maliciousISIZEfooter. - Induce Crashes: The browser process crashes during
GzipUncompress. The attacker repeats this for four consecutive launches. - Mitigation Bypass: On the fifth launch, Chrome enters
kNullSeedmode. The attacker then delivers an exploit for a vulnerability that was previously mitigated by a Finch kill-switch.
Suggested Fix
- Size Validation: Implement a strict maximum size limit for uncompressed variations seeds in
VariationsSeedStore::ProcessSeedDatabefore callingGzipUncompressor withinGzipUncompressitself. - Footer Verification: Do not rely solely on the gzip footer's
ISIZEfor allocation; instead, use a streaming decompression approach with a fixed-size buffer or a capped growth strategy. - Strict HTTP Handling: Consider disabling HTTP fallback for variations seeds or enforcing stricter validation on insecurely fetched data before processing.
Evaluated with Chrome root at commit: b3153093eb3c78c3e88ccf562bcbc20437a04b0e
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
The gzip decompression routine trusts the uncompressed size field in the gzip footer and allocates that much memory before decompressing, allowing a small malicious gzip stream to cause an out-of-memory crash; because the crash happens before the seed is successfully processed, the crash streak counter is never reset, eventually forcing Chrome into a null-seed state that disables all variations.
Impact
An attacker could disable all Finch-delivered security mitigations, allowing them to exploit vulnerabilities that were previously mitigated by a kill-switch.
What the attacker needed
Network-position attacker (MITM); ability to block HTTPS connections; victim uses Chrome
The fix
The report suggests implementing a strict maximum size limit for uncompressed variations seeds, using streaming decompression with a fixed-size buffer or capped growth strategy, and considering disabling HTTP fallback for variations seeds.
How it was found
- Intercept traffic to the variations server.
- Block HTTPS connections to force Chrome to attempt an insecure HTTP fetch.
- Serve a 200 OK response with the IM: gzip header and a gzip-compressed payload with a malicious ISIZE footer.
- The browser process crashes during GzipUncompress; repeat this for four consecutive launches.
- On the fifth launch, Chrome enters kNullSeed mode, disabling all variations trials.
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.
Chrome uses small configuration files called 'variations seeds' to turn features on or off, including emergency security fixes. If Chrome crashes several times in a row while starting up, it enters a safe mode that ignores these seeds. The report shows that an attacker who can intercept network traffic can make Chrome crash on purpose by sending a tiny compressed file that claims to be huge, and after a few crashes Chrome stops applying the security fixes, leaving users open to other attacks.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.