Skip to content
Account takeover Disclosed report Beginner

Missing rate limit in current password change settings leads to Account takeover

The password change form did not limit how many times a user could try entering the current password. An attacker who already had a logged-in session could brute-force the current password and then set a new one, taking over the account.

m0hacks Follow

Originally disclosed on HackerOne

  • Disclosed after 6 months

Summary:

Happy Wednesday,

I've found a missing rate limit protection in https://reddit.com and https://vip.reddit.com in password change settings. Enter the current password security mechanism is implemented to prevent the the cyber attackers not to change the password without knowing the current password however due to lack of rate limiting at change password page this security strict can be bypassed by brute forcing.

Steps To Reproduce:

  1. Login to https://reddit.com/
  2. Navigate to user settings > Change password
  3. Enter incorrect password in old password field and enter a new matching passwords in other two fields
  4. Turn on your burpsuite proxy and click save
  5. You'll notice the error as Incorrect password
  6. send the request https://www.reddit.com/change_password to your burpsuite intruder to bruteforce
  7. Add the payload to the current_password parameter
  8. select list of passwords for like 100 lines and start attack

Note: The similar method is followed with https://vip.reddit.com too. PoC images of both the Brute-force succeeded domains have been attached.

Thank you

Impact

This can lead to an Account takeover due to no rate limitation in "current password change settings" in reddit.com and vip.reddit.com. A cyber attacker can bruteforce for account password continuously till he succeed. As you can see in the PoC image Cyber Attacker succeeded the bruteforce in 101st attempt for both the domains.

Attachments

br2.cleaned.png
br2.cleaned.png From the original on HackerOne
bruu.cleaned.png
bruu.cleaned.png

The original report as published on HackerOne, by m0hacks. 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 rate limit or lockout on repeated incorrect current-password attempts.

Impact

An attacker with an existing logged-in session could brute-force the current password and take over the account; the report says the brute-force succeeded on the 101st attempt for both domains.

What the attacker needed

Attacker has a logged-in session; victim's current password is guessable

How it was found

  1. Log in to the site.
  2. Go to user settings and open the change password page.
  3. Enter a wrong current password and matching new passwords in the other fields.
  4. With an intercepting proxy on, submit the form and see the incorrect password error.
  5. Send the change password request to an intrusion tool and place the payload on the current password parameter.
  6. Load a list of about 100 passwords and start the attack.

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 change your password, the site asks for your old password to make sure it is really you. This report says the site let someone guess that old password over and over without slowing down or blocking them. If an attacker already had access to your logged-in session, they could keep guessing until they found the right old password and then set a new one.

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.