Say Friend and Enter: Digitally lockpicking an advanced smart lock (Part 2)
The lock's firmware accepts unencrypted messages due to a flaw in the decryption function, and the app can be tricked into downgrading the protocol to expose the unlock key. An attacker can then brute-force the challenge response to open the lock.
alephsecurity.com
Published on alephsecurity.com
The first part of this research explained the work that was done in order to understand the inner workings of Sciener’s firmware, as well as the TTLock application. In this part, we will go over the vulnerabilities we have discovered based on that knowledge and understanding.
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
Impact
An attacker within Bluetooth range could open the lock in about 40 minutes on average, but this requires a man-in-the-middle position and the lock does not limit attempts.
What the attacker needed
Bluetooth range to the lock; Ability to impersonate the lock (MITM)
How it was found
- Keep the lock busy so the app connects to the impersonation device.
- Store the AES-encrypted authorization message.
- Reply with a challenge request with a known value while downgrading the protocol.
- Receive an unencrypted challenge response and calculate the unlockKey.
- Connect to the lock and supply the stored authorization message.
- Respond with unencrypted challenge responses, enumerating possible challenge values until the lock opens.
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.
The smart lock uses encryption to talk to the phone app, but a bug lets an attacker send unencrypted commands that the lock still processes. Also, the app can be fooled into revealing a secret key by pretending to be the lock. With these, an attacker can guess the correct response to open the lock.
What is Crypto?
Encryption, signatures, randomness or certificate checks that do not protect what they claim to.