[Bug Bounty] 600$ Info Disclosure: obtain any user’s backup data
The backup endpoint authenticated users with a token that was just a six-digit number, and the same number was returned by another endpoint that provided the machine ID for any account. An attacker could obtain any user's backup data by supplying only that number.
Published on medium.com
Friend Link for those without a Medium Paid subscription: https://medium.com/@tdpdev/febf5b7ea745?source=friendslink&sk=7994ed9c8ead5b580054463f37cca804
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 backup endpoint used a predictable six-digit machine ID as the sole authentication token, and that ID was exposed by another endpoint.
Impact
An attacker could obtain any user's backup data by knowing or brute-forcing the six-digit machine ID, though brute-force was not practical.
What the attacker needed
A user account; knowledge of the victim's machine ID
The fix
The backup endpoint should require proper authentication instead of relying on a predictable machine ID.
How it was found
- Log in to the app and observe the backup request containing a token in the POST data.
- Create a second account and compare tokens; notice the same six-digit prefix.
- Send the backup request with only the six-digit number as the token and receive backup data for both users.
- Search HTTP history for the number and find it in the response to a GET request for the machineID.
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 token is a secret code used to prove who you are. Here, the token was just a short number that could be found by asking another part of the app for a user's machine ID. So anyone could pretend to be another user and download their backup data.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.