Skip to content
Account takeover Disclosed report Beginner

No Rate limit on change password leads to account takeover

The change password function on Reddit lacked rate limiting, allowing an attacker to brute-force the old password. With the correct old password, an attacker who already has session cookies could take over the account.

dreamispossible Follow

Originally disclosed on HackerOne

  • Disclosed after 8 months

Summary:

I found when login and go to changing password, there is no rate limit on that function, which leads to takeover the account.

Steps To Reproduce:

1-Create account on (https://old.reddit.com) & move to your setting,In my case I chose !23Qweasdzxc as the password.

2-Go to change password on (https://old.reddit.com/prefs/update/#) & enter the wrong password in old password and enter new password and confirm the password.

3-Intercept the request & send it to Burp Intruder .

4-Make word-list & and start Brute Forcing.Make sure to add the correct password in the wordlist, I made 8890 words in the wordlist

finally you can see the correct password in the response.like the following response . ███

And as you can see I made more than 8000 requests. and there is no rate limit.

Screenshot_from_2021-04-15_02-03-58.png
Screenshot_from_2021-04-15_02-03-58.png From the original on HackerOne

Impact

If the attacker gets the user's cookies through XSS or in somehow,he is able to takeover the account.

The original report as published on HackerOne, by dreamispossible. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 change password endpoint did not enforce a limit on the number of attempts, allowing unlimited brute-force guesses of the old password.

Impact

An attacker who already has the victim's cookies could brute-force the old password and take over the account.

What the attacker needed

A free account; victim's session cookies; ability to send many requests

How it was found

  1. Create an account and go to settings.
  2. Go to the change password page and enter a wrong old password with a new password.
  3. Intercept the request and send it to Burp Intruder.
  4. Create a wordlist and start brute-forcing, ensuring the correct password is included.
  5. Observe the correct password in the response after many requests.

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.

A rate limit stops someone from trying many passwords quickly. Here, the password change form let an attacker guess the old password over and over without being blocked. If the attacker also had the victim's session cookie, they could then 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.

More from Reddit

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.