Skip to content
Access control Advisory Advanced CVE-2026-13901

Insufficient validation of untrusted input in Serial (CVE-2026-13901)

Several browser-side Mojo interfaces for file pickers and device choosers fail to properly verify transient user activation, allowing a compromised renderer to display these dialogs without genuine user intent. Combined with a social engineering attack that tricks the user into holding the Enter key, this could lead to unauthorised file system writes or hardware device access.

Google Chrome

Originally disclosed on Chrome VRP

  • Fix shipped in 2 months

Pasting the entirety of http://b/495429423 but bug is about the 1 specific instance in the title.

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.cc
  • content/browser/usb/web_usb_service_impl.cc
  • content/browser/bluetooth/web_bluetooth_service_impl.cc
  • content/browser/serial/serial_service.cc
  • content/browser/hid/hid_service.cc
  • chrome/browser/webshare/share_service_impl.cc
  • content/browser/contacts/contacts_manager_impl.cc
  • content/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

  1. 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 UpdateUserActivationState returns a bool indicating whether transient activation was actually present and successfully consumed. However, ChooseEntries completely ignores this return value and proceeds to show the file picker even if it evaluates to false.

  2. 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)

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.

  1. 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.
  2. Mojo Invocation: Bypassing Blink's security checks, the compromised renderer directly sends a ChooseEntries Mojo message to the browser process. It specifies a SaveFilePickerOptions targeting the user's Downloads folder with an attacker-controlled suggested_name (e.g., malware.bat).
  3. 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 returns false. However, because the code ignores the return value, the browser proceeds.
  4. Dialog Steals Focus: The native OS Save File Picker dialog appears and instantly intercepts window focus.
  5. 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.
  6. Sandbox Escape / Unauthorized Access: The dialog closes, and the browser process grants the compromised renderer a valid FileSystemAccessFileHandle for malware.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 of UpdateUserActivationState(kConsumeTransientActivation) must be checked, and the request should be rejected (e.g., returning kPermissionDenied) if it is false.
  • For the hardware and sharing APIs, a similar browser-side check to consume transient user activation must be implemented before calling RunChooser or 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.

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

Likely the browser process does not enforce transient user activation for several Mojo interfaces, either by ignoring the return value of the activation check or by omitting the check entirely.

Impact

A compromised renderer could bypass user activation checks to show file pickers and device choosers, and with a social engineering trick, could gain unauthorised file system write access or hardware device access.

What the attacker needed

Compromised renderer process; victim holds Enter key

The fix

The browser process should check the return value of the activation consumption and reject the request if it is false, and add similar checks for the hardware and sharing APIs.

How it was found

  1. An attacker compromises the sandboxed renderer process and displays a lure that tricks the user into holding down the Enter key.
  2. The compromised renderer bypasses Blink's security checks and directly sends a Mojo message to the browser process to show a file picker.
  3. The browser process receives the message and calls the activation check, which returns false because holding Enter is not valid transient activation, but the code ignores the result and proceeds.
  4. The native file picker dialog appears and takes focus.
  5. Because the user is still holding Enter, the dialog immediately registers an Enter keystroke and triggers the default Save action.
  6. The browser grants the renderer a file handle, allowing the attacker to write arbitrary files 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.

When you click a button to open a file picker, the browser checks that you really did just interact with the page. This report says some of those checks are missing or broken in the part of the browser that handles the request, so a malicious page could open a file save dialog even if you did not click anything. If the attacker also tricks you into holding down the Enter key, the dialog might save a file without you meaning to.

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.

More from Google Chrome

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.