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.
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.

Impact
If the attacker gets the user's cookies through XSS or in somehow,he is able to takeover the account.
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
- Create an account and go to settings.
- Go to the change password page and enter a wrong old password with a new password.
- Intercept the request and send it to Burp Intruder.
- Create a wordlist and start brute-forcing, ensuring the correct password is included.
- 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.