Skip to content
Access control Advisory Advanced CVE-2026-79088

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.cc
  • content/browser/file_system_access/file_system_access_handle_base.cc
  • content/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

  1. Initial Setup & Removal: An attacker origin obtains read/write access to a user-selected file (e.g., secret.txt). The attacker calls handle.remove().
    • Result: The file is deleted. NotifyEntryRemoved downgrades the read grant to DENIED (write stays GRANTED) and adds secret.txt to downgraded_read_paths.
  2. 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 the DENIED read grant.
  3. 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. NotifyEntryMoved migrates the DENIED read grant and GRANTED write grant to temp.txt.
    • Bug: NotifyEntryMoved fails to remove secret.txt from downgraded_read_paths.
    • Note: In debug builds, this step crashes due to DCHECK_EQ(old_path_it->second->GetActivePermissionStatus(), PermissionStatus::GRANTED); inside UpdateGrantPath. In release builds, the DCHECK compiles out, and the DENIED grant is successfully migrated.
  4. 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. NotifyEntryMoved migrates the grants back to secret.txt. At the end of the function, it calls MaybeRestoreReadPermission(origin, 'secret.txt').
  5. Bypass Achieved: MaybeRestoreReadPermission checks if secret.txt is in downgraded_read_paths. Because it was left stale in step 3, it is found. The function restores the read grant to GRANTED. The attacker can now read the new user-created file.

Suggested Fix

  1. In ChromeFileSystemAccessPermissionContext::NotifyEntryMoved, explicitly check and manage downgraded_read_paths. If old_path.path exists in the set, it should either be removed or migrated to new_path.path, depending on the intended product behavior for tracking restored files across moves.
  2. Re-evaluate the DCHECK_EQ in PermissionGrantImpl::UpdateGrantPath (line 1077). If DENIED grants are legitimately expected to be moved (or if they shouldn't be), the logic handling DENIED grants during moves should be made robust in production builds, rather than implicitly relying on the DCHECK compiling 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.

The original report as published on the Chromium issue tracker. Images and videos are our own copies; raw HTML is shown as text. View it on Chromium issue tracker.

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

  1. 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.
  2. 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.
  3. 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.
  4. Still within the same activation window, the attacker calls handle.move() to rename the file back to the original path.
  5. 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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.