shopper login_code's can be brute forced
The shopper login code verification endpoint had no limit on attempts, so an attacker could guess the short numeric code by brute force. With a known phone number, an attacker could take over a shopper account and log in.
b6117130df17feef13481e3 Follow
Originally disclosed on HackerOne
- Triaged in 5 days
- Fixed in 5 days
- Paid in 5 days
- Disclosed after 38 days
Hi,
I didn't see in the scope of your program, but it is a security weakness, so you must know this. If you don't care about shoppers' accounts then you can just mark this report as informative.
- First I tried to register a shopper account at https://shoppers.instacart.com/
- Used a fake email address and a FAKE phone number, for phone number I entered 888-999-5555
- Then your system sent me my login_code from the url https://shoppers.instacart.com/send_login_code via POST request with the data "utf8=%E2%9C%93&phone=(888)+999-5555"
- And requested me to verify the login_code with the url https://shoppers.instacart.com/verify_login_code via POST request "utf8=%E2%9C%93&phone=(888)+999-5555&login_code=3425&commit=Submit"
- After sending some wrong login_codes, I got the response {"error":"Sorry, but that code is incorrect."} form /verify_login_code with a 404 Header.
- Then I tried to brute force the login code with random numbers ( 5 digits, total possibility 100K )
- login_code was broken on 43K
- response was: {"redirect_to":"/apply"}, and HTTP status was: 200 (changed from 404)
- tried to login on https://shoppers.instacart.com/login with the phone number, I logged in successfully with the password "instacart" which was sent to my fake email address.
- I also set up a face-to-face interview but canceled later not to make you wait an invisible man :))
These all means you can attack a shopper's accounts by finding by shopper's phone number. So, you must limit verifying login code by 3 or 10 attempts (how much you like) to prevent this. Then send another code if attacker fails to start over.
Regards.
Attachments



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 code verification endpoint did not rate-limit or lock out repeated failed attempts, allowing unlimited guesses of a short numeric code.
Impact
An attacker who knows a shopper's phone number could brute force the login code and take over that shopper's account.
What the attacker needed
Knowledge of victim's phone number; no rate limit on code attempts
How it was found
- Register a shopper account using a fake email address and a fake phone number.
- Request a login code to be sent to that phone number.
- Submit wrong login codes and observe the incorrect-code error response.
- Brute force the five-digit login code with random numbers until it is accepted.
- Log in with the phone number and the password sent to the fake email address.
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 sign in, the site sends a short number to your phone and asks you to type it in. This report shows the site let someone try that number over and over with no limit, so a computer could simply guess until it was right. Once the right number was found, the attacker could get into 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.