*Interesting Account Takeover Bug Writeup Bug Bounty Hunting*
The email registration check endpoint returned the full user record, including the MD5 password hash, when the email was already registered. An attacker could submit an email address and obtain the hash, then crack it to recover the plaintext password and take over the account.
I was working on an e-commerce target which didn’t have any Bug Bounty Program or Vulnerability Disclosure Policy. But luckily I saw the company has recently applied a patch and it was showing on the openbugbounty.org page.
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 password hashes for registered users and crack weak ones to take over accounts.
What the attacker needed
No account needed; knowledge of a victim's email address
The fix
The endpoint should return only a boolean indicating whether the email is registered, never the user record or password hash.
How it was found
- Submit an email address to the registration check endpoint.
- Observe that the response for an existing account contains the full user record.
- Copy the MD5 password hash from the response.
- Crack the hash to recover the plaintext password.
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.
When you sign up, the site checks if your email is already used. Here, that check sent back the whole account record, including a scrambled form of the password called a hash. Because the hash was weak, the author could unscramble it and log in as the user.
What is Info disclosure?
Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.