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

Confused deputy in BackgroundFetch (CVE-2026-87453)

A compromised renderer can initiate Background Fetch requests for file:// URLs because the browser process fails to validate the URL scheme and loses the renderer's process ID during handoff to the download subsystem. This allows the browser to act as a confused deputy, potentially leaking NTLM credentials via UNC paths on Windows or acting as a local file existence oracle.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 6 months

Flapjack (go/flapjack), an LLM-powered static analysis tool, has identified the following potential security issue.

Overview: A compromised renderer can initiate Background Fetch requests for file:// URLs due to missing scheme validation in the browser process. These requests bypass download security checks because the requesting process ID is lost during component handoff, allowing the browser to act as a confused deputy. This can potentially be abused to leak NTLM credentials via UNC paths on Windows or act as a cross-platform local file existence oracle.

Affected files:

  • content/browser/background_fetch/background_fetch_service_impl.cc
  • content/browser/background_fetch/background_fetch_context.cc
  • content/browser/background_fetch/background_fetch_data_manager.cc
  • components/download/content/internal/download_driver_impl.cc
  • content/browser/download/download_manager_impl.cc

Estimated timestamp from git blame: 2021-08-03

Summary

A compromised renderer process can bypass Blink-side restrictions and directly send a Mojo message to the browser process to initiate a Background Fetch for file:// URLs. Due to missing scheme validation in BackgroundFetchServiceImpl::ValidateRequests and a loss of the renderer's process ID during the handoff to the Download subsystem, the browser process skips standard security checks (DownloadRequestUtils::IsURLSafe). This allows the browser to act as a confused deputy and fetch local files or UNC paths.

While the contents of the local files are not directly exposed to the Service Worker due to CORS filtering (BackgroundFetchCrossOriginFilter), the attacker can distinguish between a file existing (CORS error) and not existing (network error). Furthermore, on Windows, fetching a UNC path will cause the browser process to automatically attempt SMB authentication, leaking the user's NTLM credentials.

Technical Details

  1. Missing Scheme Validation: When a renderer initiates a fetch via Mojo, BackgroundFetchServiceImpl::Fetch calls ValidateRequests (content/browser/background_fetch/background_fetch_service_impl.cc). This function currently only checks if the requests vector is empty. It fails to validate that the URLs use a safe scheme (e.g., HTTP/HTTPS).

  2. Loss of Process Attribution: The request is passed through BackgroundFetchDelegateBase to the BackgroundDownloadService. When the download is ready, DownloadDriverImpl::Start (components/download/content/internal/download_driver_impl.cc) instantiates DownloadUrlParameters using a constructor that defaults render_process_host_id and render_frame_host_routing_id to -1.

  3. Security Check Bypass: In DownloadManagerImpl::BeginDownloadInternal (content/browser/download/download_manager_impl.cc), the system attempts to verify if the renderer is allowed to access the URL:

    C++
    if (params->render_process_host_id() >= 0 &&
        !DownloadRequestUtils::IsURLSafe(params->render_process_host_id(), params->url())) { ... }
    

    Because the ID was defaulted to -1, this check is completely bypassed.

  4. Privileged File Fetching: The download proceeds to BeginResourceDownloadOnChecksComplete, which sees the file:// scheme and creates a FileURLLoaderFactory with the full permissions of the browser context.

  5. CORS Bypass at the Loader Level: The download subsystem (InProgressDownloadManager) hardcodes the network request mode to network::mojom::RequestMode::kNavigate. Because of this, CalculateResponseType in services/network/public/cpp/cors/cors.cc returns kBasic. This prevents FileURLLoaderFactory::CreateLoaderAndStartInternal from rejecting the cross-origin file:// request upfront.

  6. The Oracle/Leak:

    • NTLM Leak: If a Windows UNC path is provided (file:////attacker.com/share/test), net::FileURLToFilePath parses it as \\attacker.com\share\test, and the OS attempts NTLM authentication with the remote server.
    • Existence Oracle: The FileURLLoader attempts to read the file. If it succeeds, the fetch completes, but BackgroundFetchCrossOriginFilter::CanPopulateBody() blocks the response body from the Service Worker cache due to missing CORS headers, resulting in a FETCH_ERROR state. If the file does not exist, the loader fails immediately with ERR_FILE_NOT_FOUND, resulting in a BAD_STATUS state. The attacker can observe these differing states via the Service Worker Background Fetch events.

Potential Attacker Steps (Suggested)

Note: These are potential steps to trigger the vulnerability, as Flapjack LLM agents do not yet have the ability to run code to provide a working PoC.

  1. Gain arbitrary code execution in a sandboxed renderer process (e.g., via a V8 or Blink memory corruption bug).
  2. Establish a direct Mojo connection to blink::mojom::BackgroundFetchService.
  3. Craft a FetchAPIRequestPtr containing a target file:// URL (e.g., a local file to probe for existence, or a remote UNC path to steal NTLM hashes).
  4. Call BackgroundFetchService::Fetch with the crafted request.
  5. Register a Service Worker to listen for backgroundfetchsuccess and backgroundfetchfail events.
  6. Observe the error reason in the event to oracle file existence or capture the NTLM hash on a controlled remote SMB server.

Suggested Fix

  1. In BackgroundFetchServiceImpl::ValidateRequests, add strict validation to ensure all requested URLs use safe schemes (e.g., url.SchemeIsHTTPOrHTTPS()).
  2. Plumb the render_process_host_id and render_frame_host_routing_id through the BackgroundDownloadService stack so that DownloadDriverImpl::Start can populate DownloadUrlParameters accurately, ensuring DownloadRequestUtils::IsURLSafe is correctly evaluated for all downloads.

Evaluated with Chrome root at commit: 9760e6c70cd33a320713361f17c6dcca85648c0f


Results from Flapjack so far have been promising, but it can be wrong in its deductions. At this time, it does not produce proof of concepts or fuzzer tests. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve Flapjack’s 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 missing scheme validation in BackgroundFetchServiceImpl::ValidateRequests and loss of the renderer's process ID during handoff to the download subsystem, causing security checks to be skipped.

Impact

This could allow an attacker to leak NTLM credentials via UNC paths on Windows or act as a cross-platform local file existence oracle, though file contents are not directly exposed due to CORS filtering.

What the attacker needed

Compromised renderer process; ability to send Mojo messages; Service Worker registration

The fix

It should be fixed by adding strict scheme validation in BackgroundFetchServiceImpl::ValidateRequests and plumbing the renderer process ID through the download stack so that DownloadRequestUtils::IsURLSafe is correctly evaluated.

How it was found

  1. Gain arbitrary code execution in a sandboxed renderer process.
  2. Establish a direct Mojo connection to blink::mojom::BackgroundFetchService.
  3. Craft a FetchAPIRequestPtr containing a target file:// URL.
  4. Call BackgroundFetchService::Fetch with the crafted request.
  5. Register a Service Worker to listen for backgroundfetchsuccess and backgroundfetchfail events.
  6. Observe the error reason in the event to oracle file existence or capture the NTLM hash on a controlled remote SMB server.

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 web browser has multiple parts: a renderer that runs web pages and a browser process that has more privileges. Normally, the renderer cannot ask the browser to read local files. Here, a bug lets a compromised renderer trick the browser into fetching local files or network paths, which could leak login credentials or reveal whether files exist.

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.