Missing authorization in FileSystem (CVE-2026-84323)
Android WebView bypasses visibility and user activation checks when showing a file picker, allowing a compromised renderer in a hidden context to trigger a system file picker over the foreground UI. An attacker could then trick the user into selecting a sensitive file that the hidden renderer gains access to.
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. 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 potential vulnerability in Android WebView allows a compromised renderer in a hidden background context to trigger a system file picker. By bypassing visibility checks and user activation enforcement, an attacker can spoof a file picker request over the foreground UI to gain unauthorized local file access.
Affected files:
content/browser/file_system_access/file_system_access_manager_impl.ccandroid_webview/browser/aw_web_contents_delegate.ccandroid_webview/browser/file_system_access/aw_file_system_access_permission_context.ccandroid_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.javacontent/browser/file_system_access/file_system_chooser.cc
Estimated timestamp from git blame: 2025-11-21
Background
In Chrome, security measures prevent hidden WebContents from opening File System Access (FSA) pickers to protect against UI spoofing. This is typically enforced via a visibility gate (WebContentsBasedCanceller with CancelCondition::kVisibility) inside FileSystemChooser::CreateAndShow.
Potential Vulnerability
Android WebView potentially bypasses this visibility gate due to an early return path in the browser process.
- User Activation Bypass: When a compromised renderer sends a
blink.mojom.FileSystemAccessManager::ChooseEntriesIPC to the browser process,FileSystemAccessManagerImpl::ChooseEntriesattempts to consume transient user activation. However, it ignores the boolean return value ofFrameTreeNode::UpdateUserActivationState. It consumes the activation if present, but does not reject the request if the activation was missing, allowing the flow to proceed without a valid user gesture. - Visibility Check Bypass: The request eventually reaches
FileSystemAccessManagerImpl::ShowFilePickerOnUIThread. On Android, ifdelegate->UseFileChooserForFileSystemAccess()is true (which it unconditionally is forAwWebContentsDelegate), the code routes todelegate->RunFileChooser(...)and returns early. - Missing Enforcement: This early return completely skips the execution of
FileSystemChooser::CreateAndShow, which is responsible for creating theWebContentsBasedCancellerthat enforces the visibility requirement. NeitherAwWebContentsDelegate::RunFileChooser(C++) norAwWebContentsDelegateAdapter.runFileChooser(Java) implements an equivalent visibility check before invoking the embedder'sonShowFileChooser.
Suggested Attacker Steps
Note: Our tooling agent does not have the ability to run code, so these are potential steps an attacker might follow:
- An attacker embeds a hidden WebView in an Android app (e.g., using
View.GONEor in a background tab) and compromises its renderer process via a separate vulnerability. - The compromised renderer constructs and sends a
ChooseEntriesIPC directly to the browser process, bypassing renderer-side user gesture checks. - The browser process processes the request, bypassing the user activation requirement and the visibility gate, and triggers the Android system file picker via the embedder application.
- The user sees a system file picker appearing over the current active foreground UI (which may be a benign part of the app or another app entirely).
- Believing the request is legitimate, the user selects a sensitive file.
- The hidden attacker-controlled renderer receives a
FileSystemFileHandlewith access to the chosen file.
Suggested Fix
The browser process should enforce visibility and user activation requirements consistently.
- In
FileSystemAccessManagerImpl::ShowFilePickerOnUIThread, if delegating to the AndroidWebContentsDelegate, aWebContentsBasedCanceller(or equivalent mechanism) must still be instantiated to abort the picker if theWebContentsbecomes hidden. FileSystemAccessManagerImpl::ChooseEntriesshould strictly verify that transient user activation was successfully consumed (or was explicitly not required) before proceeding.
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.
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 an early return in the Android WebView file picker path skips the visibility check, and the user activation check ignores its return value, so neither requirement is enforced.
Impact
A compromised renderer in a hidden WebView could spoof a file picker over the foreground UI and, if the user selects a file, gain unauthorised access to that local file.
What the attacker needed
Compromised renderer in a hidden WebView; user selects a file in the picker
The fix
The browser process should enforce visibility and user activation consistently by instantiating a visibility canceller even when delegating to the Android WebContentsDelegate, and by strictly verifying that transient user activation was consumed.
How it was found
- An attacker embeds a hidden WebView in an Android app and compromises its renderer process.
- The compromised renderer sends a ChooseEntries IPC directly to the browser process.
- The browser process processes the request without enforcing user activation or visibility, and triggers the system file picker.
- The user sees a system file picker over the foreground UI and selects a sensitive file.
- The hidden renderer receives a file handle with access to the chosen file.
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 hidden part of an app (like a background WebView) is supposed to be blocked from opening a file picker, because that could trick you into choosing a private file. Here, the Android WebView code skips that block, so a malicious hidden page could pop up a real file picker over whatever you are doing. If you pick a file, the hidden page gets access to 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.