Change any Uber user's password through /rt/users/passwordless-signup - Account Takeover (critical)
The passwordless signup endpoint allowed setting a new password for any user identified by phone number, without verifying ownership of that number. An attacker who knew or guessed a victim's phone number could change their password and take over the account.
- Triaged in under an hour
- Fixed in 6 hours
- Paid in 20 days
- Disclosed after 36 days
Through the endpoint at /rt/users/passwordless-signup it is possible to change the password of any Uber user, given knowledge of their phone number (or by just enumerating phone numbers until one is found that is registered with Uber - not too hard given the number of Uber users).
I've tested this with Riders, the same might apply to Drivers or other user roles.
Request/response
Here is the request used (I've censored out my phone number):
POST /rt/users/passwordless-signup HTTP/1.1
Host: cn-geo1.uber.com
User-Agent: client/iphone/2.137.1
Connection: close
Content-Type: application/json
Content-Length: 197
{"phoneNumberE164":"+xxxxxxxx","userWorkflow":"PASSWORDLESS_SIGNUP","userRole":"client","mobileCountryISO2":"XX","state":"CREATE_NEW_PASSWORD","newPasswordData":{"newPassword":"12345678911a!"}}
And the response:
{"phoneNumberE164":"+xxxxxxxx","serverState":"SUCCEEDED","serverStateData":{"nextState":"SIGN_IN"},"tripVerifyStateData":{},"userMessage":"New password has been created. Please login with the new Password.","userRole":"client","userWorkflow":"PASSWORDLESS_SIGNUP"}
To replicate
- Create a new Rider account (I used the iOS app, but this probably does not matter).
- Replay the request shown above, changing the phoneNumberE164 field with the phone number you associated with your account (including country prefix and the plus sign, for example, +1xxx for US). You might need to replay it twice. You'll eventually get the "New password has been created." message; the new password has been set. The new password will be whatever you specified in the newPassword field in the request.
- Login using the new password on http://riders.uber.com/ or elsewhere.
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 endpoint trusted the phone number in the request without verifying ownership via an OTP or session, allowing password reset for arbitrary users.
Impact
An attacker could take over any Uber rider account by changing its password, and the same might apply to drivers or other roles.
What the attacker needed
Knowledge of victim's phone number; a free account (to replay request)
How it was found
- Create a new Rider account.
- Replay the passwordless-signup request with the victim's phone number and a chosen new password.
- Log in with the new 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.
This is an account takeover bug. The app had a step for creating a new password during signup, but it did not check that the person making the request actually owned the phone number. So anyone who knew a phone number could set a new password and log in as that user.
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.