Brute force login and bypass locked account restrictions via iOS app
The mobile sign-in endpoint lacked the rate limiting and account lockout enforced on the website, allowing an attacker to brute force any user's password. An attacker could also bypass an existing web lockout by using the mobile endpoint.
- Triaged in 25 hours
- Fixed in 9 days
- Paid in 9 days
- Disclosed after 33 days
When logging in to an account on the website, a user's account gets locked out after ~15 tries to prevent an attacker from brute forcing access to the account.
These same restrictions do not apply to the mobile sign-in endpoint (a POST request to https://www.instacart.com/oauth/token), which allows an attacker to brute force login of any user's account (I have attempted logging into my account ~50 times, with no restrictions).
In addition, if an account has already been locked from too many sign-ins on the website, an attacker can still log in using the app's endpoint.
POC:
- Configure a mobile proxy, such as BurpSuite.
- Make a login request in the Instacart app.
- Repeat this request to brute force any account's password.
As an example, I found a list of the most common 100 passwords and added my own password somewhere in the list. All invalid passwords returned a 401 error, while the correct password returned a 200 error.
Suggested fix:
Apply the same rate limiting and locking-out to mobile login as web login.
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
Impact
An attacker could brute force any user's password through the mobile endpoint and could still log in to accounts already locked on the website.
What the attacker needed
Mobile app installed; ability to intercept app traffic; valid username or email
The fix
The mobile login endpoint should apply the same rate limiting and account lockout as the web login.
How it was found
- Configure a mobile proxy such as BurpSuite.
- Make a login request in the Instacart app.
- Repeat this request to brute force any account's password.
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.
Websites often lock an account after too many wrong password attempts to stop attackers guessing passwords. Here, the mobile app's login endpoint did not have that lock, so someone could keep guessing passwords without being stopped. They could also get around a lock that was already in place on the website.
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.