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.
- 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:
- Sign in on https://www.teamoutpost.com/
███
- redirect to https://app.outpost.co/sign-in to login
█████████
- test any login credentials and review the request to https://api.outpost.co/api/v1/login
███████
- 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
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
- Sign in on the website and get redirected to the login page.
- Test any login credentials and review the request to the login API.
- Notice the different error messages for wrong username and wrong password.
- Brute-force usernames and grep for the 'Username does not exist' message to find valid usernames.
- Use the list of valid usernames to brute-force passwords for each account.
- 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.