Say Friend and Enter: Digitally lockpicking an advanced smart lock
The researchers reverse-engineered a Bluetooth smart lock and its companion app, finding that the lock performs no authentication at the BLE layer and that the app's challenge-response scheme relies on a shared secret plus a random challenge. They built an ESP32 device that impersonates the lock (or the app) to intercept and replay the communication, which could let an attacker unlock the door.
alephsecurity.com
Published on alephsecurity.com
A modern smart home contains many different types of devices. And among them - we thought that smart locks would be a very intriguing target.
The full write-up lives on its author's site
It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.
Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the lock accepts BLE connections from any device and delegates all authentication to an application-layer challenge-response that can be observed and replayed by an impersonating device.
Impact
An attacker within Bluetooth range could impersonate the lock to the app or the app to the lock, potentially capturing the material needed to unlock the door.
What the attacker needed
Bluetooth range of the lock; ESP32 or similar BLE device; Knowledge of the lock's BLE address
The fix
The lock should authenticate peers at the BLE layer (for example with pairing and bonding) rather than relying only on an application-layer challenge.
How it was found
- Set the ESP32's MAC address to match the lock's address
- Initialise the BLE stack as a peripheral device
- Expose the same BLE services and characteristics as the lock
- Handle writes to the command characteristic and reply on the notification characteristic
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 write-up has not been written yet. The Original tab links to the source.
A smart lock talks to a phone app over Bluetooth. The lock itself does not check who is connecting at the Bluetooth level; it only checks a password later in the conversation. The researchers made a fake lock with a cheap chip that copied the real lock's Bluetooth identity, so the app would talk to it and reveal how the unlocking conversation works.
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.