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

Insufficient policy enforcement in WebUSB (CVE-2026-5276)

WebUSB's control transfer functions allow any webpage to send arbitrary USB control transfers to all interfaces, including protected classes, by setting recipient to 'device'. An attacker could gain full control over a USB Bluetooth adapter, making it discoverable, disabling authentication and encryption, and changing its name.

Ariel Simon Follow

Originally disclosed on Chrome VRP

  • Fix shipped in 28 days

Report description

WebUSB bug bypasses Chromium's protected USB class restrictions, giving any webpage unrestricted access to USB devices.


Bug location

Where do you want to report your vulnerability?

Chrome VRP – Report security issues affecting the Chrome browser. See program rules

Which URL (or repository) have you found the vulnerability in?

https://chromium.googlesource.com/chromium/src/+/main/services/device/usb/mojo/device_impl.cc


The problem

Please describe the technical details of the vulnerability

WebUSB's controlTransferOut and controlTransferIn allow any webpage to send arbitrary USB control transfers to all interfaces on a device — including protected classes (Bluetooth 0xE0, mass storage, smart cards, WiFi adapters and more) — by setting recipient: "device". This completely bypasses Chromium's blocked_interface_classes_ enforcement, which was introduced in CVE-2018-6125 (https://issues.chromium.org/issues/40090681) to prevent web pages from accessing security-sensitive USB interfaces.

The attack requires only one click from the user — selecting any USB device in the WebUSB chooser. After that single click, the webpage has full, unrestricted control over the device, including all protected interfaces the user never intended to expose.

A single call to device.controlTransferOut({requestType: 'class', recipient: 'device', request: 0, value: 0, index: 0}, hciPayload) sends arbitrary HCI commands to a USB Bluetooth adapter (for example) — despite class 0xE0 being blocked. The same bypass works for any protected USB device class.

PoC attached: bt_exploit_poc.html — single-page exploit that demonstrates full, unrestricted HCI control of a USB Bluetooth adapter from a webpage (I chose to focus on BT dongle for this PoC because I did not have any other hardware to test this on, but this is valid for smart cards, WiFi chips, and many other protected devices). The PoC shows:

  1. Connect to any USB BT dongle via the WebUSB chooser.
  2. Verify claimInterface(0) is blocked (class 0xE0 protection active).
  3. Bypass the protection: send HCI_Write_Scan_Enable + HCI_Write_Simple_Pairing_Mode via controlTransferOut(recipient:'device') — the dongle becomes discoverable + connectable to nearby devices.
  4. Change the dongle's Bluetooth name to an arbitrary string (sends HCI_Write_Local_Name + HCI_Write_Extended_Inquiry_Response) — visible on any nearby phone/laptop scanning for Bluetooth.
  5. Send additional HCI commands: disable authentication, disable encryption, read BD_ADDR — proving full HCI control.

(Of course, after the first click from the user that chooses the device, the next clicks are not needed, and I added the buttons in the PoC page for ease of understanding the attack steps.)

PoC video - https://youtu.be/o7nxTAua9wA Demonstrates the exploit end-to-end on two machines. A second computer's Bluetooth scan initially doesn't show the target device. The victim machine runs the PoC: connects the USB BT dongle, verifies claimInterface is blocked, then clicks "Make Connectable." The second computer's scan now shows the dongle appearing as "Bluetooth - Ariel's MacBook Pro." The PoC then changes the name to "HACKED_BY_WEBUSB" — the second computer's rescan confirms the name change. Finally, bonus commands disable authentication and encryption, proving unrestricted HCI access.

Tested on: Chrome Version 145.0.7632.117 macOS 26.3 and Ubuntu 24.04. Affects all platforms with WebUSB support (Windows, macOS, Linux, ChromeOS, etc).

Root cause:

The CVE-2018-6125 fix added blocked_interface_classes_ to prevent web access to sensitive USB classes (Bluetooth 0xE0, mass storage 0x08, etc.). This protection is correctly enforced in ClaimInterface() (device_impl.cc:277–282), which checks every alternate setting's class code before allowing an interface to be claimed.

However, HasControlTransferPermission() was implemented with an early-return that exempts DEVICE and OTHER recipients from all validation:

C++
// device_impl.cc:162-164
if (recipient != UsbControlTransferRecipient::INTERFACE &&
    recipient != UsbControlTransferRecipient::ENDPOINT) {
  return true;  // ← BUG: skips blocked_interface_classes_ check entirely
}

This creates a 2-layer bypass:

  1. Renderer (Blink): ConvertControlTransferParameters performs no validation for recipient: "device" — no EnsureInterfaceClaimed, no class check.
  2. Browser (device service): HasControlTransferPermission returns true unconditionally for DEVICE/OTHER recipients — no blocked_interface_classes_ check.

The fix should validate that DEVICE-recipient control transfers do not target functionality of blocked interface classes. For class-specific requests (requestType: "class"), the index field typically identifies the target interface — this should be checked against blocked_interface_classes_ regardless of recipient type.

Impact analysis

Any website can exploit this — no special permissions, no extensions, no user login required. The user only needs to click once in the WebUSB device chooser. Obtaining this click is straightforward via social engineering — a phishing page posing as a legitimate USB device configuration tool, firmware updater, or printer setup wizard naturally prompts the user to "select your device" from the chooser - no security warning present.

What the attacker gains — full control over protected USB device classes:

  • Bluetooth adapter takeover: As shown in the PoC video - send arbitrary HCI commands to take over the system's Bluetooth radio — make it discoverable, disable authentication and encryption, change its name. This likely enables CVE-2023-45866-style keyboard injection: a nearby attacker pairs as a fake HID keyboard via SSP Just Works (no user prompt) and injects keystrokes for remote code execution.
  • WiFi adapter firmware overwrite: USB WiFi chipsets (Realtek RTL8xxxU, Atheros, MediaTek) accept firmware upload via vendor control transfers on EP0. A webpage could theoretically push a backdoored firmware image, achieving persistent code execution on the WiFi chip that survives browser restarts.
  • Many other attacks that I did not verify; Smart card readers, FIDO keys, and mass storage devices all accept commands via control transfers — theoretically allowing certificate exfiltration, data theft, or unauthorized signing from a webpage. DFU-capable devices (keyboards, mice, dongles) could have their firmware overwritten for persistent hardware compromise.

The core issue: the user clicks "Connect" for one device, but the attacker silently accesses every protected interface on it. The CVE-2018-6125 protection that was supposed to prevent exactly this is completely bypassed.


The cause

What version of Chrome have you found the security issue in?

Version 145.0.7632.117 Stable

Is the security issue related to a crash?

No, it is not related to a crash.

Choose the type of vulnerability

Exploit Mitigation Bypass

How would you like to be publicly acknowledged for your report?

Ariel Simon

The original report as published on the Chromium issue tracker, by Ariel Simon. 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

The permission check for control transfers returns true early for device and other recipients, skipping the blocked interface class validation that exists for interface and endpoint recipients.

Impact

An attacker could take full control of a protected USB device such as a Bluetooth adapter, potentially enabling keyboard injection or firmware overwrite, though the report notes some attacks were not verified.

What the attacker needed

Victim clicks to select a USB device; attacker lures victim to a malicious webpage; victim has a protected USB device connected

The fix

The fix should validate that device-recipient control transfers do not target functionality of blocked interface classes, checking the index field against blocked_interface_classes_ regardless of recipient type.

How it was found

  1. Connect to any USB Bluetooth dongle via the WebUSB chooser.
  2. Verify that claiming interface 0 is blocked, confirming class 0xE0 protection is active.
  3. Bypass the protection by sending HCI commands via controlTransferOut with recipient set to 'device'.
  4. Change the dongle's Bluetooth name to an arbitrary string.
  5. Send additional HCI commands to disable authentication and encryption, and read the device address.

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.

WebUSB lets websites talk to USB devices after you pick one from a pop-up. A security check was supposed to block access to sensitive device types like Bluetooth adapters, but a flaw let a website bypass that check and take full control of the device. An attacker just needs you to click once to select the 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.

More by Ariel Simon

View all

1 more disclosed report, best first.

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.