Incorrect authorization in Device (CVE-2026-79003)
WebHID security checks only inspect top-level collections, so a crafted HID device can hide a sensitive collection such as a keyboard inside a benign gamepad collection. An untrusted website could then read the sensitive input reports, for example keystrokes.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 2 months
Flapjack, 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: A logic flaw in the WebHID implementation allows a crafted HID device to bypass usage-based protections and security blocklists. By nesting a sensitive collection (like Keyboard or FIDO) inside a benign Top-Level Collection, the device's protected reports can be exposed to untrusted web content.
Affected files:
services/device/public/cpp/hid/hid_blocklist.ccservices/device/hid/hid_connection.cccontent/browser/hid/hid_service.ccthird_party/blink/renderer/modules/hid/hid_device.ccservices/device/public/cpp/hid/hid_report_utils.cccontent/browser/service_worker/service_worker_hid_delegate_observer.cc
Estimated timestamp from git blame: Unknown (Google3 checkout)
Summary
Chromium's WebHID implementation protects sensitive HID reports (e.g., Keyboards, FIDO security keys) from being accessed by untrusted websites. These protections rely on evaluating the usage pages of the device's Top-Level Collections (TLCs).
However, a logic flaw exists where multiple security checks fail to recursively inspect nested child collections. Because the HID descriptor parser propagates report items to ancestor collections, a crafted HID device can define a sensitive usage within a nested collection beneath a benign TLC (such as a Gamepad). This causes the sensitive reports to be incorrectly evaluated against the benign TLC's usage, bypassing blocklists and runtime protections, and allowing an untrusted website to read sensitive input (e.g., keystrokes).
Potential Attack Steps
Note: These are suggested steps based on source code analysis, as our tooling agent cannot execute a working proof of concept.
- Device Crafting: An attacker connects a crafted physical or emulated HID device. The device's report descriptor defines a benign Top-Level Collection (TLC), such as
Generic Desktop / Gamepad(Usage Page 0x01, Usage 0x05). - Nested Sensitive Usage: Inside this TLC, the descriptor defines a nested child collection with a protected usage, such as
Keyboard(Usage Page 0x07) orFIDO(Usage Page 0xF1D0). - Report Definition: An Input Report (e.g., Report ID 1) is defined within the nested child collection.
- Descriptor Parsing: During device initialization,
device::HidCollection::AddReportItemparses the descriptor and propagates the Input Report item up the hierarchy to the parent benign TLC. - Blocklist Bypass: The browser evaluates the HID blocklist via
HidBlocklist::CheckBlocklistEntry. This function only iterates over thecollectionsarray (which contains only TLCs). Since the TLC usage isGamepad, it does not match FIDO or Keyboard blocklist rules, and the function fails to recurse into the child collections. Report ID 1 is not marked as protected. - WebHID Filtering Bypass: When an untrusted website requests the device via
navigator.hid.requestDevice(),HidService::RemoveProtectedReportsand Blink'sHIDDevice::UpdateDeviceInfofilter the exposed device information. Both functions evaluate only the TLC's usage, leaving the sensitive reports exposed in the JavaScriptHIDDeviceobject. - Runtime Protection Bypass: The website calls
device.open()and listens forinputreportevents. When the device sends a sensitive payload on Report ID 1,HidConnection::IsReportProtectedvalidates the report. It usesFindCollectionWithReport, which locates the report in the benign TLC (due to step 4). The runtime check evaluates the benignGamepadusage and allows the report through. - Data Exfiltration: The untrusted website successfully receives the sensitive
inputreportevent.
Suggested Fix
To address this bypass, the security filters must properly account for nested collections:
- Recursive Blocklisting:
CheckBlocklistEntryinservices/device/public/cpp/hid/hid_blocklist.ccshould recursively evaluatecollection->childrenwhen checking usage pages, ensuring reports nested under sensitive usages are added to the protected IDs lists. - Precise Report Mapping:
FindCollectionWithReportinservices/device/public/cpp/hid/hid_report_utils.cccurrently returns the first matching collection, which is often the TLC due to propagation. It should be updated to return the innermost collection that defines the report, or the runtime checks inHidConnection::IsReportProtectedshould recursively verify the usage of all nested collections associated with the report. - UI/Renderer Filtering:
HidService::RemoveProtectedReportsandHIDDevice::UpdateDeviceInfoshould recursively evaluate nested collections to ensure protected nested collections are removed from the WebHID API surface.
Evaluated with Chrome root at commit: 2155cb00003ec35716a76ed3246eae995f87b7ff
Results so far have been promising, but there can be wrong deductions. Feel free to adjust as follows:
- If you are familiar with the severity guidelines, you may adjust the severity.
- If this is a false positive, and there's no work to be done, please close as WAI.
- If there is work to do here but not a vulnerability, please change the issue type to Task/Bug/FR.
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 blocklist, report-filtering and runtime protection checks only evaluate top-level collection usages and never recurse into nested child collections, while the parser propagates report items up to the parent collection.
What the attacker needed
Attacker supplies a crafted or emulated HID device; victim connects the device; victim visits a malicious website; website requests HID device access
The fix
The security filters should be changed to recursively evaluate nested child collections when blocklisting, mapping reports and filtering the WebHID API surface.
How it was found
- Craft a HID device whose descriptor defines a benign top-level collection such as a gamepad.
- Nest a child collection with a protected usage, such as keyboard or FIDO, inside it.
- Define an input report within the nested child collection.
- During initialisation the parser propagates the report item up to the benign parent collection.
- The blocklist check only looks at top-level collections, so the report is not marked protected.
- A website requests the device, opens it and receives the sensitive input report events.
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.
WebHID lets websites talk to USB input devices like gamepads and keyboards. Chromium tries to block websites from reading keyboards and security keys, but it only checks the device's outer description, not the parts nested inside it. A malicious device can therefore disguise a keyboard as a gamepad and let a website read what is typed.
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.