Improper input validation in Sync (CVE-2026-79013)
The Chrome Sync client treated a server-supplied migration request for the NIGORI control type as valid, which purged the local encryption state and erased the record of a custom passphrase. An attacker controlling the sync server response or a man-in-the-middle could then push keystore encryption with server-known keys, letting the server decrypt data synced afterwards.
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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A logic flaw in Chrome Sync allows a malicious server or MITM to silently downgrade a user's encryption from a custom passphrase to server-known keys. By triggering a migration for the NIGORI data type, an attacker can force a local state wipe that erases custom passphrase protection, allowing a subsequent transition to keystore encryption without user notification.
Affected files:
components/sync/service/data_type_manager_impl.cccomponents/sync/engine/syncer_proto_util.cccomponents/sync/nigori/nigori_sync_bridge_impl.cccomponents/sync/service/backend_migrator.cccomponents/sync/service/glue/sync_engine_backend.cc
Estimated timestamp from git blame: Unknown (Google3 checkout)
Summary
A logic vulnerability in Chrome Sync's migration handling could allow an attacker who controls the sync server response (or a compromised network process) to silently strip a user's end-to-end encryption (CUSTOM_PASSPHRASE) and downgrade it to a server-known KEYSTORE_PASSPHRASE. This effectively allows the server to decrypt sensitive user data synced after the downgrade, such as passwords and Wi-Fi credentials.
Technical Details
The vulnerability exists because the sync client's migration logic does not adequately protect the NIGORI control type (which manages encryption keys) from being targeted for migration by the server.
Root Cause
- Migration Trigger: When a sync server returns
error_code = MIGRATION_DONEwithmigrated_data_type_idcontaining the field number forNigoriSpecifics(47745), the client processes this as a request to migrate theNIGORIdata type.- Reference:
components/sync/engine/syncer_proto_util.cc:311callsGetTypesToMigrate(response).
- Reference:
- State Purge: The
BackendMigratorinitiates a purge of the type to be migrated. ForNIGORI, this causesDataTypeManagerImplto callconfigurer_->ClearNigoriDataForMigration().- Reference:
components/sync/service/data_type_manager_impl.cc:550.
- Reference:
- Local Wipe: This call reaches
NigoriSyncBridgeImpl::ApplyDisableSyncChanges(), which wipes the local cryptographer and resets thepassphrase_typetoUNKNOWN. This effectively erases the client's knowledge that a custom passphrase was ever in use.- Reference:
components/sync/nigori/nigori_sync_bridge_impl.cc:930-945.
- Reference:
- Silent Re-encryption: After the purge,
BackendMigratorre-enablesNIGORIfor reconfiguration. During the subsequent sync cycle, the client downloads the state from the server. Because the localpassphrase_typeis nowUNKNOWN, the bridge accepts a transition toKEYSTORE_PASSPHRASEprovided by the server, as transitions fromUNKNOWNto any valid type are permitted.- Reference:
components/sync/nigori/nigori_sync_bridge_impl.cc:187-193inIsValidPassphraseTransition.
- Reference:
Potential Attack Scenario
An attacker controlling the sync response (compromised server or MITM) could follow these suggested steps:
- Serve a
ClientToServerResponsewitherror_code = MIGRATION_DONEandmigrated_data_type_id = [47745]. - The client will silently wipe its local encryption state and custom passphrase keys.
- The client re-enables sync for the
NIGORItype. - In the next sync update, serve
NigoriSpecificswithpassphrase_type = KEYSTORE_PASSPHRASEand new keys known to the server. - The client accepts this transition silently. All future sensitive data (passwords, etc.) will be encrypted with the server's keys.
Impact
This allows a compromised backend or network process to escalate its influence to the browser process and decrypt user credentials. The attack is entirely silent; no engine reset or UI prompts are visible to the user.
Suggested Fix
The sync client should explicitly prevent the NIGORI data type from being targeted for migration by the server. In components/sync/engine/syncer_proto_util.cc, GetTypesToMigrate should filter out control types like NIGORI. Additionally, NigoriSyncBridgeImpl should be hardened to prevent silent transitions away from CUSTOM_PASSPHRASE even if the local state has been cleared for migration, perhaps by persisting a 'was custom passphrase' bit across migration purges.
Evaluated with Chrome root at commit: 1a8d40fc44df2088d5945c0bf53584038aa1614a
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
Likely the migration logic did not exclude the NIGORI control type from server-requested migrations, and the resulting purge reset the passphrase type to UNKNOWN, which the transition check then allowed to move to any valid type.
Impact
A compromised backend or network process could silently downgrade encryption and decrypt credentials synced after the downgrade, with no prompt or reset visible to the user.
What the attacker needed
Control of sync server responses or MITM; victim uses a custom sync passphrase
The fix
The client should filter control types such as NIGORI out of server-requested migrations and should refuse silent transitions away from a custom passphrase even after a migration purge.
How it was found
- Serve a sync response with a migration-done error naming the NIGORI data type.
- The client wipes its local encryption state and custom passphrase keys.
- The client re-enables sync for the NIGORI type.
- In the next sync update, serve encryption settings using the keystore passphrase with new server-known keys.
- The client accepts the transition without notifying the user.
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 synced data with a secret passphrase that only you know, so the company's servers cannot read it. This report says the browser trusted a message from the server telling it to reset its encryption settings, and that reset also forgot the passphrase was ever set. After that, the browser would accept weaker encryption whose keys the server holds, so the server could read things like saved passwords.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.