UI misrepresentation in Browser (CVE-2026-79011)
The Bluetooth pairing confirmation dialog focuses the OK button and allows key events during the input protection period, so a malicious page working with a rogue Bluetooth device could trick a user into pressing Enter or Space to accept pairing without verifying the passkey. This bypasses the numeric comparison check and lets the device establish an authenticated bond.
Google Chrome
Originally disclosed on Chrome VRP
- Fix shipped in 3 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. Please see https://chromium.googlesource.com/chromium/src/+/main/docs/security/ai-generated-security-bugs-faq.md for more information.
Overview: The BluetoothDevicePairConfirmView dialog defaults to focusing the OK button and permits key events during the input protection period. An attacker-controlled page, cooperating with a malicious Bluetooth peripheral, can potentially social-engineer keypresses to instantly accept the pairing prompt. This allows a remote Bluetooth device to establish an authenticated bond without the user comparing or verifying the passkey.
Affected files:
chrome/browser/ui/views/bluetooth_device_pair_confirm_view.ccchrome/browser/ui/views/bluetooth_device_pair_confirm_view.h
Estimated timestamp from git blame: 2022-06-08
Summary and Root Cause Analysis
There is a potential UI/input-protection bypass (keyjacking) vulnerability in BluetoothDevicePairConfirmView (chrome/browser/ui/views/bluetooth_device_pair_confirm_view.cc). When the dialog is shown to confirm secure Bluetooth pairing, it defaults to focusing the "OK" button and permits key events during the input protection period. An attacker could leverage this to instantly accept the pairing prompt via social-engineered keystrokes (such as Space or Enter), bypassing the Secure Simple Pairing (SSP) Numeric Comparison verification.
BluetoothDevicePairConfirmView inherits from views::DialogDelegateView but does not override ShouldAllowKeyEventsDuringInputProtection(). Because of this, the default behaviors from DialogDelegate apply:
-
GetInitiallyFocusedView()defaults to returning the "OK" button. -
ShouldAllowKeyEventsDuringInputProtection()returnstrue:C++ bool DialogDelegate::ShouldAllowKeyEventsDuringInputProtection() const { return true; }
When the dialog is shown tab-modally using constrained_window::ShowWebModalDialogViews, the tab-modal manager (NativeWebContentsModalDialogManagerViews::Focus) immediately requests keyboard focus on the "OK" button.
If a key event (such as VKEY_RETURN or VKEY_SPACE) is dispatched while the button is focused, Button::NotifyClick triggers the click callback. During verification of input protection in DialogClientView::ButtonPressed, the input protector checks:
if (!delegate ||
input_protector_->IsPossiblyUnintendedInteraction(
event, /*allow_key_events=*/delegate
->ShouldAllowKeyEventsDuringInputProtection())) {
return;
}
Because allow_key_events is true, IsPossiblyUnintendedInteraction in ui/views/input_event_activation_protector.cc permits the key event to bypass the safety time-gate check (which is designed to prevent click/tap interactions for the first 500 ms):
if (event.IsKeyEvent() && event.AsKeyEvent()->is_repeat()) {
return true;
}
if (!event.IsMouseEvent() && !event.IsTouchEvent() && !event.IsGestureEvent()) {
if (allow_key_events || !event.IsKeyEvent()) {
return false; // Non-repeat key event allowed immediately, bypassing the 500 ms check
}
}
Consequently, the first non-repeat Enter or Space press arriving after the dialog is shown executes AcceptDialog(), triggering BluetoothDevicePairConfirmView::OnDialogAccepted() which confirms the pairing.
Potential Attack Scenario
Note: These are potential steps that an attacker might follow. Our tooling agent does not currently have the ability to execute code or verify the exploit end-to-end on running systems.
- The victim grants Web Bluetooth chooser access to an attacker-controlled BLE peripheral (e.g., via
navigator.bluetooth.requestDevice()). - The attacker's page social-engineers the user into typing or repeatedly pressing
EnterorSpace(such as in an embedded mini-game). - The page initiates a read operation on an authenticated/encryption-required characteristic.
- The BLE peripheral rejects the read with
Insufficient Authentication. On platforms utilizing Web Bluetooth on-demand pairing (Windows, Linux, and ChromeOS), this triggersOnCharacteristicReadValue->PairForCharacteristicReadValue->PromptForBluetoothPairing. - The pairing dialog (
BluetoothDevicePairConfirmView) appears, instantly stealing focus to the "OK" button. - A pending or newly-pressed non-repeat Enter or Space key event executes
AcceptDialog()without requiring the user to read the 6-digit passkey or confirm the pairing manually. - Once paired, the malicious BLE peripheral can present itself to the operating system as a trusted Bluetooth HID keyboard, injecting keystrokes to compromise the host OS outside of the browser sandbox.
Suggested Fix
To remediate this, BluetoothDevicePairConfirmView should override ShouldAllowKeyEventsDuringInputProtection() to return false (similar to ExternalProtocolDialog or ExtensionInstallDialogView):
bool BluetoothDevicePairConfirmView::ShouldAllowKeyEventsDuringInputProtection() const {
return false;
}
This ensures that the 500 ms InputEventActivationProtector time-gate is enforced for all keyboard events, preventing accidental activation or automated keyjacking.
Evaluated with Chrome root at commit: 5133b93d189b383c37805b1cf3a9d2dbfe8d7379
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
The dialog does not override ShouldAllowKeyEventsDuringInputProtection(), so the default allows key events to bypass the 500 ms input protection and the OK button is focused by default.
Impact
A malicious Bluetooth peripheral could establish an authenticated bond without the user verifying the passkey, and could then present itself as a trusted HID keyboard to inject keystrokes outside the browser sandbox.
What the attacker needed
Victim grants Web Bluetooth access; attacker-controlled BLE peripheral; victim presses Enter or Space; platform with on-demand pairing
The fix
The dialog should override ShouldAllowKeyEventsDuringInputProtection() to return false so the 500 ms input protection applies to keyboard events.
How it was found
- The victim grants Web Bluetooth chooser access to an attacker-controlled BLE peripheral.
- The attacker's page social-engineers the user into typing or repeatedly pressing Enter or Space.
- The page initiates a read operation on an authenticated characteristic.
- The BLE peripheral rejects the read with Insufficient Authentication, triggering the pairing prompt.
- The pairing dialog appears and instantly steals focus to the OK button.
- A pending or newly-pressed non-repeat Enter or Space key event executes AcceptDialog().
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 pair a Bluetooth device, a dialog asks you to confirm a code so you know it is the right device. This report says that dialog puts the cursor on the OK button and ignores a short safety delay for key presses, so if you happen to press Enter or Space at that moment, the pairing is accepted without you checking the code. A bad website plus a fake Bluetooth device could use that to pair without your consent.
What is UI spoofing?
The interface lies to the user: a framed page catches their clicks, or a browser shows the wrong address or a fake prompt. Paid when it leads to a sensitive action or convincing phishing.