Incorrect authorization in FileAPI (CVE-2026-87515)
A logic error in ChromeOS Data Loss Prevention (DLP) enforcement causes file-backed blobs created from Fenced Frames to receive a null access callback, which then falls back to SYSTEM-level access. An attacker could use a Fenced Frame to trick a user into selecting a DLP-protected file and then read and exfiltrate its contents.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 5 months
Project Fortify, an experimental security project, has identified the following potential security issue.
Overview: A logic error in FileBackedBlobFactoryBase causes Enterprise Data Loss Prevention (DLP) checks to fail-open when an invalid URL is encountered, such as in Fenced Frames. This allows an untrusted origin to bypass DLP policies and access restricted local files by escalating the access request to the SYSTEM component tier.
Affected files:
content/browser/blob_storage/file_backed_blob_factory_base.ccstorage/browser/file_system/local_file_stream_reader.ccchrome/browser/chromeos/policy/dlp/dlp_scoped_file_access_delegate.cccontent/browser/blob_storage/file_backed_blob_factory_frame_impl.cc
Estimated timestamp from git blame: 2023-11-09
Summary
A potential vulnerability exists in the ChromeOS Data Loss Prevention (DLP) enforcement mechanism that could allow exfiltration of restricted files to untrusted web destinations.
When a file-backed blob is created from a context with an invalid or empty URL (specifically, a Fenced Frame), the system fails to apply restrictive policies. Instead, it defaults to a highly-privileged access level (DlpComponent::SYSTEM), bypassing Enterprise DLP rules.
Technical Details
The vulnerability stems from how the blob storage system interacts with the DLP delegate when an origin lacks a valid URL:
- Invalid URL Handling in Fenced Frames: When a file-backed blob is registered via
content::FileBackedBlobFactoryBase::RegisterBlobSync, it determines the destination URL for DLP checks by callingGetCurrentUrl(). For Fenced Frames,FileBackedBlobFactoryFrameImpl::GetCurrentUrl()explicitly returns an empty, invalidGURL()(seecontent/browser/blob_storage/file_backed_blob_factory_frame_impl.cc:34). - Null Callback Creation:
RegisterBlobSyncpasses this empty URL toGetAccessCallback(). Because the URL is invalid (!url_for_file_access_checks.is_valid()), the helper short-circuits and returnsbase::NullCallback()(seecontent/browser/blob_storage/file_backed_blob_factory_base.cc:31). This null callback is permanently attached to the blob's file slice. - Fail-Open during Read: When the renderer attempts to read the file (e.g., via
FileReader),LocalFileStreamReader::Openis invoked. It checks for a specificfile_access_callback. Finding it null, it falls back to the default access path:file_access::ScopedFileAccessDelegate::RequestDefaultFilesAccessIO(seestorage/browser/file_system/local_file_stream_reader.cc:130). - Privilege Escalation to SYSTEM: The default access path routes to
DlpScopedFileAccessDelegate::RequestDefaultFilesAccess. In the default ChromeOS configuration, the strict enforcement flagkDataControlsFileAccessDefaultDenyis disabled. Consequently, the logic falls through toRequestFilesAccessForSystem, which sets the destination component todlp::DlpComponent::SYSTEM(seechrome/browser/chromeos/policy/dlp/dlp_scoped_file_access_delegate.cc:167). - Policy Bypass: The ChromeOS DLP daemon grants access for
SYSTEMdestinations, allowing the untrusted Fenced Frame to read and exfiltrate admin-restricted files.
Note: Opaque-origin workers also return an empty URL in this context, but it is currently unclear if they possess the necessary web APIs (like <input type="file">) to trigger the initial RegisterBlob call for a local file path.
Potential Attack Steps
(Note: These are suggested steps; our tooling agent does not run code to verify them.)
- An attacker embeds a
<fencedframe>on their malicious website. - Inside the Fenced Frame, the attacker presents a file picker (
<input type="file">) to the user. - The user is tricked into selecting an Enterprise DLP-protected file from their local ChromeOS file system.
- The browser registers the file-backed blob, but due to the Fenced Frame context, it assigns a null DLP access callback.
- The attacker's JavaScript inside the Fenced Frame reads the file contents (e.g., using
File.text()). The read succeeds because the null callback forces a fallback toSYSTEMlevel access, bypassing the DLP block. - The attacker exfiltrates the sensitive file data.
Recommendation
GetAccessCallback in content/browser/blob_storage/file_backed_blob_factory_base.cc should be modified. Instead of returning base::NullCallback() when a valid destination URL cannot be determined, it should return a callback that explicitly denies access or applies the most restrictive default policy.
Evaluated with Chrome root at commit: a9cbf6e8b275fe4147435aa905f3b7f5a656f5f0
Results from 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.
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 code returns a null callback when the destination URL is invalid, and the file reader then falls back to a default access path that grants SYSTEM-level privileges instead of denying access.
Impact
An untrusted origin could bypass DLP policies and read restricted local files, potentially exfiltrating sensitive data, though the attack requires user interaction to select the file.
What the attacker needed
ChromeOS with Enterprise DLP enabled; Victim uses a Fenced Frame-capable browser; Victim selects a protected file
The fix
The code should be changed so that when a valid destination URL cannot be determined, it returns a callback that explicitly denies access or applies the most restrictive default policy, rather than a null callback.
How it was found
- An attacker embeds a fenced frame on their malicious website.
- Inside the fenced frame, the attacker presents a file picker to the user.
- The user is tricked into selecting an Enterprise DLP-protected file.
- The browser registers the file-backed blob with a null DLP access callback.
- The attacker's JavaScript reads the file contents, which succeeds due to SYSTEM-level fallback.
- The attacker exfiltrates the sensitive file data.
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.
Data Loss Prevention (DLP) is a system that stops sensitive files from leaving a company's computers. In this bug, a special kind of web page frame called a Fenced Frame made the DLP check skip its normal restrictions and treat the request as coming from a trusted system component. That let a malicious site read a protected file after tricking the user into picking it.
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.