Skip to content
Crypto Advisory Advanced CVE-2026-79076

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.cc
  • components/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:

  1. Validation Bypass in IsValidKeyChain: In components/trusted_vault/download_keys_response_handler.cc, the IsValidKeyChain function 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 returns true without verifying the key's cryptographic linkage to the existing chain.

  2. Unvalidated Keys Returned on kNoNewKeys: In ProcessResponse, if the downloaded keys' maximum version is less than or equal to the local version, the status is correctly set to kNoNewKeys. 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, ...);
    
  3. Blind Overwrite in StandaloneTrustedVaultBackend: When StandaloneTrustedVaultBackend::OnKeysRecovered receives the kNoNewKeys status, it still calls StoreKeys with 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, StoreKeys clears 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:

  1. Wait for (or trigger via MarkLocalKeysAsStale) the client to attempt a key recovery/download via DownloadNewKeys.
  2. In response to the client's request, construct a malicious SecurityDomainMember protobuf payload.
  3. Include a single SharedMemberKey in the payload, setting its epoch (version) to the client's current version V (or lower).
  4. Set the wrapped_key to an attacker-generated key (K_evil), encrypted using the client's public SecureBox key (which the server possesses from device registration).
  5. Omit a valid rotation_proof.
  6. The client decrypts K_evil, skips validation because its version is <= V, and processes it as a kNoNewKeys response.
  7. The client wipes its legitimate key K_legit and persists K_evil.
  8. 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:

  1. Do not return unvalidated keys: In DownloadKeysResponseHandler::ProcessResponse, if the response results in kNoNewKeys (or if keys were skipped during validation), the handler should not include those unverified keys in the ProcessedResponse. It should return an empty list or only the keys that were strictly verified via VerifyRotationProof.
  2. 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.

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 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

  1. Wait for or trigger the client to download keys.
  2. Send a crafted key payload with a version at or below the client's current version.
  3. Wrap an attacker-generated key using the client's public key and omit a valid rotation proof.
  4. The client decrypts the key, skips validation, and treats the response as having no new keys.
  5. 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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.