Incorrect authorization in FileSystem (CVE-2026-79088)
A logic error in Chrome's File System Access permission handling fails to clear a stale path from the downgraded read paths set when a file is renamed. An attacker who previously deleted a file can use a round-trip rename to restore read access to a new file the user creates at the same path.
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.
Overview: A logic error in ChromeFileSystemAccessPermissionContext fails to clear downgraded_read_paths when a file is renamed. An attacker who previously deleted a file can exploit this stale state by renaming a newly created file at the same path away and back again. This inadvertently triggers MaybeRestoreReadPermission, restoring the attacker's revoked read access to the user's new file.
Affected files:
chrome/browser/file_system_access/chrome_file_system_access_permission_context.cccontent/browser/file_system_access/file_system_access_handle_base.cccontent/browser/file_system_access/file_system_access_file_handle_impl.cc
Estimated timestamp from git blame: 2026-01-25
Overview
The kFileSystemAccessRevokeReadOnRemove feature protects user privacy by revoking an origin's read access (downgrading to DENIED) when the origin deletes a file via handle.remove(). However, the path is stored in downgraded_read_paths to allow restoration if the file is immediately recreated.
A logic flaw exists in how renames (move()) interact with this state. ChromeFileSystemAccessPermissionContext::NotifyEntryMoved updates the paths for permission grants but fails to clear the original path from the downgraded_read_paths set. An attacker can exploit this stale state using a "round-trip" rename to bypass the revocation and read a newly created file at the original path.
Note: The following are potential steps to trigger the vulnerability, as our setup does not currently have the ability to run code to produce a fully working PoC.
Potential Attacker Steps
- Initial Setup & Removal: An attacker origin obtains read/write access to a user-selected file (e.g.,
secret.txt). The attacker callshandle.remove().- Result: The file is deleted.
NotifyEntryRemoveddowngrades the read grant toDENIED(write staysGRANTED) and addssecret.txttodowngraded_read_paths.
- Result: The file is deleted.
- User Recreates File: The user independently creates or saves a new file at the exact same path (
secret.txt). The origin's handle now points to this new file, but cannot read it due to theDENIEDread grant. - First Rename (Move Away): Using a transient user activation (e.g., a single click), the attacker calls
handle.move('temp.txt').- Result: The file is renamed.
NotifyEntryMovedmigrates theDENIEDread grant andGRANTEDwrite grant totemp.txt. - Bug:
NotifyEntryMovedfails to removesecret.txtfromdowngraded_read_paths. - Note: In debug builds, this step crashes due to
DCHECK_EQ(old_path_it->second->GetActivePermissionStatus(), PermissionStatus::GRANTED);insideUpdateGrantPath. In release builds, theDCHECKcompiles out, and theDENIEDgrant is successfully migrated.
- Result: The file is renamed.
- Second Rename (Move Back): Still within the same transient user activation window, the attacker calls
handle.move('secret.txt').- Result: The file is renamed back.
NotifyEntryMovedmigrates the grants back tosecret.txt. At the end of the function, it callsMaybeRestoreReadPermission(origin, 'secret.txt').
- Result: The file is renamed back.
- Bypass Achieved:
MaybeRestoreReadPermissionchecks ifsecret.txtis indowngraded_read_paths. Because it was left stale in step 3, it is found. The function restores the read grant toGRANTED. The attacker can now read the new user-created file.
Suggested Fix
- In
ChromeFileSystemAccessPermissionContext::NotifyEntryMoved, explicitly check and managedowngraded_read_paths. Ifold_path.pathexists in the set, it should either be removed or migrated tonew_path.path, depending on the intended product behavior for tracking restored files across moves. - Re-evaluate the
DCHECK_EQinPermissionGrantImpl::UpdateGrantPath(line 1077). IfDENIEDgrants are legitimately expected to be moved (or if they shouldn't be), the logic handlingDENIEDgrants during moves should be made robust in production builds, rather than implicitly relying on theDCHECKcompiling out.
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 NotifyEntryMoved function updates permission grants for renamed paths but does not remove the old path from the downgraded_read_paths set, leaving stale state that later triggers an incorrect permission restore.
Impact
An attacker could read a newly created user file at a path it previously had access to, bypassing the intended read revocation; the report notes the steps are potential and not a fully working proof of concept.
What the attacker needed
Attacker origin has read/write access to a user file; attacker deletes the file via handle.remove(); user recreates a file at the same path; transient user activation for move()
The fix
The fix should explicitly check and manage downgraded_read_paths in NotifyEntryMoved, removing or migrating the old path as appropriate, and re-evaluate the DCHECK in UpdateGrantPath so DENIED grants are handled robustly in production builds.
How it was found
- The attacker origin obtains read/write access to a user-selected file and calls handle.remove(), which downgrades read to DENIED and adds the path to downgraded_read_paths.
- The user independently creates a new file at the same path; the origin's handle points to it but cannot read it due to the DENIED grant.
- Using a transient user activation, the attacker calls handle.move() to rename the file away; the DENIED read grant and GRANTED write grant migrate, but the original path remains in downgraded_read_paths.
- Still within the same activation window, the attacker calls handle.move() to rename the file back to the original path.
- NotifyEntryMoved calls MaybeRestoreReadPermission, which finds the stale path in downgraded_read_paths and restores the read grant to GRANTED, allowing the attacker to read the new file.
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 a website deletes a file you gave it access to, Chrome is supposed to stop it reading that file. The code keeps a note of the deleted path so it can restore access if the file is recreated. A bug means that note is not cleared when the file is renamed, so the website can trick Chrome into giving back read access to a new file you saved at the same place.
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.