Incorrect authorization in FileSystem (CVE-2026-87505)
A compromised PDF renderer process could bypass Site Isolation data restrictions and access, modify, or delete files in its serving origin's sandboxed HTML5 FileSystem. This is because sibling methods of FileSystemManagerImpl use CanCommitURL instead of CanAccessDataForOrigin for authorization.
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: A compromised PDF renderer process can potentially bypass Site Isolation data restrictions and read, write, create, or delete files in its serving origin's sandboxed HTML5 FileSystem. While FileSystemManagerImpl::Open() correctly validates access using CanAccessDataForOrigin, its sibling methods utilize CanCommitURL, which inadvertently permits PDF processes to access partitioned storage. This allows a compromised PDF renderer to access same-origin temporary or persistent storage without calling Open().
Affected files:
content/browser/child_process_security_policy_impl.cccontent/browser/file_system/file_system_manager_impl.cc
Estimated timestamp from git blame: 2024-06-26
Description
A potential security boundary bypass exists in the blink.mojom.FileSystemManager IPC validation layer where a compromised PDF renderer process can access, modify, or delete files within the HTML5 sandboxed FileSystem (Temporary and Persistent storage) of its serving origin.
Normally, PDF renderer processes are isolated from accessing storage, passwords, or other sensitive user data of their hosting origins. This restriction is enforced by ChildProcessSecurityPolicyImpl::IsAccessAllowedForPdfProcess which returns false for AccessType::kCanAccessDataForCommittedOrigin checks.
While FileSystemManagerImpl::Open() correctly validates access via CanAccessDataForOrigin (and thus properly blocks PDF processes), its 13 sibling methods (including Create, Write, Remove, Move, Copy, etc.) bypass Open() and perform authorization checks that resolve to HasPermissionsForFileSystemFile. This function gates access on CanCommitURL instead of CanAccessDataForOrigin. Because PDF processes must be allowed to commit hosting origins for normal frame behavior, CanCommitURL permits the check, resulting in a full storage policy bypass.
Potential Attack Path
Because our analysis is performed statically without a live execution environment, the following steps represent a potential attack scenario:
- A user opens a webpage that hosts or embeds an attacker-controlled PDF served from
https://example.com/document.pdf. - The browser allocates a dedicated PDF renderer process for the PDF frame, locking the process to
https://example.comwith PDF-specific restrictions enabled. - The attacker exploits a vulnerability (e.g., in PDFium or V8) inside the PDF renderer to achieve remote code execution (RCE).
- The compromised renderer binds the
blink.mojom.FileSystemManagerinterface viaBrowserInterfaceBroker. - Instead of calling
Open(), the compromised renderer directly invokes any of the interface's sibling methods, such asCreate(path="filesystem:https://example.com/temporary/malicious_file", ...)orWrite(...). - On the browser side,
FileSystemManagerImpl::Create()parses the URL and invokesChildProcessSecurityPolicyImpl::CanCreateFileSystemFile. HasPermissionsForFileSystemFileperforms aCanCommitURLcheck on the origin. Because the PDF process is authorized to commithttps://example.comURLs (AccessType::kCanCommitNewOriginevaluates totrue), the check succeeds.- Since temporary and persistent filesystem types possess
FILE_PERMISSION_SANDBOXpermissions, the request is unconditionally approved, allowing the compromised PDF renderer full read/write access tohttps://example.com's sandboxed filesystem.
Code References
In content/browser/child_process_security_policy_impl.cc (lines 1965–1971):
// If |filesystem_url.origin()| is not committable in this process, then this
// page should not be able to place content in that origin via the filesystem
// API either.
// TODO(lukasza): Audit whether CanAccessDataForOrigin can be used directly
// here.
if (!CanCommitURL(child_id.GetUnsafeValue(),
filesystem_url.origin().GetURL())) {
return false;
}
In content/browser/child_process_security_policy_impl.cc (lines 2284–2288):
switch (access_type) {
case AccessType::kCanCommitNewOrigin:
case AccessType::kHostsOrigin:
return true;
case AccessType::kCanAccessDataForCommittedOrigin:
return false;
}
Suggested Fix
Update ChildProcessSecurityPolicyImpl::HasPermissionsForFileSystemFile to use CanAccessDataForOrigin rather than CanCommitURL to perform the security check, as suggested by the in-tree TODO comment. This ensures that PDF processes (and other processes with data-access restrictions) are correctly prevented from accessing storage via the file system sibling IPC methods.
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 authorization check in HasPermissionsForFileSystemFile uses CanCommitURL instead of CanAccessDataForOrigin, allowing PDF processes that can commit the origin to also access its storage.
What the attacker needed
Attacker-controlled PDF; victim opens the PDF; compromise of PDF renderer (e.g., RCE)
The fix
The fix should update HasPermissionsForFileSystemFile to use CanAccessDataForOrigin instead of CanCommitURL.
How it was found
- A user opens a webpage that hosts or embeds an attacker-controlled PDF.
- The browser allocates a dedicated PDF renderer process for the PDF frame, locking it to the serving origin.
- The attacker exploits a vulnerability inside the PDF renderer to achieve remote code execution.
- The compromised renderer binds the FileSystemManager interface via BrowserInterfaceBroker.
- Instead of calling Open(), the compromised renderer directly invokes sibling methods such as Create or Write.
- The browser-side check uses CanCommitURL, which succeeds for the PDF process, granting access to the origin's sandboxed filesystem.
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.
A PDF viewer in the browser runs in a separate, restricted process to keep it from touching your data. This report found that some file-system operations in that process check the wrong permission, so a hacked PDF viewer could read or change files stored for the website that served the PDF.
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.