Skip to content
Path traversal Advisory Advanced CVE-2026-106230

Incorrect reference resolution in Offline (CVE-2026-106230)

A validation gap in Chrome for Android's offline pages handling lets a compromised renderer request an arbitrary file through a crafted offline header, and the file is streamed to the renderer before the digest check fails. The report states this is gated by a navigation throttle bypass and is based on static code tracing, not a running exploit.

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. 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 browser-process arbitrary file read vulnerability exists in Chrome for Android's offline pages handling. Gated by a navigation throttle bypass, a compromised renderer could leverage input validation gaps to stream arbitrary files before cryptographic digest validation occurs.

Affected files:

  • chrome/browser/offline_pages/offline_page_request_handler.cc
  • chrome/browser/offline_pages/offline_page_url_loader.cc

Estimated timestamp from git blame: 2018-03-07

Description

A potential security vulnerability in Chrome's offline pages framework (chrome/browser/offline_pages/) can allow a compromised renderer process to read arbitrary files from the browser process on Android.

When a navigation request is processed with the custom X-Chrome-offline request header containing a file_url_intent reason, OfflinePageRequestHandler attempts to resolve and open the designated intent_url. Due to a validation bypass when handling archives stored in internal directories, combined with post-hoc cryptographic digest verification, the requested arbitrary file is fully streamed to the renderer via Mojo data pipes before any verification failure terminates the connection.

Note: Our security analysis is based on static code tracing; our tooling does not currently support running dynamic exploits, so these findings represent a potential vulnerability.


Vulnerability Mechanism

1. The Vulnerable Sink (OnTrustedOfflinePageFound)

In chrome/browser/offline_pages/offline_page_request_handler.cc, when processing a file URL intent, OnTrustedOfflinePageFound extracts and opens the path specified in the request header's intent_url parameter without directory-containment verification or path-prefix restrictions:

C++
base::FilePath file_path;
if (IsProcessingFileUrlIntent()) {
  bool valid = net::FileURLToFilePath(offline_header_.intent_url, &file_path);
  DCHECK(valid);
#if BUILDFLAG(IS_ANDROID)
} else if (IsProcessingContentUrlIntent()) {
  file_path = base::FilePath(offline_header_.intent_url.spec());
  DCHECK(file_path.IsContentUri());
#endif
} else {
  file_path = GetCurrentOfflinePage().file_path;
}
OpenFile(file_path,
         base::BindRepeating(&OfflinePageRequestHandler::DidOpenForServing,
                             weak_ptr_factory_.GetWeakPtr()));

2. Validation Bypass

During request resolution, ValidateFile() is called to verify the offline page item's integrity. However, if the candidate archive's metadata is stored in an internal directory, OfflinePageRequestHandler triggers a fast-path that trusts the candidate unconditionally and jumps directly to opening the file (lines 554–557):

C++
if (candidates_[candidate_index_].archive_is_in_internal_dir) {
  OnTrustedOfflinePageFound();
  return;
}

An attacker can satisfy this precondition by exploiting chrome::mojom::OfflinePageAutoFetcher (a renderer-accessible Mojo interface bound in chrome_browser_interface_binders.cc). By calling TrySchedule(), the renderer schedules an archival of its committed URL under kAutoAsyncNamespace, which is placed within the temporary archives directory, evaluating archive_is_in_internal_dir to true.

3. Post-Hoc Streaming Leak

Once the stream is opened, OfflinePageURLLoader initiates chunk-by-chunk reading and streaming to the Mojo data pipe. Each read chunk of raw data is passed through NotifyReadRawDataComplete and written directly into the Mojo data pipe producer_handle_ before the next chunk is read:

C++
MojoResult result = producer_handle_->WriteData(
    bytes, MOJO_WRITE_DATA_FLAG_NONE, bytes_written);

The cryptographic digest is calculated incrementally on a background thread and compared against the recorded metadata digest only at EOF inside DidComputeActualDigestForServing (lines 760-779). By the time a digest mismatch is detected and net::ERR_FAILED is returned, the entire file has already been transmitted to and consumed by the renderer.

4. Mitigations & Sandbox Escape Dependency

This vulnerability is primarily mitigated by OfflinePageNavigationThrottle (chrome/browser/offline_pages/offline_page_navigation_throttle.cc), which cancels any renderer-initiated requests carrying the X-Chrome-offline header. To successfully exploit this vulnerability, an attacker must pair this logic flow with a sibling vulnerability that bypasses navigation throttles.


Potential Steps to Reproduce

  1. From a compromised renderer, navigate to an attacker-controlled HTTPS domain (e.g., https://attacker.example/page).
  2. Bind the chrome::mojom::OfflinePageAutoFetcher Mojo interface and call TrySchedule(user_requested=true) to trigger background archival of the page under kAutoAsyncNamespace (marking it as internal-directory trusted).
  3. Craft an X-Chrome-offline header containing a target file URL: X-Chrome-offline: persist=0 reason=file_url_intent intent_url=<Base64("file:///data/data/com.android.chrome/app_chrome/Default/Cookies")>.
  4. Trigger a main-frame navigation to https://attacker.example/page using a throttle-bypass mechanism to preserve the crafted header.
  5. Intercept the Mojo data pipe returned to the URLLoaderClient and drain the stream to retrieve the target file contents before the final EOF digest mismatch terminates the request.

Suggested Fix

  1. Path Containment Enforcement: In OnTrustedOfflinePageFound, restrict FileURLToFilePath and base::FilePath resolution of intent_url. Ensure that any resolved file path is explicitly verified to reside within designated, non-sensitive directories (e.g., the offline archives directory) before calling OpenFile.
  2. Avoid Fast-Path Validation Bypasses: Do not unconditionally trust candidates just because they are located in the internal or temporary directories when resolving FILE_URL_INTENT or CONTENT_URL_INTENT requests.
  3. Early Digest/Path Attestation: Ensure the browser process strictly validates the origin of navigation requests requesting file/content intents, refusing to read non-archive MIME types or raw application database directories.

Evaluated with Chrome root at commit: e9507a33bb4148ee071aaaf8a7e9ad68770359bf


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 offline page handler trusts archives stored in internal directories without checking that the requested path stays inside the archive directory, and it streams file data before the digest check completes.

Impact

A compromised renderer could read arbitrary files from the browser process on Android, but only if it also bypasses the navigation throttle, and the report notes the finding is based on static analysis rather than a running exploit.

What the attacker needed

Compromised renderer process; navigation throttle bypass; Android Chrome

The fix

The report suggests restricting resolved file paths to designated archive directories, removing the unconditional trust for internal-directory candidates, and validating navigation origin before reading file or content intents.

How it was found

  1. From a compromised renderer, navigate to an attacker-controlled HTTPS page.
  2. Bind the OfflinePageAutoFetcher interface and schedule an archival so the page is treated as an internal-directory archive.
  3. Craft an offline header with a file URL intent pointing at a target file.
  4. Trigger a main-frame navigation using a throttle-bypass mechanism so the crafted header is preserved.
  5. Drain the returned data pipe to read the file before the digest mismatch ends the request.

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.

Chrome splits its work into a browser process that can read files and a renderer process that shows web pages, which is not supposed to read files directly. This report says a malicious page could ask the browser process for a file and receive its contents before the browser notices the file is not a valid offline page. The report is a code review finding, not a demonstrated attack, and it says another bug is needed to get past a safety check.

What is Path traversal?

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Path traversal and file inclusion

The lesson behind this report.

Input that builds a file path escapes the intended folder, reading or writing files the application should never touch.