Account takeover
The password reset token in the reset link was guessable and the server had no brute-force protection, so an attacker could repeatedly try tokens until a valid one was found. With a valid token, an attacker could reset the password of any account whose email address was known.
- Disclosed after 22 days
Hello,
I found another bug on hackerone. This time it is very dangerous and creative. Hope you will definitely love it.
Any valid account on hackerone can be hacked. eg Co-founders @jobert and @michiel can also be hacked. I tried this one on my account only.
Lets go to the point ...
Things required to takeover complete account :
- Valid email-id which is registered on hackerone.
Now, chaining from my previously i.e lately reported bugs. User enumeration attack I reported recently.
One can find a registered email easily. eg [email protected] or [email protected]
Basic Idea :
- I am requesting a 'Reset Password link' to user's email.
eg. https://hackerone.com/users/password/edit?reset_password_token=MUm2xQ_TEtf2RaG1H3DK
- Guessing the reset_password_token i.e reset_password_token=MUm2xQ_TEtf2RaG1H3DK
As everyone replying my bug reports know that there is no BRUTE FORCE protection. I am doing the same.
Proof of concept :
- Generate a 'Reset Password link' of user whose account is to be compromised/hacked.
- Use a burp suite and configure it to do a Brute Force Attack on token
eg. https://hackerone.com/users/password/edit?reset_password_token=MUm2xQ_TEtf2RaG1H3DK
Now, it is very easy to identify valid reset_password_tokens.
Server Status 200 ---> valid Server Status 302 ----> invalid
length 4378 --->valid length 1525 --->invalid
- Try resetting password now.
- Login with email and password.
Special Note :
Attacker doing a brute force will get all valid tokens which are requested by user and are valid. So attacker can reset password of users.
This was all from me. Hope now you understand the severity and power of Brute Force. I am attaching a screenshot POC to show that there is no protection from server side as mentioned by @michiel and @jobert to me recently about brute force.
Just I made attack on my account. To show it I am attaching a screen shot. And there is really no protection from hackerone server. I have already made few thousands request and I am eagerly waiting for something to block me from server side.
Hope you quickly get back to me. :)
Regards, Pranav
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the reset token was not sufficiently random or long, and the endpoint lacked rate limiting or lockout, allowing unlimited guesses.
Impact
An attacker could take over any account whose email address is known, including those of co-founders, by brute-forcing the reset token.
What the attacker needed
Knowledge of the victim's registered email; ability to send many requests
How it was found
- Request a password reset link for the target user's email address.
- Use a tool to send many requests to the reset link with different token values.
- Identify valid tokens by the server response status and length.
- Use a valid token to reset the password.
- Log in with the new 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 report has not been written yet. The Original tab links to the source.
When you forget your password, a website emails you a special link containing a long random code called a token. If that code is short or predictable, and the site lets someone try many guesses without slowing them down, an attacker can keep guessing until they find the right one. Then they can set a new password and take over the account.
What is Account takeover?
Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.