Insufficient validation of untrusted input in TabGroups (CVE-2026-8003)
A logic flaw in the shared tab group sync bridge merges attacker-controlled metadata into a victim's tab group before checking that the collaboration ID matches, spoofing the UI. The resulting validation error also permanently disables shared tab group sync for the victim.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 42 days
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A logic flaw in SharedTabGroupDataSyncBridge allows an attacker to inject malicious metadata into a shared tab group belonging to a different collaboration. Because the in-memory tab group metadata is merged before verifying the incoming sync update's collaboration ID, the UI is spoofed with attacker-controlled data. Furthermore, the subsequent validation failure triggers a persistent ModelError that permanently disables shared tab group sync for the victim.
Affected files:
components/saved_tab_groups/internal/shared_tab_group_data_sync_bridge.cccomponents/saved_tab_groups/internal/tab_group_sync_service_impl.cccomponents/sync/model/processor_entity_tracker.cc
Estimated timestamp from git blame: 2025-07-07
Description
There is a potential vulnerability in SharedTabGroupDataSyncBridge::AddGroupToLocalStorage where it mutates the in-memory SavedTabGroupModel before validating that the incoming entity's collaboration_id matches the existing group's collaboration_id.
This vulnerability can be triggered by an attacker who shares one collaboration (Collaboration A) with a victim, and knows the GUID of a tab group in another collaboration (Collaboration B) that the victim belongs to.
When a remote sync update is received, the sync processor ProcessorEntityTracker::AddInternal relies on a DCHECK to enforce that different client_tag_hashes do not share the same storage_key. In release builds, this DCHECK is compiled out, allowing a malicious update from Collaboration A to overwrite the storage_key_to_tag_hash_ mapping of the victim's group in Collaboration B (because SharedTabGroupDataSyncBridge::GetStorageKey only uses the GUID).
When the update reaches SharedTabGroupDataSyncBridge::AddGroupToLocalStorage:
- It looks up the existing group by GUID and calls
model_wrapper_->MergeRemoteGroupMetadata(...). - This immediately mutates the in-memory model (title, color, attribution) and notifies UI observers, spoofing the victim's tab group UI.
- Finally, it checks if
existing_group->collaboration_id() != collaboration_metadata.collaboration_id(). Since the IDs do not match, it returns asyncer::ModelError(kSharedTabGroupUnexpectedCollaborationIdForGroup).
While the returned ModelError causes the database write batch to be discarded (so malicious changes are not persisted to disk), the in-memory model changes are NOT rolled back, leaving the UI spoofed. Moreover, the ModelError causes the SHARED_TAB_GROUP_DATA sync bridge to disconnect and drop pending updates. Because the malicious update is never acknowledged to the server, it remains pending. Upon every browser restart, the client will re-download the update and hit the identical error, resulting in a persistent Denial of Service (DoS) for all legitimate shared tab group synchronization.
(Note: This analysis is based on code review by an LLM agent and has not been verified with a live exploit.)
Potential Attack Scenario
- The attacker and the victim are both members of Collaboration A.
- The victim is also a member of Collaboration B, which contains a shared tab group with GUID
G. The attacker is not in B, but learns/guessesG. - The attacker sends a
SharedTabGroupDataSpecificssync update to Collaboration A's sync channel withguid=G,collaboration_id=A, and malicious metadata (e.g., spoofed title, color). - The victim's browser receives the update.
ProcessorEntityTracker::AddInternalcreates a new entity and mapsGto the new update'sclient_tag_hash, bypassing the duplicatestorage_keycheck in release builds. SharedTabGroupDataSyncBridge::AddGroupToLocalStorageprocesses the update. It merges the malicious metadata into the in-memory groupGbefore verifying the collaboration mismatch.- The victim's UI immediately reflects the spoofed metadata.
- The bridge then detects the mismatch and returns a
ModelError, tearing down the sync connection and permanently breaking shared tab group sync for the victim until the malicious entity is removed.
Suggested Fix
In components/saved_tab_groups/internal/shared_tab_group_data_sync_bridge.cc inside AddGroupToLocalStorage, the validation check for collaboration_id must be performed before calling model_wrapper_->MergeRemoteGroupMetadata(...).
// Update the existing group with remote data.
const SavedTabGroup* existing_group_for_check = model_wrapper_->GetGroup(group_guid);
if (existing_group_for_check->collaboration_id() != collaboration_metadata.collaboration_id()) {
// Shared tab groups should never change collaboration IDs.
return syncer::ModelError(
FROM_HERE, syncer::ModelError::Type::kSharedTabGroupUnexpectedCollaborationIdForGroup);
}
const SavedTabGroup* existing_group = model_wrapper_->MergeRemoteGroupMetadata(...);
Additionally, consider hardening ProcessorEntityTracker::AddInternal to explicitly reject or gracefully handle duplicate storage_key collisions in release builds, rather than relying solely on a DCHECK.
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 collaboration ID validation occurs after the in-memory model is mutated, and a release-build DCHECK is the only guard against duplicate storage keys.
Impact
The victim's tab group UI is spoofed, and shared tab group sync is permanently disabled for the victim until the malicious entity is removed.
What the attacker needed
Attacker and victim share a collaboration; victim belongs to another collaboration with a known group…; attacker can send sync updates
The fix
The collaboration ID check should be moved before the metadata merge, and duplicate storage key collisions should be handled explicitly in release builds.
How it was found
- The attacker and victim are both members of Collaboration A.
- The victim is also a member of Collaboration B, which contains a shared tab group with a known GUID.
- The attacker sends a sync update to Collaboration A with the victim's group GUID and malicious metadata.
- The victim's browser processes the update, merging the malicious metadata into the in-memory group before the collaboration ID check.
- The victim's UI reflects the spoofed metadata.
- The bridge detects the mismatch and returns a ModelError, breaking shared tab group sync.
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.
Shared tab groups let people collaborate on browser tabs. A check that should stop one group's data from being applied to another group happens too late, so an attacker who shares a different group with the victim can change how the victim's group looks. The same mistake also breaks the victim's tab group syncing until the bad update is removed.
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.