Skip to content
Access control Advisory Advanced CVE-2026-106222

Incorrect authorization in Sync (CVE-2026-106222)

A logic flaw in the sync component clears a security guard that prevents downgrading from Trusted Vault to Keystore encryption. An attacker with compromised account credentials could push a benign update to clear the guard, then a malicious update to downgrade encryption, causing the device to re-encrypt its keybag with an attacker-known key and leak the hardware-backed Trusted Vault keys.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 6 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A logic flaw in NigoriSyncBridgeImpl allows an attacker with compromised Gaia credentials to bypass cryptographic protections and leak the victim's hardware-backed Trusted Vault keys. A benign sync update can clear a critical security guard (last_default_trusted_vault_key_name), allowing a subsequent malicious update to downgrade the encryption mode to Keystore. The device then re-encrypts its entire keybag, including the Trusted Vault keys, with a Keystore key known to the attacker, leaking the keys.

Affected files:

  • components/sync/nigori/nigori_sync_bridge_impl.cc

Estimated timestamp from git blame: 2024-11-14

Description

There is a potential high-severity logic vulnerability in NigoriSyncBridgeImpl that could allow an attacker who has compromised a user's Gaia credentials to bypass Trusted Vault protections and extract the victim's hardware-backed Trusted Vault keys. This defeats the explicit threat model of Trusted Vault, which is designed to protect sensitive synced data (like passwords) even if the primary account credentials are stolen.

The vulnerability stems from the mismanagement of the last_default_trusted_vault_key_name guard. This guard is intended to prevent unauthorized downgrades from TRUSTED_VAULT_PASSPHRASE to KEYSTORE_PASSPHRASE by ensuring that any new keybag from the server still contains the victim's Trusted Vault key (see components/sync/nigori/nigori_sync_bridge_impl.cc lines 870-875).

However, in components/sync/nigori/nigori_sync_bridge_impl.cc, the function TryDecryptPendingKeysWith unconditionally clears this guard on line 908 upon a successful decryption:

C++
905:   // Reset `last_default_trusted_vault_key_name` as `state_` might go out of
906:   // TRUSTED_VAULT passphrase type. The callers are responsible to set it again
907:   // if needed.
908:   state_.last_default_trusted_vault_key_name = std::nullopt;

The primary caller of this function, UpdateLocalState (at line 773), completely fails to restore last_default_trusted_vault_key_name if the passphrase type remains TRUSTED_VAULT_PASSPHRASE. This leaves the local state persisted to disk without its intended downgrade protection.

Potential Attack Scenario

(Note: These are suggested steps; Fortify LLM agent does not yet have the ability to run code to verify this end-to-end.)

  1. Initial State: The victim is using Trusted Vault. Their local state_.last_default_trusted_vault_key_name is set, and their hardware-backed Trusted Vault key is in their CryptographerImpl keybag.
  2. Attacker Compromises Gaia: The attacker gains access to the victim's Google account but cannot access the hardware-backed Trusted Vault keys directly.
  3. Clear the Guard: The attacker pushes a benign NigoriSpecifics update to the sync server (e.g., changing a non-cryptographic field like trusted_vault_debug_info), keeping the TRUSTED_VAULT_PASSPHRASE type.
  4. Device Processes Benign Update: The victim's browser receives this update. UpdateLocalState calls TryDecryptPendingKeysWith, which successfully decrypts the update using the existing Trusted Vault key. This clears state_.last_default_trusted_vault_key_name (line 908). UpdateLocalState returns without restoring the guard, and the unprotected state is saved to disk.
  5. Trigger Keystore Downgrade: The attacker then pushes a malicious KEYSTORE_PASSPHRASE update, providing a new keybag encrypted with a Keystore key (which the attacker possesses due to their Gaia access). This keybag does not contain the victim's Trusted Vault keys.
  6. Downgrade Succeeds: The victim's device receives the malicious update. UpdateLocalState calls TryDecryptPendingKeysWith. Because the guard was cleared in step 4, the check at lines 870-875 (has_value() is false) is entirely bypassed. The device accepts the downgrade to Keystore mode. Crucially, the old Trusted Vault keys remain in the local cryptographer->key_bag_.
  7. Key Extraction: Upon a browser restart or keystore key rotation, NeedsKeystoreReencryption triggers. The device re-encrypts its entire keybag (which still contains the Trusted Vault keys) using the attacker-controlled Keystore key and uploads it to the sync server. The attacker fetches this update, decrypts it, extracts the hardware-backed Trusted Vault keys, and can now decrypt all of the victim's historical synced data.

Suggested Fix

In NigoriSyncBridgeImpl::UpdateLocalState, after the call to TryDecryptPendingKeysWith(decryption_key_bag_for_remote_update), the code must check if the current state_.passphrase_type is TRUSTED_VAULT_PASSPHRASE. If it is, it should restore state_.last_default_trusted_vault_key_name using state_.cryptographer->GetDefaultEncryptionKeyName(), similar to what is done in AddTrustedVaultDecryptionKeys.

Evaluated with Chrome root at commit: bb48272cafb7e24c93f55ef40da398cd206ee651


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 function `TryDecryptPendingKeysWith` unconditionally clears the `last_default_trusted_vault_key_name` guard, and its caller `UpdateLocalState` fails to restore it when the passphrase type remains `TRUSTED_VAULT_PASSPHRASE`, leaving the local state without downgrade protection.

Impact

An attacker with compromised Gaia credentials could bypass Trusted Vault protections and extract the victim's hardware-backed Trusted Vault keys, defeating the threat model and allowing decryption of all historical synced data.

What the attacker needed

Attacker has compromised Gaia credentials; victim uses Trusted Vault; attacker can push sync updates

The fix

The code should be fixed by restoring `state_.last_default_trusted_vault_key_name` in `UpdateLocalState` after calling `TryDecryptPendingKeysWith` if the passphrase type is still `TRUSTED_VAULT_PASSPHRASE`.

How it was found

  1. Victim uses Trusted Vault; local state has the guard set and the Trusted Vault key in the keybag.
  2. Attacker compromises the victim's Gaia credentials but cannot access the hardware-backed Trusted Vault keys.
  3. Attacker pushes a benign NigoriSpecifics update keeping the TRUSTED_VAULT_PASSPHRASE type.
  4. Victim's browser processes the update, clears the guard, and saves the unprotected state to disk.
  5. Attacker pushes a malicious KEYSTORE_PASSPHRASE update with a keybag encrypted with an attacker-known Keystore key.
  6. Victim's device accepts the downgrade because the guard is cleared, and later re-encrypts the keybag (including Trusted Vault keys) with the attacker's key and uploads it.

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.

Trusted Vault is a security feature that keeps your synced passwords safe even if someone steals your Google account password, by storing a special key on your device's hardware. This report describes a bug where an attacker who already has your account password could trick your device into re-encrypting that special key with a key the attacker knows, and then upload it, letting them steal the key and decrypt all your synced data.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.