Insufficient validation of untrusted input in FileSystem (CVE-2026-7964)
A compromised renderer could send a malformed opaque origin to the FileSystemManager Open call, which caused the security check to take an early-allow path and skip the PDF and sandboxed process restrictions. This let a restricted process such as a PDF renderer gain read and write access to the filesystem of the origin hosting it.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 39 days
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A compromised renderer can bypass ChildProcessSecurityPolicy restrictions by supplying a malformed opaque origin to FileSystemManager::Open. This hits an early-return path that skips is_pdf() and is_sandboxed() checks, granting the restricted process full read/write access to the hosting origin's filesystem.
Affected files:
content/browser/file_system/file_system_manager_impl.cccontent/browser/child_process_security_policy_impl.ccthird_party/blink/public/mojom/filesystem/file_system.mojom
Estimated timestamp from git blame: 2026-02-03
Description
There is a potential defense-in-depth bypass in FileSystemManagerImpl::Open() that allows heavily restricted renderers (such as those hosting PDFs or sandboxed iframes) to access the FileSystem API for their hosting origin.
The vulnerability stems from inconsistent origin validation. FileSystemManagerImpl::Open() performs a security check (CanAccessDataForOrigin) using a renderer-supplied url::Origin parameter, but subsequently calls OpenFileSystem() using the browser-authoritative StorageKey securely captured from the Mojo receiver context.
An attacker in a compromised renderer can exploit this by sending an Open() IPC with a specially crafted, malformed opaque origin. Specifically, they can construct an opaque origin with an empty precursor tuple (i.e., scheme="", host="", port=0) but a valid nonce_if_opaque.
When ChildProcessSecurityPolicyImpl::CanAccessOrigin evaluates this decoy origin, the following occurs:
- The origin is parsed as opaque.
origin.GetTupleOrPrecursorTupleIfOpaque()returns the empty, invalid tuple.- The code hits an early-allow path (
content/browser/child_process_security_policy_impl.cc, line 2215) designed for opaque origins without precursors (e.g., browser-initiated data: URLs). - This path only verifies that the child process has a valid
SecurityState(which it does) and returnstrue.
Crucially, taking this early-return path bypasses the subsequent call to CanAccessMaybeOpaqueOrigin, skipping the rigorous actual_process_lock.is_sandboxed() and actual_process_lock.is_pdf() checks entirely.
Once the Open() check is bypassed, ContinueOpen proceeds to open the filesystem using the browser-authoritative StorageKey (the victim's actual origin). Subsequent FileSystem operations (like Read/Write/Create) enforce permissions via CanCommitURL, which passes AccessType::kCanCommitNewOrigin to the policy checks. Because PDF processes and sandboxed frames are explicitly allowed to commit new origins (even if they are restricted from accessing their data), these subsequent checks pass, granting the attacker full access to the victim origin's sandboxed filesystem.
Impact
This flaw allows process types that are architecturally intended to have zero storage access (like PDF renderers) to access the FileSystem API for the origin hosting them. While the binding's StorageKey prevents cross-origin data access, this is a significant bypass of the restrictions placed on sandboxed and PDF processes.
Potential Steps to Reproduce
(Note: These are suggested steps based on code analysis; a working PoC has not been executed.)
- Compromise a renderer running in a process where
ProcessLock.is_sandboxed()orProcessLock.is_pdf()is true. - Obtain a
FileSystemManagerMojo binding via the frame'sBrowserInterfaceBroker. - Craft an
Open()IPC call with an opaque origin having an invalid precursor ({scheme:"", host:"", port:0, nonce_if_opaque:<any UnguessableToken>}). - The security check in
ChildProcessSecurityPolicyImplis bypassed due to the invalid precursor, andFileSystemManageropens the filesystem for the binding's actualStorageKey. - Issue subsequent
Create,Write, orReadDirectoryIPCs using the returned root URL. These will succeed becauseCanCommitURLallows sandboxed/PDF processes to commit new origins.
Suggested Fix
The vestigial origin parameter should be removed from the FileSystemManager::Open Mojo interface entirely. The security check in FileSystemManagerImpl::Open should instead directly use the origin from the securely captured StorageKey (receivers_.current_context().origin()), ensuring validation is always performed against the browser-authoritative origin. (There is already an existing TODO in third_party/blink/public/mojom/filesystem/file_system.mojom tracking the removal of this parameter).
Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0
Results from 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.
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 Open call validated a renderer-supplied origin instead of the browser-authoritative StorageKey, and a malformed opaque origin hit an early-allow path that skipped the PDF and sandboxed process checks.
Impact
A process type meant to have no storage access, such as a PDF renderer or sandboxed frame, could read and write the hosting origin's filesystem, though the StorageKey still prevented cross-origin access.
What the attacker needed
Compromised renderer; process is sandboxed or a PDF renderer; ability to send Mojo IPC
The fix
The origin parameter should be removed from the Open interface and the check should use the origin from the securely captured StorageKey instead.
How it was found
- Compromise a renderer whose process lock marks it as sandboxed or as a PDF process.
- Obtain a FileSystemManager Mojo binding through the frame's BrowserInterfaceBroker.
- Send an Open call with an opaque origin that has an empty precursor tuple and a valid nonce.
- The policy check is bypassed and the filesystem is opened for the binding's real StorageKey.
- Use the returned root URL to send Create, Write or ReadDirectory calls, which pass because those processes may commit new origins.
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 browser keeps different websites apart and stops dangerous parts, like the code that displays a PDF, from reading or writing files that belong to the website showing it. Here the check that enforces this could be fooled by a specially formed origin value, so a restricted part of the browser could reach the website's files. The report is based on reading the code; the author says no working proof was run.
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.