Skip to content
Account takeover Disclosed report Beginner

weak protection against brute-forcing on login api leads to account takeover

The login API returned different error messages for non-existent usernames and incorrect passwords, and did not rate-limit requests. An attacker could enumerate valid usernames and then brute-force passwords, leading to account takeover, including admin accounts.

zer0code Follow

Originally disclosed on HackerOne

Critical View original
  • Triaged in 48 hours
  • Fixed in 14 days
  • Disclosed after 2.7 years

Summary:

Weak protection against brute-forcing on login API: https://api.outpost.co/api/v1/login leads to account takeover on https://www.teamoutpost.com/

Steps To Reproduce:

███

█████████

███████

  • Notice the difference between the wrong user "Username does not exist" and wrong password " Password does not match username"

████

  • first we need to brute-force on username to get some valid usernames

█████████

  • We can grep on "Username does not exist"

██████

  • Here is valid usernames without "Username does not exist"

██████████

  • Notice the API doesn't block me for many requests even I reached more than 33K request and continue

████

  • after we exported a list of valid usernames we can brute-force for password fore every username on the list

██████████

  • I imported valid usernames as 1st payload

██████

  • for 2nd payload I can use a passwords list but I tried the simplest password that user can register with " 9 characters long "

███████

  • we got some credentials even with ADMIN role

██████████

Impact

account takeover

The original report as published on HackerOne, by zer0code. 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 login API used distinct error messages for invalid username versus invalid password and lacked rate limiting, enabling username enumeration and brute-force attacks.

Impact

An attacker could take over user accounts, including admin accounts, by guessing credentials.

What the attacker needed

No account needed; network access to the login API

How it was found

  1. Sign in on the website and get redirected to the login page.
  2. Test any login credentials and review the request to the login API.
  3. Notice the different error messages for wrong username and wrong password.
  4. Brute-force usernames and grep for the 'Username does not exist' message to find valid usernames.
  5. Use the list of valid usernames to brute-force passwords for each account.
  6. Obtain valid credentials, including for an admin account.

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 try to log in, the system should not tell you whether the username exists or the password is wrong, because that helps attackers guess valid usernames. Also, the system should slow down or block repeated login attempts. Here, it did neither, so an attacker could try many usernames and passwords until they found working ones.

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 by zer0code

View all

1 more disclosed report, best first.

More from Palo Alto Software

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.