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

Insufficient validation of untrusted input in Network (CVE-2026-17660)

The browser process trusted an OriginatingProcessId parameter sent by the sandboxed Network Service when opening files for upload, so a compromised Network Service could claim to be the browser and skip file access checks. This let it obtain read handles to arbitrary host files, potentially escaping the sandbox.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 4 months

Project Fortify, an experimental security project, has identified the following potential security issue.

Overview: A compromised Network Service can potentially bypass file access checks and read arbitrary host files. By forging the OriginatingProcessId parameter in the NetworkContextClient::OnFileUploadRequested Mojo IPC, the Network Service can trick the browser process into skipping ChildProcessSecurityPolicy validation, returning open handles for sensitive files.

Affected files:

  • content/browser/network_context_client_base_impl.cc
  • content/browser/storage_partition_impl.cc
  • services/network/public/mojom/originating_process_id.mojom

Estimated timestamp from git blame: 2026-02-25

Summary

A logical flaw in the handling of file upload requests allows a compromised Network Service to read arbitrary files, leading to a potential sandbox escape. The NetworkContextClient::OnFileUploadRequested Mojo interface allows the Network Service to request the browser process to open files for upload. This method accepts an OriginatingProcessId parameter. Because the browser process explicitly trusts this parameter without secondary validation, a compromised Network Service can claim to be the browser process, thereby bypassing ChildProcessSecurityPolicy checks and obtaining readable file handles to any file on the host OS.

Technical Details

The vulnerability exists within content/browser/network_context_client_base_impl.cc. When the Network Service sends an OnFileUploadRequested IPC, the request is eventually handled by HandleFileUploadRequest.

C++
void HandleFileUploadRequest(
    network::OriginatingProcessId process_id,
    // ...
    const std::vector<base::FilePath>& file_paths,
    /* ... */) {
  // ...
  ChildProcessSecurityPolicy* cpsp = ChildProcessSecurityPolicy::GetInstance();
  for (const auto& file_path : file_paths) {
    if (!process_id.is_browser() &&
        !cpsp->CanReadFile(ToChildProcessId(process_id.renderer_process_id()),
                           file_path)) {
      // Access Denied
      return;
    }
    // File is opened with base::File::FLAG_OPEN | base::File::FLAG_READ
    files.emplace_back(file_path, file_flags);
    // ...
  }
  // Returns the opened file handles to the Network Service over IPC
}

The process_id parameter is fully controlled by the Network Service. If the Network Service populates the union such that process_id.is_browser() returns true, the first half of the logical && condition evaluates to false. Due to C++ short-circuit evaluation, cpsp->CanReadFile(...) is never called.

As a result, the unsandboxed browser process opens the requested file paths with read privileges and returns the resulting base::File handles to the Network Service. On platforms like macOS, Windows, and Linux where the Network Service is sandboxed, this allows the attacker to silently escape the sandbox and exfiltrate sensitive files (e.g., ~/.ssh/id_rsa, Login Data, etc.).

(Note: These are suggested/potential steps based on source code analysis, as our tooling agent does not yet have the ability to run code or execute a live proof-of-concept).

Suggested Attacker Steps

  1. Exploit a vulnerability (e.g., memory corruption) in the Network Service to achieve arbitrary code execution within its sandboxed process.
  2. Obtain the existing pending_remote<NetworkContextClient> Mojo endpoint, which the browser passed to the Network Service upon initialization.
  3. Construct an OnFileUploadRequested Mojo message. Set the process_id parameter to OriginatingProcessId::browser().
  4. Populate the file_paths array with absolute paths to sensitive host files.
  5. Send the IPC to the browser process and wait for the callback.
  6. Retrieve the ReadOnlyFile handles from the IPC callback response and read the file contents directly into the Network Service.

Suggested Fix

The browser process must not trust the OriginatingProcessId provided by the Network Service to bypass critical security checks, as the Network Service itself is sandboxed and considered a lesser-trusted domain than the browser process.

To fix this:

  1. Do not allow the Network Service to request file opens on behalf of the browser. If the browser initiates a network request involving local files, the browser should open the files itself and pass the resulting file handles (or a DataPipe) down to the Network Service, rather than passing a file path and expecting the Network Service to ask the browser to open it later.
  2. Alternatively, if the architecture strictly requires this round-trip, securely validate that the request originated from the browser process. This could be done by associating requests with secure, unguessable tokens generated by the browser when the upload was initially dispatched, ensuring the Network Service cannot forge a browser-originated request.

Evaluated with Chrome root at commit: 876d480da1f794d87813cfa2e6ff4fcf9771e939


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

The browser process trusted the OriginatingProcessId supplied by the Network Service and used it to skip ChildProcessSecurityPolicy checks, instead of validating that the request genuinely came from the browser.

Impact

A compromised Network Service could read arbitrary host files and potentially escape its sandbox; the report notes the steps are suggested from source analysis and no live proof-of-concept was run.

What the attacker needed

Compromise of the Network Service; access to the Mojo endpoint

The fix

The browser should open files itself and pass handles or a data pipe to the Network Service, or validate that the request truly originated from the browser using unguessable tokens.

How it was found

  1. Compromise the Network Service to get code execution inside its sandbox.
  2. Obtain the Mojo endpoint the browser passed to the Network Service at startup.
  3. Send an OnFileUploadRequested message claiming the browser as the originating process.
  4. List absolute paths to sensitive host files in the request.
  5. Wait for the browser's callback and read the returned file handles.

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 sandbox is a security boundary that limits what a compromised process can do. Here, a less-trusted process (the Network Service) could ask a more-trusted process (the browser) to open any file, and the browser believed a label saying the request came from itself. That let an attacker who already controlled the Network Service read sensitive files outside its sandbox.

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.