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

Insufficient validation of untrusted input in Feedback (CVE-2026-7345)

The chrome.feedbackPrivate.sendFeedback API did not properly sanitise the filename in an attached file object, allowing path traversal. A compromised WebUI renderer could write arbitrary files outside the temporary directory, leading to sandbox escape and persistent code execution.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 16 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: A path traversal vulnerability exists in the chrome.feedbackPrivate.sendFeedback API that could allow a compromised WebUI renderer to perform an arbitrary file write. The filename provided in the attachedFile object is inadequately sanitized and appended to a temporary directory path before being written to disk uncompressed. This allows an attacker to escape the temporary directory and overwrite sensitive files in the context of the unsandboxed Browser process.

Affected files:

  • components/feedback/feedback_util.cc
  • extensions/browser/api/feedback_private/feedback_private_api.cc
  • components/feedback/feedback_common.cc
  • extensions/browser/api/feedback_private/feedback_service.cc
  • components/feedback/feedback_data.cc

Estimated timestamp from git blame: 2024-08-22

Summary

A potential path traversal vulnerability exists in the implementation of the chrome.feedbackPrivate.sendFeedback extension API. The vulnerability could allow a compromised renderer process—specifically one hosting an authorized WebUI (like chrome://feedback)—to perform arbitrary file writes in the context of the browser process. This can lead to a sandbox escape and persistent code execution by overwriting sensitive files such as ~/.bashrc on Linux or adding files to the Startup folder on Windows.

Vulnerability Details

When a renderer calls chrome.feedbackPrivate.sendFeedback, it can optionally provide an AttachedFile object containing a name (the filename) and a blob UUID representing the file's data. The handling of this filename allows for a path traversal attack:

  1. Entry Point & Weak Sanitization: In FeedbackPrivateSendFeedbackFunction::Run (extensions/browser/api/feedback_private/feedback_private_api.cc), the provided name is passed to StripFakepath. This function only removes a literal C:\fakepath\ prefix and does not perform any validation for path traversal sequences like .. or ..\.
  2. Data Flow: The unsanitized string is stored in FeedbackData. Later, FeedbackData::AttachAndCompressFileData converts this string into a base::FilePath using FilePath::FromUTF8Unsafe, which performs no path normalization or traversal checks.
  3. Vulnerable Sink: The data flows to FeedbackCommon::CompressFile and then to feedback_util::ZipString(filename, data) (components/feedback/feedback_util.cc). Inside ZipString, a temporary directory is created.
  4. Path Traversal: The code attempts to write the uncompressed blob data to a file inside the temporary directory using:
    C++
    base::WriteFile(temp_dir.GetPath().Append(filename), data)
    
    base::FilePath::Append performs raw string concatenation and does not prevent the use of .. relative path components. If filename is set to ../../../../../../home/user/.bashrc, the resulting path evaluates to that exact string.
  5. Arbitrary Write: base::WriteFile passes this traversed path directly to underlying OS APIs (like creat or CreateFile). The operating system resolves the .. sequences, breaking out of the temporary directory, and writes the attacker's raw, uncompressed payload data to the resolved path. Because the Browser process runs unsandboxed with user privileges, the write succeeds.
  6. Persistence: The base::ScopedTempDir destructor only deletes the temporary directory it created. The maliciously written file resides outside this directory and persists.

Impact

An attacker who has compromised a WebUI renderer (e.g., via a V8 bug or XSS in chrome://feedback) can escalate their privileges to the browser process context. By writing to sensitive filesystem locations, the attacker can achieve persistent, unsandboxed code execution.

Suggested Reproduction Steps

Note: These are suggested steps based on code analysis; our tooling agent cannot execute code to verify them.

  1. Compromise a renderer process hosting an authorized WebUI (e.g., chrome://feedback).
  2. Construct a JavaScript Blob containing the malicious payload (e.g., a reverse shell script or malware executable) and retrieve its UUID.
  3. Invoke the chrome.feedbackPrivate.sendFeedback API with an attachedFile object.
  4. Set the attachedFile.name to a traversal string targeting a sensitive file (e.g., ../../../../../../home/user/.bashrc).
  5. The browser process will read the blob and write its contents to the specified path outside the intended temporary directory.

Suggested Fix

To prevent path traversal, the filename should be strictly validated before being appended to the temporary directory path.

  1. In feedback_util::ZipString (or earlier in the pipeline when the FilePath is created), verify that the path does not contain traversal components by checking filename.ReferencesParent().
  2. Alternatively, use base::SafeBaseName to ensure the provided filename only contains a single, safe path component without any directory separators or parent references.

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 1033360

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 filename from the attached file object was only stripped of a fake path prefix and then appended to a temporary directory path without checking for parent directory references, allowing path traversal.

Impact

An attacker who has compromised a WebUI renderer could escalate privileges to the browser process and achieve persistent, unsandboxed code execution by writing to sensitive filesystem locations.

What the attacker needed

Compromised WebUI renderer; authorized WebUI like chrome://feedback

The fix

The filename should be strictly validated to ensure it does not contain traversal components, for example by checking ReferencesParent() or using SafeBaseName.

How it was found

  1. Compromise a renderer process hosting an authorized WebUI (e.g., chrome://feedback).
  2. Construct a JavaScript Blob containing the malicious payload and retrieve its UUID.
  3. Invoke the chrome.feedbackPrivate.sendFeedback API with an attachedFile object.
  4. Set the attachedFile.name to a traversal string targeting a sensitive file.
  5. The browser process writes the blob contents to the specified path outside the temporary directory.

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.

This is a bug in Chrome's feedback feature. When a web page (specifically a Chrome internal page) sends feedback with an attached file, the file's name is not checked for '..' sequences. An attacker who already controls that page could use '..' to write files anywhere on the computer, like a startup script, and run malicious code.

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.