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

Inappropriate implementation in File System Access (CVE-2026-11258)

A permission-tracking set of downgraded read paths was not cleared when a user revoked an origin's File System Access permissions, so a stale entry could later restore read access. An attacker could then read a sensitive file placed at the same path after the user had revoked access, by obtaining a write-only grant and closing a writer.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 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 without the security team.

Overview: ChromeFileSystemAccessPermissionContext fails to clear the downgraded_read_paths set when a user explicitly revokes File System Access permissions. An attacker can exploit this stale state to silently escalate a subsequent write-only permission prompt into full read-write access, bypassing the user's revocation intent.

Affected files:

  • chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc

Estimated timestamp from git blame: 2024-08-14

The 'Revoke Read on Remove' feature in the File System Access API downgrades a file's read permission to ASK when an origin calls FileSystemHandle.remove(). To facilitate automatic restoration of access if the file is recreated by the origin, the API tracks these paths in OriginState::downgraded_read_paths.

However, there is a state leak in ChromeFileSystemAccessPermissionContext::RevokeActiveGrants. When a user explicitly revokes an origin's permissions via the browser UI, the function correctly iterates over read_grants and write_grants to set their status to ASK, but it entirely fails to clear the downgraded_read_paths set.

Because this set persists until the profile is destroyed, an attacker can use a stale entry to trick the browser into silently restoring read access. If the attacker obtains write access to the path (e.g., via a write-only permission prompt), creating a swap file and closing the writer triggers MaybeRestoreReadPermission, which sees the stale entry and elevates the read grant from ASK to GRANTED without user consent.

Potential Attack Scenario

  1. An attacker website tricks a user into granting read and write access to a file (e.g., /tmp/data.txt) and stores the FileSystemHandle in IndexedDB.
  2. The attacker calls await handle.remove(). This deletes the file, downgrades the read grant to ASK, and inserts the path into the downgraded_read_paths set.
  3. The user explicitly revokes the origin's File System Access permissions via the Chrome UI. This sets the write grant to ASK, but the downgraded_read_paths set is not cleared.
  4. A sensitive file is subsequently created by the user or OS at the exact same location (/tmp/data.txt).
  5. The attacker reloads the page and retrieves the FileSystemHandle from IndexedDB.
  6. The attacker calls const w = await handle.createWritable({keepExistingData: true}). Because the write grant was revoked, the user is shown a prompt requesting WRITE-ONLY access. Believing the site only wants to save data, the user approves.
  7. The attacker immediately calls await w.close(). The backend creates a swap file via a browser-privileged copy (which requires no origin read access check) and replaces the original file.
  8. The file replacement triggers MaybeNotifyEntryModified, which calls MaybeRestoreReadPermission.
  9. MaybeRestoreReadPermission finds the path in the stale downgraded_read_paths set and erroneously elevates the origin's read permission from ASK to GRANTED.
  10. The attacker can now read the sensitive file content using await (await handle.getFile()).text(), fully bypassing the user's previous revocation.

(Note: Our tooling agent cannot run code, so these are potential steps derived from static code analysis.)

Suggested Fix

Update ChromeFileSystemAccessPermissionContext::RevokeActiveGrants to clear the downgraded_read_paths set when revoking permissions.

C++
// In chrome/browser/file_system_access/chrome_file_system_access_permission_context.cc
bool ChromeFileSystemAccessPermissionContext::RevokeActiveGrants(
    const url::Origin& origin,
    base::FilePath file_path) {
  // ... existing code ...
  if (origin_it != active_permissions_map_.end()) {
    OriginState& origin_state = origin_it->second;
    // Clear the downgraded paths to prevent unauthorized read restoration
    if (file_path.empty()) {
      origin_state.downgraded_read_paths.clear();
    } else {
      origin_state.downgraded_read_paths.erase(file_path);
    }
    // ... rest of the method ...
  }
}

Evaluated with Chrome root at commit: ff3d2b74fa39431785bd60e51463b08fcc71ee33


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. And please feel free to reach out to me directly if you have concerns or feedback on the project.

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 revocation routine resets read and write grants to ASK but never clears the per-origin set of downgraded read paths, leaving stale state that the restore logic trusts.

Impact

An attacker could read a sensitive file that the user believed they had revoked access to, though the report notes the steps come from static analysis and were not executed.

What the attacker needed

User grants read/write to a file; user later revokes permissions; file recreated at same path; user approves write-only prompt

The fix

The revocation routine should be changed to clear the downgraded read paths set, either wholly or for the specific path, when permissions are revoked.

How it was found

  1. The attacker site gets the user to grant read and write access to a file and keeps the handle in IndexedDB.
  2. The attacker calls remove() on the handle, which downgrades the read grant and records the path as downgraded.
  3. The user revokes the origin's permissions in the Chrome UI, but the downgraded path set survives.
  4. A sensitive file appears at the same path, and the attacker reloads and retrieves the stored handle.
  5. The attacker opens a writable with keepExistingData, the user approves a write-only prompt, and the attacker closes it.
  6. Closing triggers the restore logic, which finds the stale entry and grants read access, letting the attacker read the 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.

Chrome's File System Access feature lets a website ask to read or write files you pick. When you later take that permission away, Chrome is supposed to forget any earlier bookkeeping about that file, but here it kept a leftover note. That leftover note could make Chrome quietly give the site read access again, even though you had said no.

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.