
Security research and controlled validation of CVE-2023-45866, examining unauthenticated Bluetooth HID connections, keystroke injection, affected configurations, and mitigations.
Hands-on security research and controlled validation of CVE-2023-45866, a Bluetooth HID authentication vulnerability that can allow unauthorized input injection against affected devices.
This project examined the vulnerability from both an offensive security and defensive security perspective. Research included Bluetooth device discovery, hardware compatibility testing, BlueDucky analysis, controlled HID keystroke injection against an authorized Android test device, payload development, and mitigation research.
Research Ethics: All testing was conducted against personally authorized devices in a controlled research environment. Bluetooth MAC addresses and identifying information have been sanitized from this public repository.
The objective of this project was to understand how improper authentication during Bluetooth HID interactions could allow an unauthorized device to impersonate a keyboard and inject keystrokes into a vulnerable target.
The research focused on:
CVE-2023-45866 involves improper authentication associated with Bluetooth Human Interface Device (HID) functionality.
A vulnerable implementation may incorrectly trust an unauthorized Bluetooth device presenting itself as a keyboard or similar HID peripheral.
This can create a condition where attacker-controlled keyboard input is accepted without the normal level of authentication expected for an untrusted peripheral.
Successful exploitation can allow an unauthorized Bluetooth HID device to generate input such as:
The security issue is particularly significant because injected input can occur rapidly and appear to the operating system as legitimate keyboard activity.
| Component | Research Configuration |
|---|---|
| Testing Platform | Kali Linux |
| Research Tool | BlueDucky |
| Target Device | Authorized Android test device |
| Target OS | Android 11 |
| Security Patch | Pre-December 2023 patch level |
| Wireless Protocol | Bluetooth |
| Attack Interface | Compatible Bluetooth adapter |
| Attack Technique | Bluetooth HID keyboard impersonation |
| Payload Type | Controlled keystroke injection |
The Android device used for testing was running Android 11 with a security patch predating the December 2023 remediation applicable to the vulnerability.
An important part of the project was determining that not every Bluetooth adapter was suitable for the experiment.
The Bluetooth hardware needed to support the behavior required to emulate a Human Interface Device during the controlled test.
This required investigating:

The Linux testing system was used to verify that the selected Bluetooth hardware was recognized and available to the research environment.
The experiment followed a structured workflow.
A Linux-based testing environment was prepared with the required Bluetooth tooling and BlueDucky research implementation.

Bluetooth scanning was used to identify discoverable devices within the research environment.

Bluetooth addresses visible in the original research evidence have been redacted from the public repository.
Discovery alone was not treated as proof of vulnerability. Devices identified through scanning were considered potential research targets until exploitability was validated through controlled testing.
BlueDucky processed discovered Bluetooth devices and presented available devices for testing.

The authorized Android test device was identified within the controlled environment and selected for further validation.
BlueDucky supports targeting a known Bluetooth device using its Bluetooth hardware address.

The actual Bluetooth address used during testing has been removed from the public documentation.
The authorized Android device was selected and the available research payloads were reviewed.

Custom payload development was used to test whether HID-generated keyboard input would be accepted by the device.
A custom payload was created to demonstrate the security impact of unauthorized HID input.
Rather than executing destructive actions, the payload performed a controlled user-interface demonstration.
The payload was designed to:
The experiment demonstrated how a sequence of injected HID keystrokes could automate user-interface interaction extremely quickly.
No credential theft, persistence, destructive activity, or unauthorized data access was performed.
During execution, BlueDucky processed the configured keystroke sequence and attempted to transmit the individual keyboard inputs to the authorized test device.

The execution output demonstrates BlueDucky processing the keyboard sequence required for the controlled browser-navigation demonstration.
The experiment demonstrated several important findings: