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

Insufficient policy enforcement in File System Access (CVE-2026-12460)

A missing security check in Chromium's File System Access API allows a compromised PDF renderer process to access the Origin-Private File System (OPFS) of the origin serving the PDF. An attacker who achieves code execution in the PDF renderer could read, write, or delete files in that origin's OPFS.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 20 days

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: A potential vulnerability exists where a compromised PDF renderer process can bypass storage restrictions and access the serving origin's Origin-Private File System (OPFS). This is caused by a missing ChildProcessSecurityPolicy check inside FileSystemAccessManagerImpl::GetSandboxedFileSystem. A compromised PDF process could exploit this to read, write, or delete files in the origin's OPFS.

Affected files:

  • content/browser/file_system_access/file_system_access_manager_impl.cc

Estimated timestamp from git blame: 2024-06-26

Description

Under Chromium's Site Isolation security architecture, PDF renderers (run in processes with ProcessLock.is_pdf() == true) are isolated from accessing persistent storage, cookies, and other host origin data. This security boundary is designed to limit the impact of a potential compromise of the highly exposed PDF engine.

While the legacy FileSystem API (FileSystemManagerImpl::Open) correctly enforces this isolation by verifying access through ChildProcessSecurityPolicyImpl::Handle::CanAccessDataForOrigin, the modern FileSystemAccess API (FileSystemAccessManagerImpl::GetSandboxedFileSystem) does not perform any equivalent validation. As a result, a compromised PDF renderer can potentially obtain a handle to the serving origin's Origin-Private File System (OPFS) and perform arbitrary read/write/delete operations.

Root Cause Analysis

In content/browser/file_system_access/file_system_access_manager_impl.cc, the GetSandboxedFileSystem method is implemented as follows:

C++
void FileSystemAccessManagerImpl::GetSandboxedFileSystem(
    const BindingContext& binding_context,
    const std::optional<storage::BucketLocator>& bucket,
    const std::vector<std::string>& directory_path_components,
    GetSandboxedFileSystemCallback callback) {
  DCHECK_CALLED_ON_VALID_SEQUENCE(sequence_checker_);
  ...
  GetIOThreadTaskRunner({})->PostTask(
      FROM_HERE, base::BindOnce(&FileSystemContext::OpenFileSystem, context(),
                                binding_context.storage_key, bucket,
                                storage::kFileSystemTypeTemporary,
                                storage::OPEN_FILE_SYSTEM_CREATE_IF_NONEXISTENT,
                                std::move(response_callback)));
}

This method processes requests directly and opens the sandboxed filesystem without invoking ChildProcessSecurityPolicy validations on the requesting process ID (binding_context.process_id()). When the directory handle is successfully opened, GetSharedHandleStateForSandboxedPath() automatically returns a SharedHandleState with permissions hardcoded to PermissionStatus::GRANTED (lines 1974-1976).

Potential Attack / Trigger Steps

  1. A user loads a PDF document from a target origin (e.g., https://victim.example/document.pdf). The browser process isolates this document in a PDF renderer process locked to https://victim.example.
  2. An attacker exploits a potential vulnerability within the sandboxed PDF renderer process to achieve code execution.
  3. The compromised renderer requests a handle to the host origin's OPFS through one of two potential paths:
    • Path A (Direct Binding): Binds the blink.mojom.FileSystemAccessManager interface and invokes GetSandboxedFileSystem().
    • Path B (Storage Buckets): Binds blink.mojom.BucketManagerHost and calls BucketHost::GetDirectory(), which routes to RenderFrameHostImpl::GetSandboxedFileSystemForBucket and directly calls the private overload of FileSystemAccessManagerImpl::GetSandboxedFileSystem.
  4. The browser opens the sandboxed file system for https://victim.example and returns a directory handle with always-granted permissions.
  5. The attacker can now read, write, create, or delete any files/databases inside the target origin's OPFS.

Note: The steps above describe a potential exploit scenario. Our static analysis tooling does not currently have the capability to run code or dynamically verify this vulnerability with a working proof of concept.

Suggested Fix

To resolve this issue, add a validation step in FileSystemAccessManagerImpl::GetSandboxedFileSystem to ensure that the calling process is authorized to access storage for the requested origin using ChildProcessSecurityPolicyImpl::CanAccessDataForOrigin:

C++
if (!ChildProcessSecurityPolicy::GetInstance()->CanAccessDataForOrigin(
        binding_context.process_id(), binding_context.storage_key.origin())) {
  std::move(callback).Run(
      file_system_access_error::FromFileError(base::File::FILE_ERROR_SECURITY),
      mojo::NullRemote());
  return;
}

Evaluated with Chrome root at commit: b1520ef4a76878853a31f0943b565e42060edec8


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.

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 GetSandboxedFileSystem method in FileSystemAccessManagerImpl does not call ChildProcessSecurityPolicy to verify that the requesting process is allowed to access data for the origin, unlike the legacy FileSystem API.

Impact

A compromised PDF renderer could read, write, or delete files in the serving origin's OPFS, but the report notes this is a potential scenario and no working proof of concept was demonstrated.

What the attacker needed

Victim opens a PDF from a target origin; attacker compromises the PDF renderer process

The fix

The fix should add a ChildProcessSecurityPolicyImpl::CanAccessDataForOrigin check in GetSandboxedFileSystem to reject requests from processes not authorised for the origin.

How it was found

  1. A user loads a PDF from a target origin, and the browser isolates it in a PDF renderer process locked to that origin.
  2. An attacker exploits a vulnerability in the sandboxed PDF renderer to achieve code execution.
  3. The compromised renderer requests a handle to the host origin's OPFS via a direct binding or through the Storage Buckets API.
  4. The browser opens the sandboxed file system for the origin and returns a directory handle with always-granted permissions.
  5. The attacker can now read, write, create, or delete files in the target origin's OPFS.

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 open a PDF in Chrome, it runs in a separate, locked-down process so that if the PDF viewer is hacked, the attacker cannot easily reach your data for the website that served the PDF. This report says one newer file-storage feature forgot to check that the PDF process is allowed to touch that website's storage. If the PDF process is compromised, the attacker could then read or change files that the website stored in the browser.

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.