Missing authorization in ControlledFrame (CVE-2026-87513)
ControlledFrame guests are blocked from using the File System Access file picker, but drag-and-drop and clipboard paste operations still mint FSA tokens. An attacker controlling guest content could trick a user into dropping a sensitive file, then redeem the token to gain persistent, profile-wide read access to that file.
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 without the Chrome Security team. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: ControlledFrame guests are intentionally blocked from using the File System Access (FSA) file picker to prevent profile-wide permission leaks across isolation boundaries. However, drag-and-drop and clipboard paste operations fail to enforce this restriction and mint FSA tokens. When a guest redeems these tokens, it obtains persistent, profile-wide read access to the file, bypassing the isolation.
Affected files:
content/browser/renderer_host/clipboard_host_impl.cccontent/browser/renderer_host/render_widget_host_impl.cccontent/browser/file_system_access/file_system_access_manager_impl.ccchrome/browser/file_system_access/chrome_file_system_access_permission_context.cc
Estimated timestamp from git blame: 2025-03-11
Background
ControlledFrame is an isolation mechanism used primarily by Isolated Web Apps (IWAs) to host untrusted guest content while strictly isolating its state from the broader user profile. Because File System Access (FSA) permissions are currently scoped to the entire user Profile, granting an FSA permission to a guest would leak that permission to the rest of the profile.
To prevent this, ChromeFileSystemAccessPermissionContext::CanShowFilePicker explicitly blocks the FSA file picker UI for ControlledFrame guests by checking guest->IsOwnedByControlledFrameEmbedder().
Vulnerability
This isolation boundary can be bypassed through clipboard paste or drag-and-drop operations.
When a user drops a file onto a ControlledFrame, the drop event is handled by RenderWidgetHostImpl::DragTargetDrop. This function eventually calls FileInfosToDataTransferFiles (in content/browser/renderer_host/data_transfer_util.cc). This function iterates over the dropped files and calls CreateFileSystemAccessDataTransferToken to mint FSA tokens. Crucially, there is no check in this path to verify if the receiving context is an isolated ControlledFrame. A similar flow exists in ClipboardHostImpl::OnReadFiles for pasted files.
Exploitation Scenario (Suggested Steps)
- An attacker controls the web content loaded inside a
ControlledFrameguest (e.g.,https://attacker.com). - The attacker uses social engineering to trick the user into dragging a sensitive local file into the
ControlledFrameguest content. - The guest's JavaScript intercepts the
dropevent and callsitem.getAsFileSystemHandle()on the file item indataTransfer.items. - The browser process handles the token redemption via
FileSystemAccessManagerImpl::GetEntryFromDataTransferTokenandResolveDataTransferTokenWithFileType. - Because the dropped item is a file,
ResolveDataTransferTokenWithFileTypeskips theConfirmSensitiveEntryAccessprompt and callsGetSharedHandleStateForNonSandboxedPath. - This calls
ChromeFileSystemAccessPermissionContext::GetReadPermissionGrantwith the guest's origin (https://attacker.com) andUserAction::kDragAndDrop. - The context immediately sets the grant status to
PermissionStatus::GRANTEDand saves it to the profile-wideactive_permissions_map_and on-disk preferences. - The attacker navigates a normal, un-isolated tab in the main browser window to
https://attacker.com. Because the permission is profile-wide and active in memory for the current session, the attacker can immediately read the file without any prompts, entirely bypassing theControlledFrameisolation boundary.
(Note: These are potential exploitation steps; our tooling has not run a live proof-of-concept).
Suggested Fix
Add a check to prevent FSA DataTransfer tokens from being minted or redeemed for ControlledFrame guests. This could be implemented by:
- Checking
IsOwnedByControlledFrameEmbedderin the drag-and-drop and clipboard handlers before callingFileInfosToDataTransferFiles. - Alternatively, enforcing the restriction during token redemption in
FileSystemAccessManagerImpl, ensuring that isolated contexts cannot obtain profile-wide permission grants.
Evaluated with Chrome root at commit: eca8648a4e1cdfdda68c495a6003059fed641955
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.
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 drag-and-drop and clipboard file handling paths do not check whether the receiving context is an isolated ControlledFrame guest before minting File System Access tokens.
Impact
An attacker could gain persistent, profile-wide read access to a file the user dropped or pasted into the guest, bypassing the ControlledFrame isolation boundary; the report notes that no live proof-of-concept has been run.
What the attacker needed
Attacker controls ControlledFrame guest content; victim drags or pastes a sensitive file into the guest
The fix
The drag-and-drop and clipboard handlers should check IsOwnedByControlledFrameEmbedder before minting FSA tokens, or token redemption should enforce the restriction in FileSystemAccessManagerImpl.
How it was found
- An attacker controls web content loaded inside a ControlledFrame guest.
- The attacker tricks the user into dragging a sensitive local file into the guest content.
- The guest's JavaScript intercepts the drop event and calls getAsFileSystemHandle on the file item.
- The browser redeems the token and grants read permission to the guest's origin without a prompt.
- The attacker opens a normal tab to the same origin and reads the file using the profile-wide permission.
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 ControlledFrame is a way to embed untrusted web content inside a browser app while keeping it isolated from the rest of the user's profile. The browser normally blocks this embedded content from asking for file access, but the report says that dragging a file onto it or pasting a file still creates a permission token. If an attacker controls that embedded content, they could trick a user into dropping a private file and then read it later from a normal tab.
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.