Improper input validation in Sync (CVE-2026-79076)
A logic flaw in Chrome's Trusted Vault key handling could let a compromised sync server bypass rotation proof verification and replace a client's legitimate vault keys with attacker-controlled ones. This could defeat end-to-end encryption for synced data such as passwords, allowing the server to decrypt them.
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 potential logic flaw in Chrome's Trusted Vault implementation may allow a compromised server to bypass rotation proof verification and replace a client's legitimate vault keys. By providing a crafted key with a version less than or equal to the client's local version, the server can trigger a silent overwrite of the local keys. This could defeat end-to-end encryption for synced data like passwords, allowing the server to decrypt them.
Affected files:
components/trusted_vault/download_keys_response_handler.cccomponents/trusted_vault/standalone_trusted_vault_backend.cc
Estimated timestamp from git blame: 2025-04-28
Description
There is a potential vulnerability in the Trusted Vault key handling code that could allow a compromised server (or a Man-in-the-Middle attacker capable of spoofing the server) to bypass rotation proof verification. This bypass allows the attacker to silently replace a user's legitimate trusted vault keys with keys known to the attacker. If exploited, this breaks the end-to-end encryption (E2EE) guarantees of Chrome Sync, as future synced data will be encrypted using the attacker-controlled keys.
Note: The following analysis is based on code review by our setup. The steps represent a potential attack path, as a working proof-of-concept has not yet been executed or verified dynamically.
Technical Details
The vulnerability stems from a sequence of logic flaws across the key downloading and storage pipeline:
-
Validation Bypass in
IsValidKeyChain: Incomponents/trusted_vault/download_keys_response_handler.cc, theIsValidKeyChainfunction iterates through downloaded keys to verify their rotation proofs. However, it explicitly skips verification for any keys with a version less than or equal to the client's current version:C++ // components/trusted_vault/download_keys_response_handler.cc:91 for (const ExtractedSharedKey& next_key : key_chain) { if (next_key.version <= last_valid_key_version) { continue; // Verification is skipped } // ... VerifyRotationProof() is called here ... }If an attacker provides a key with
version <= last_valid_key_version, the function returnstruewithout verifying the key's cryptographic linkage to the existing chain. -
Unvalidated Keys Returned on
kNoNewKeys: InProcessResponse, if the downloaded keys' maximum version is less than or equal to the local version, the status is correctly set tokNoNewKeys. However, the function still returns the unvalidated, decrypted keys back to the caller:C++ // components/trusted_vault/download_keys_response_handler.cc:228 if (extracted_keys->back().version <= last_trusted_vault_key_and_version_.version) { status = TrustedVaultDownloadKeysStatus::kNoNewKeys; } return ProcessedResponse(status, trusted_vault_keys, ...); -
Blind Overwrite in
StandaloneTrustedVaultBackend: WhenStandaloneTrustedVaultBackend::OnKeysRecoveredreceives thekNoNewKeysstatus, it still callsStoreKeyswith the provided (and unvalidated) keys, citing the need to purge old keys removed from the server:C++ // components/trusted_vault/standalone_trusted_vault_backend.cc:770 case LocalRecoveryFactor::RecoveryStatus::kNoNewKeys: { StoreKeys(primary_account_->gaia, downloaded_vault_keys, last_vault_key_version); break; }Finally,
StoreKeysclears the user's existing, legitimate vault keys and replaces them entirely with the attacker's unvalidated keys.
Potential Attack Steps
To trigger this vulnerability, an attacker controlling the sync server would potentially perform the following steps:
- Wait for (or trigger via
MarkLocalKeysAsStale) the client to attempt a key recovery/download viaDownloadNewKeys. - In response to the client's request, construct a malicious
SecurityDomainMemberprotobuf payload. - Include a single
SharedMemberKeyin the payload, setting itsepoch(version) to the client's current versionV(or lower). - Set the
wrapped_keyto an attacker-generated key (K_evil), encrypted using the client's publicSecureBoxkey (which the server possesses from device registration). - Omit a valid
rotation_proof. - The client decrypts
K_evil, skips validation because its version is<= V, and processes it as akNoNewKeysresponse. - The client wipes its legitimate key
K_legitand persistsK_evil. - The attacker can now passively decrypt any future E2EE sync data stored on the server.
Suggested Fix
There are two primary areas that should be patched to resolve this:
- Do not return unvalidated keys: In
DownloadKeysResponseHandler::ProcessResponse, if the response results inkNoNewKeys(or if keys were skipped during validation), the handler should not include those unverified keys in theProcessedResponse. It should return an empty list or only the keys that were strictly verified viaVerifyRotationProof. - Strict Equality/Validation Checking: Re-evaluate the logic in
IsValidKeyChain. If older keys are supplied by the server to overwrite local storage, the client must verify that these older keys actually match the keys it already holds locally, rather than blindly skipping validation and trusting the server's payload.
Evaluated with Chrome root at commit: 0eb4855bda702feaaa8b899336664f97e3df88b8
Results 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. Please feel free to reach out to me if you have concerns or feedback.
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 key-chain validation skips rotation-proof checks for keys whose version is less than or equal to the client's current version, and those unvalidated keys are still returned and stored.
Impact
A compromised server or man-in-the-middle could defeat end-to-end encryption for future synced data, though the report notes no working proof-of-concept has been executed.
What the attacker needed
Compromised sync server or MITM; client attempts key download
The fix
The handler should not return unvalidated keys, and the validation logic should verify that older keys match the client's existing keys rather than skipping checks.
How it was found
- Wait for or trigger the client to download keys.
- Send a crafted key payload with a version at or below the client's current version.
- Wrap an attacker-generated key using the client's public key and omit a valid rotation proof.
- The client decrypts the key, skips validation, and treats the response as having no new keys.
- The client replaces its legitimate key with the attacker's key.
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 Sync can encrypt your passwords end-to-end, meaning only your devices hold the keys. This report describes a code path where a malicious server could send a key that the client accepts without checking its proof, overwriting the real key. If that happened, the server could read future synced data.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.