Improper privilege management in FileSystem (CVE-2026-79276)
When a user resets their browser profile, active in-memory File System Access permission grants are not revoked, even though the persistent settings are cleared. An attacker-controlled page that still holds a file handle could therefore keep reading or writing a previously granted local file after the reset.
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: When performing a profile reset, in-memory File System Access (FSA) active permission grants are not revoked. While the persistent settings are deleted from HostContentSettingsMap, the active grants remain in-memory outside it, potentially allowing open tabs to retain unauthorized file read/write access.
Affected files:
chrome/browser/profile_resetter/profile_resetter.cc
Estimated timestamp from git blame: 2024-03-07
Root Cause Analysis
ChromeFileSystemAccessPermissionContext maintains active File System Access (FSA) read/write permission grants in an in-memory map (active_permissions_map_). This map resides entirely outside of HostContentSettingsMap (HCSM).
When a user triggers a profile reset via chrome://settings/reset, ProfileResetter::ResetContentSettings() is called to revert content settings to defaults:
// chrome/browser/profile_resetter/profile_resetter.cc
void ProfileResetter::ResetContentSettings() {
DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
HostContentSettingsMap* map =
HostContentSettingsMapFactory::GetForProfile(profile_);
for (const content_settings::WebsiteSettingsInfo* info :
*content_settings::WebsiteSettingsRegistry::GetInstance()) {
map->ClearSettingsForOneType(info->type());
}
...
}
While clearing HCSM removes the persistent permission registries (FILE_SYSTEM_ACCESS_CHOOSER_DATA and FILE_SYSTEM_ACCESS_EXTENDED_PERMISSION), ProfileResetter fails to clear the active in-memory grants. Because ChromeFileSystemAccessPermissionContext does not observe or receive automatic notifications of HCSM changes, the active grants inside active_permissions_map_ continue to remain active with their status set to PermissionStatus::GRANTED.
In contrast, the Clear Browsing Data flow explicitly handles this out-of-HCSM cleanup inside chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.cc:
if (remove_mask & constants::DATA_TYPE_CONTENT_SETTINGS) {
...
if (auto* permission_context =
FileSystemAccessPermissionContextFactory::GetForProfile(profile_)) {
permission_context->RevokeAllActiveGrants();
}
}
Potential Attack Scenario / Reproduction Steps
Note: The following are suggested/potential steps compiled from static code analysis, as our tooling environment does not support executing runtime tests or running code.
- A user visits an attacker-controlled page (e.g.,
https://attacker.example). - The page calls
window.showSaveFilePicker()and the user chooses a local file, granting active write permission. - The attacker page stores the file handle in JavaScript (keeping the Mojo connection and the corresponding browser-side
FileSystemAccessPermissionGrantImplref-counts alive). - In another tab, the user goes to
chrome://settings/resetand clicks "Reset settings". - After the reset completes, the attacker page (still open in the background/foreground) attempts to write to the file via the retained handle (e.g., calling
handle.createWritable()). - Since the browser-side active grant status was not revoked,
GetStatus()continues to returnPermissionStatus::GRANTED, bypassing the reset guard setting and silently executing the write operation.
Security Impact
This is a potential permission/privilege persistence issue. A user who performs a profile reset expects all active capabilities and permissions across all sites to be revoked. Surviving active FSA grants violate this expectation, potentially letting untrusted pages silently read or write to previously-granted local files or directories for the remainder of the tab's lifetime.
Suggested Remediation
Modify ProfileResetter::ResetContentSettings to explicitly retrieve the ChromeFileSystemAccessPermissionContext and call RevokeAllActiveGrants() when resetting content settings, matching the behavior of the Clear Browsing Data flow:
// In chrome/browser/profile_resetter/profile_resetter.cc
#include "chrome/browser/file_system_access/chrome_file_system_access_permission_context.h"
#include "chrome/browser/file_system_access/file_system_access_permission_context_factory.h"
void ProfileResetter::ResetContentSettings() {
...
if (auto* permission_context =
FileSystemAccessPermissionContextFactory::GetForProfile(profile_)) {
permission_context->RevokeAllActiveGrants();
}
MarkAsDone(CONTENT_SETTINGS);
}
Evaluated with Chrome root at commit: 5133b93d189b383c37805b1cf3a9d2dbfe8d7379
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 profile reset code only clears the persistent content settings store and never tells the in-memory File System Access permission context to revoke its active grants.
Impact
A page could retain read or write access to previously granted local files for the lifetime of the tab, contrary to the user's expectation after a reset; the report notes this is from static analysis and not runtime-tested.
What the attacker needed
Victim visits attacker page; victim grants file access via picker; victim performs a profile reset; attacker tab stays open
The fix
The reset code should fetch the File System Access permission context and revoke all active grants, as the clear browsing data flow already does.
How it was found
- A user opens an attacker-controlled page.
- The page asks to save a file and the user picks one, granting write permission.
- The page keeps the file handle alive in JavaScript.
- In another tab the user resets settings via the settings reset page.
- The still-open page tries to write through the retained handle.
- The write succeeds because the active grant still reports as granted.
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 pick a file for a website to save to, the browser remembers that permission. Resetting your browser settings is meant to wipe all such permissions. Here, the browser deletes the saved record but keeps the live permission in memory, so a page left open could still use the file.
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.