Improper resource exposure in Privacy (CVE-2026-113328)
A Clear-Site-Data header sent by a third-party tracker in a partitioned context could clear the tracker's first-party media device salts, causing persistent device IDs to rotate. This could let the tracker link a user across partitions by observing the rotation.
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. 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: Processing a Clear-Site-Data: "cookies" header in a partitioned third-party context potentially clears first-party MediaDeviceSalts. This occurs because ChromeBrowsingDataRemoverDelegate lacks a PartitionedCookiesOnly check when clearing media device salts, resulting in domain-scoped deletions matching first-party storage keys. This could allow third-party trackers to establish a cross-partition tracking channel using rotated persistent device IDs.
Affected files:
chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cccontent/browser/browsing_data/browsing_data_filter_builder_impl.cc
Estimated timestamp from git blame: 2023-07-21
Potential Root Cause Analysis
In ChromeBrowsingDataRemoverDelegate::RemoveEmbedderData (chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc), the deletion of media device salts is performed as part of the DATA_TYPE_COOKIES clearing block. However, unlike other sibling cookie deletions, it lacks a check for PartitionedCookiesOnly():
// chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc
if (auto* media_device_salt_service =
MediaDeviceSaltServiceFactory::GetInstance()->GetForBrowserContext(
profile_)) {
content::StoragePartition::StorageKeyMatcherFunction storage_key_matcher;
if (!filter_builder->MatchesAllOriginsAndDomains()) {
storage_key_matcher = filter_builder->BuildStorageKeyFilter();
}
media_device_salt_service->DeleteSalts(
delete_begin_, delete_end_, std::move(storage_key_matcher),
CreateTaskCompletionClosure(TracingDataType::kMediaDeviceSalts));
}
When a partitioned/3PCD-blocked third-party frame (e.g., https://tracker.test) embedded on https://publisher.test returns a Clear-Site-Data: "cookies" header, the browser initiates data clearing with a BrowsingDataFilterBuilder configured with PartitionedCookiesOnly(true).
Sibling cookie-clearing calls are protected via if (!filter_builder->PartitionedCookiesOnly()). However, the DeleteSalts block is executed unconditionally. Since no explicit StorageKey is configured on the cookie filter builder, BuildStorageKeyFilter() (in content/browser/browsing_data/browsing_data_filter_builder_impl.cc) returns a matcher function based on MatchesStorageKey.
This matcher uses StorageKey::MatchesRegistrableDomainForTrustedStorageDeletion(domain), which evaluates to true for any StorageKey whose top_level_site_ has a matching registrable domain. This matches the first-party StorageKey(https://tracker.test, top=https://tracker.test), meaning the tracker's first-party media device salt is deleted instead of only partitioned entries.
Potential Steps to Reproduce
Note: The following are suggested/potential reproduction steps, as our testing environment does not currently support live code execution or browser automation.
- Navigate to
https://tracker.testas a first-party site, grant camera/microphone permissions, and runnavigator.mediaDevices.enumerateDevices()to obtain persistent device IDs. - Enable third-party-cookie blocking (Chrome's 3PCD setting).
- Navigate to
https://publisher.testwhich triggers a subresource request tohttps://tracker.test/px. - Configure
https://tracker.test/pxto respond withClear-Site-Data: "cookies". - Navigate back to
https://tracker.testas a first-party site, callenumerateDevices()again, and check if the device IDs have rotated. (If a first-party tab was open during step 4, check if it received an unexpecteddevicechangeevent viabase::SystemMonitor).
Suggested Fix
Prevent clearing unpartitioned media device salts during partitioned cookie-clearing operations by wrapping the service call in a !filter_builder->PartitionedCookiesOnly() check in chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc:
if (!filter_builder->PartitionedCookiesOnly()) {
if (auto* media_device_salt_service =
MediaDeviceSaltServiceFactory::GetInstance()->GetForBrowserContext(
profile_)) {
content::StoragePartition::StorageKeyMatcherFunction storage_key_matcher;
if (!filter_builder->MatchesAllOriginsAndDomains()) {
storage_key_matcher = filter_builder->BuildStorageKeyFilter();
}
media_device_salt_service->DeleteSalts(
delete_begin_, delete_end_, std::move(storage_key_matcher),
CreateTaskCompletionClosure(TracingDataType::kMediaDeviceSalts));
}
}
Evaluated with Chrome root at commit: fb72408a8493c46bc75fae1c70d03daec96b3040
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
The media device salt deletion in ChromeBrowsingDataRemoverDelegate is not guarded by a PartitionedCookiesOnly check, so a partitioned cookie-clearing request also deletes unpartitioned salts for the same registrable domain.
What the attacker needed
Chrome with third-party cookie blocking enabled; User has granted camera/microphone permissions; Tracker site embedded as a third party; Tracker controls response headers
The fix
The media device salt deletion should be skipped when the filter builder is set to partitioned cookies only, by wrapping the service call in a PartitionedCookiesOnly check.
How it was found
- Visit the tracker site as a first party, grant camera/microphone permissions, and list devices to get persistent IDs.
- Turn on third-party cookie blocking.
- Visit a publisher page that loads a subresource from the tracker.
- Make that subresource respond with a Clear-Site-Data header for cookies.
- Return to the tracker as a first party and list devices again to see if the IDs changed.
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.
When you use a camera or microphone, the browser gives each site a random ID for each device so sites can remember your preferences without knowing the real hardware. These IDs are stored as 'salts'. The report says a website embedded on another page could send a special instruction that accidentally deletes the first-party IDs for its own domain, making them change. If a tracker can see those IDs change, it might use that as a signal to recognise you across different sites.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.