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

Insufficient validation of untrusted input in Enterprise Reporting (CVE-2026-11120)

The enterprise.reportingPrivate.setDeviceData extension API did not validate the id parameter against path traversal, allowing a compromised allowed extension to delete arbitrary files, create directories, and drop attacker-controlled files anywhere the user has write access.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 54 days

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 without the Chrome Security team.

Overview: The enterprise.reportingPrivate.setDeviceData extension API does not sanitize the id parameter against path traversal. A compromised extension from the allowed list can exploit this to delete arbitrary files, create arbitrary directories, and drop files containing attacker-controlled data anywhere the user has write access.

Affected files:

  • chrome/browser/extensions/api/enterprise_reporting_private/chrome_desktop_report_request_helper.cc
  • chrome/browser/extensions/api/enterprise_reporting_private/enterprise_reporting_private_api.cc

Estimated timestamp from git blame: 2026-02-25

Vulnerability Details

The enterprise.reportingPrivate.setDeviceData extension API allows a specific allowlist of enterprise extensions (such as Endpoint Verification) to store data on disk. This API takes a DOMString id and an optional ArrayBuffer data.

When a request is received, the extension arguments are passed to the browser process and handled by StoreDeviceData in chrome/browser/extensions/api/enterprise_reporting_private/chrome_desktop_report_request_helper.cc.

C++
void StoreDeviceData(const std::string& id,
                     const std::optional<std::vector<uint8_t>> data,
                     base::OnceCallback<void(bool)> callback) {
  base::FilePath data_file = GetEndpointVerificationDir();
  // ...

  // TODO(pastarmovj): Make sure the resulting path is still a direct file or
  // subdir+file of the EV folder.
  data_file = data_file.AppendASCII(id);

The id parameter provided by the renderer is directly appended to the base directory path using base::FilePath::AppendASCII. Because AppendASCII does not sanitize path traversal sequences like .., the resulting data_file path can escape the intended Endpoint Verification directory, granting the attacker control over the target file path on the local filesystem.

Impact

A compromised privileged renderer can leverage this traversal to achieve the following primitives:

  1. Arbitrary File Deletion: If the API is called with an empty or omitted data argument, the code attempts to clear existing data by executing:

    C++
    success = base::DeleteFile(data_file);
    if (base::IsDirectoryEmpty(data_file.DirName())) {
      base::DeleteFile(data_file.DirName());
    }
    

    Since base::DeleteFile lacks path traversal checks, this allows the deletion of arbitrary files accessible to the browser process (the user's privileges). Furthermore, if deleting the file leaves its parent directory empty, that parent directory is also deleted.

  2. Arbitrary Directory Creation: If data is provided, the function executes:

    C++
    success = base::CreateDirectory(data_file.DirName());
    

    This enables the creation of arbitrary directory structures on the filesystem.

  3. Arbitrary File Drop: When data is provided, the code creates a temporary file in the attacker-controlled target directory and writes the attacker's payload to it. It then attempts to move this file to the final destination using base::Move.

    C++
    base::CreateTemporaryFileInDir(data_file.DirName(), &tmp_path);
    base::WriteFile(tmp_path, *data);
    success = base::Move(tmp_path, data_file);
    

    While base::Move successfully blocks the move operation because it contains an internal check against .., the implementation does not clean up the temporary file upon failure. This leaves a file with a random name (e.g., .[branding].XXXXXX on POSIX systems) containing attacker-controlled content permanently on disk in the targeted directory.

Potential Exploitation Steps

(Note: These are theoretical steps; a functional proof-of-concept has not been run.)

  1. An attacker compromises the renderer process hosting an extension allowed to use the enterprise.reportingPrivate API (e.g., Endpoint Verification, 031E5E4A54C39E4F46E11CE643584E9187915908).
  2. To delete a file, the attacker invokes the API via JavaScript: chrome.enterprise.reportingPrivate.setDeviceData({id: "../../../../../../etc/passwd"}). The browser process parses the missing data parameter as nullopt and deletes the targeted file.
  3. To drop a file, the attacker invokes: chrome.enterprise.reportingPrivate.setDeviceData({id: "../../../../../../tmp/attacker_dir/target", data: new Uint8Array([0x41, 0x41])}). The browser creates /tmp/attacker_dir/ and drops a randomly named file containing AA inside it.

Suggested Fix

Ensure that the id parameter does not contain path traversal sequences before appending it to the directory path. The existing TODO should be addressed by verifying that the resulting path is a direct child of the Endpoint Verification directory.

C++
  data_file = data_file.AppendASCII(id);
  if (data_file.ReferencesParent()) {
    std::move(callback).Run(false);
    return;
  }

Alternatively, id could be sanitized or validated to only contain alphanumeric characters.

Evaluated with Chrome root at commit: 096fc8fdbfacf2546485756d03f160a3d04fcc9b


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.

Raised in root component due to access or custom field issues on 1163683

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 id parameter was appended to the base directory path with base::FilePath::AppendASCII, which does not reject '..' path traversal sequences, and the resulting path was not checked to remain inside the intended directory.

Impact

A compromised allowed extension could delete arbitrary files, create arbitrary directories, and leave attacker-controlled files on disk with the user's privileges; the file move itself was blocked by an internal check, but the temporary file was not cleaned up.

What the attacker needed

Compromised renderer; extension on the API allowlist; user write access to target path

The fix

The id parameter should be validated so the resulting path is a direct child of the Endpoint Verification directory, for example by rejecting paths that reference a parent directory.

How it was found

  1. Compromise a renderer process hosting an extension on the allowlist for the enterprise.reportingPrivate API.
  2. Call the API with an id containing path traversal and no data argument to delete a target file.
  3. Call the API with an id containing path traversal and a data argument to create directories and drop a file with attacker-controlled content.

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.

An extension API that stores data on disk took a file name from the extension and joined it to a folder path without checking for '..' sequences. A malicious extension could therefore point the path outside the intended folder and delete or create files as the user. The report is theoretical and no working exploit was run.

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.