Missing authorization in FileSystem (CVE-2026-87487)
Several browser-side Mojo interfaces for file pickers and device choosers either ignore the result of a transient user activation check or omit it entirely. A compromised renderer could invoke these interfaces directly to show dialogs without genuine user intent, and combined with a social engineering trick, could lead to unauthorised file writes or device access.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 6 months
Flapjack (go/flapjack), an LLM-powered static analysis tool, has identified the following potential security issue.
Overview: Several sensitive Mojo interfaces in the browser process fail to properly verify transient user activation before displaying UI choosers or pickers. A compromised renderer can bypass Blink's security checks and directly invoke these interfaces to trigger dialogs without genuine user intent. When combined with an 'Enter key holding' social engineering attack, this can lead to unauthorized file system write access or hardware device access.
Affected files:
content/browser/file_system_access/file_system_access_manager_impl.cccontent/browser/usb/web_usb_service_impl.cccontent/browser/bluetooth/web_bluetooth_service_impl.cccontent/browser/serial/serial_service.cccontent/browser/hid/hid_service.ccchrome/browser/webshare/share_service_impl.cccontent/browser/contacts/contacts_manager_impl.cccontent/browser/presentation/presentation_service_impl.cc
Estimated timestamp from git blame: 2025-12-23
Summary
There is a potential systemic vulnerability across multiple browser-side Mojo interface implementations where transient user activation is either improperly verified or entirely unchecked before displaying sensitive UI elements (like file pickers and device choosers).
Chrome's security architecture (User Activation v2) dictates that the browser process must be the authoritative source of truth for user activation. While Blink (the renderer) performs checks before sending these Mojo messages, a compromised renderer can bypass the Blink bindings and call the Mojo methods directly. Without robust browser-side enforcement, an attacker can forcefully display these dialogs and potentially exploit them via social engineering.
Technical Details
-
File System Access API (Flawed Check): In
content/browser/file_system_access/file_system_access_manager_impl.cc(FileSystemAccessManagerImpl::ChooseEntries), the code attempts to consume user activation:C++ if (GetContentClient()->browser()->IsTransientActivationRequiredForShowFileOrDirectoryPicker(WebContents::FromRenderFrameHost(rfh))) { FrameTreeNode::From(rfh)->UpdateUserActivationState( blink::mojom::UserActivationUpdateType::kConsumeTransientActivation, blink::mojom::UserActivationNotificationType::kNone); } // Execution continues regardless of the return value...The method
UpdateUserActivationStatereturns aboolindicating whether transient activation was actually present and successfully consumed. However,ChooseEntriescompletely ignores this return value and proceeds to show the file picker even if it evaluates tofalse. -
Hardware APIs & Other Pickers (Missing Checks): The browser-side implementations for the following APIs do not perform any transient user activation checks before initiating their respective device choosers, relying entirely on renderer-side enforcement:
- WebUSB:
WebUsbServiceImpl::GetPermission(content/browser/usb/web_usb_service_impl.cc) - WebBluetooth:
WebBluetoothServiceImpl::RequestDeviceImpl(content/browser/bluetooth/web_bluetooth_service_impl.cc) - WebSerial:
SerialService::RequestPort(content/browser/serial/serial_service.cc) - WebHID:
HidService::RequestDevice(content/browser/hid/hid_service.cc) - Web Share:
ShareServiceImpl::Share(chrome/browser/webshare/share_service_impl.cc) - Contacts:
ContactsManagerImpl::Select(content/browser/contacts/contacts_manager_impl.cc)
- WebUSB:
Potential Attack Scenario
Note: The following steps are theoretical as the Flapjack LLM agent does not execute code, but they trace the logical flow of the vulnerability based on the codebase.
- Renderer Compromise & Social Engineering: An attacker compromises the sandboxed renderer process (e.g., via a V8 bug). The attacker's webpage displays a lure (like a game) tricking the user into holding down the "Enter" key.
- Mojo Invocation: Bypassing Blink's security checks, the compromised renderer directly sends a
ChooseEntriesMojo message to the browser process. It specifies aSaveFilePickerOptionstargeting the user's Downloads folder with an attacker-controlledsuggested_name(e.g.,malware.bat). - Browser-Side Bypass: The browser process receives the message. It calls
UpdateUserActivationState(kConsumeTransientActivation). Since holding the Enter key does not constitute a valid, recent transient activation in the browser's state, this returnsfalse. However, because the code ignores the return value, the browser proceeds. - Dialog Steals Focus: The native OS Save File Picker dialog appears and instantly intercepts window focus.
- Automatic Confirmation: Because the user is already holding the "Enter" key, the OS immediately registers an "Enter" keystroke on the newly focused dialog. This triggers the default "Save" action.
- Sandbox Escape / Unauthorized Access: The dialog closes, and the browser process grants the compromised renderer a valid
FileSystemAccessFileHandleformalware.bat, allowing the attacker to silently write arbitrary payloads to the user's disk. This identical pattern can be used to silently grant access to connected USB/Bluetooth/Serial hardware.
Recommendation
All sensitive Mojo methods that trigger browser-side choosers or pickers must strictly verify that transient user activation is present in the calling frame.
- For
ChooseEntries, the return value ofUpdateUserActivationState(kConsumeTransientActivation)must be checked, and the request should be rejected (e.g., returningkPermissionDenied) if it isfalse. - For the hardware and sharing APIs, a similar browser-side check to consume transient user activation must be implemented before calling
RunChooseror equivalent.
Evaluated with Chrome root at commit: 9760e6c70cd33a320713361f17c6dcca85648c0f
Results from Flapjack so far have been promising, but it can be wrong in its deductions. At this time, it does not produce proof of concepts or fuzzer tests. If this proves to be a false positive, please close as WAI; data from false positives will be used to improve Flapjack’s 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 browser process does not enforce transient user activation for several Mojo interfaces: one ignores the boolean returned by the activation-consuming call, and others perform no check at all.
Impact
A compromised renderer could write arbitrary files to disk or gain access to connected USB, Bluetooth, or serial devices without genuine user intent; the report notes the steps are theoretical and not executed.
What the attacker needed
Compromised renderer process; victim holds Enter key; user interaction with a lure
The fix
The browser should check the return value of the transient activation consumption for ChooseEntries and reject the request if false, and add a similar browser-side check before showing choosers for the hardware and sharing APIs.
How it was found
- Compromise the renderer process and show a lure that tricks the user into holding the Enter key.
- Send a ChooseEntries Mojo message directly to the browser process, bypassing Blink checks, with options targeting the Downloads folder and an attacker-chosen file name.
- The browser consumes transient activation, which returns false, but ignores the result and proceeds.
- The native save dialog appears and takes focus.
- The held Enter key is registered by the dialog, triggering the default Save action.
- The browser grants a file handle, allowing the attacker to write arbitrary content to disk.
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 web page runs in a restricted part of the browser called a renderer. Normally, the browser only shows sensitive dialogs like file pickers after the user has just clicked or pressed a key. This report says some of those dialogs can be triggered by a malicious renderer without that recent user action, so a fake page could trick someone into saving a harmful file or granting access to a device.
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.