Slok API
The Slok smart lock's API used a three-digit code in a POST parameter to select the method, and the friend search method (code 270) returned user records including email addresses and phone numbers. By manually sending a request with a short keyword, an attacker could retrieve a record for every account, leaking personal data.
pentestpartners.com
Published on pentestpartners.com
You may have read my previous post where I had a look at the SLOK padlock and found it had an interesting BLE interface which I couldn’t find a vulnerability for and a physical design that took seconds to work around.
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 could obtain email addresses and phone numbers for all users, which is a privacy breach; the text notes no password hashes were found.
What the attacker needed
A valid user account; ability to send custom API requests
How it was found
- Authenticate to the API and obtain a valid vkey token.
- Send a POST request to the API with code=270 and a keyword parameter set to a common domain like mailinator.
- Observe that the response includes user records with email addresses and phone numbers.
- Manually send a request with a single-character keyword to bypass the app's minimum search length.
- Receive a response containing a record for every account.
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.
An API is how apps talk to servers. Here, the server had a search function that was too generous: when asked for users matching a short piece of text, it sent back lots of personal details like email addresses and phone numbers for many accounts. Anyone who could send the same request could get that data.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.