Newshot

Bluetooth2Shell: One tap of pairing is all it takes

Original text(via Lobsters)

Why a headset becomes a backdoor

The bug is in service discovery. After a normal pairing, the host exposes a serial port profile over RFCOMM and trusts the link key without checking that the other device is what it claims to be. An attacker who finishes that handshake can open the channel and type into a PTY. Several stacks hand the stream to a shell and treat it as a feature.

Walk into range

Classic Bluetooth, about ten meters. No Wi-Fi, no account, no prior access.

Pair like any other gadget

The host shows a normal “Device wants to pair?” prompt. Saying yes writes a valid link key, the same way it would for a keyboard or a watch. If both sides show PIN 0000, they match. They always match.

Open the RFCOMM serial channel

A well-formed service declaration is enough. The host binds the channel to a pseudo-terminal instead of ignoring it.

Root, no further auth

Commands typed into the RFCOMM stream come back as output from root@victim-laptop. A second bug in the same daemon skips the user session and lands in a root PTY.

The exploit, visualized

A capture of the pairing, the channel bind, and the first commands on the resulting root shell.

Live exploit capture

Protocol exchange

Who’s affected

Any device that can pair and also has a shell. That is most of them.

PlatformComponentsImpactSeverity
LinuxBlueZ ≥ 5.49, obexd / rfcomm ptyRemote root shellCRITICAL
macOSCoreBluetooth + IOBluetooth serialUser shell, then root via the same daemonCRITICAL
WindowsRfcomm.sys, bthservLOCAL SYSTEMCRITICAL
iOS / iPadOSBTHCI + Personal Hotspot agentPrivileged app contextHIGH
AndroidBluetooth stack, SerialPort HALApp-level RCEHIGH
Car stereosThe head unit paired in 2019Still connected; now playing .bash_historyCRITICAL

This page is the advisory. Vendors were notified. Several asked whether the device was in range on purpose. Patch notes, when they exist, will appear here.

Protect your devices

Until vendor patches land, these help a little.

Turn Bluetooth off when you are not using it

The attack needs radio range. A disabled adapter is a closed port.

Decline pairing prompts you did not start

If both sides show 0000, they match. That is not a reason to accept. Say no to names you do not recognize, even familiar ones.

Turn off unused serial profiles

On Linux, stop unneeded RFCOMM/SPP agents. On Windows, remove the Serial Port device for adapters you do not trust.

Patch the stack

Apply vendor fixes as they ship. Check your kernel or BlueZ version against the fixed-version list, once there is one.

Watch for new links

Log new adapter addresses. Alert on any RFCOMM channel from a device that is not on your allow list, including the car.

Keep critical hosts out of range

If a root shell would be a bad day (controllers, medical, CI), leave Bluetooth off, or in another room.

The text above was extracted automatically from the source page and may miss images, tables or code blocks. The original is authoritative.

Published by Lobsters
This site only summarises and aggregates; copyright stays with the original author. Headlines and summaries follow the source — where they differ, the original wins.
Read the original ↗