Uber · Report #126377
Changing Driver Passwords With Only an Authenticated Session (no password, no email)
How it was found
It is possible to completely take over a driver's account with only an authenticated session. If a driver is logged on and wants to change their password, they will be asked for their current password (changePassword.png), but when they want to change their email, they are not asked for their current password (changeEmail.png). Once a driver's email has been changed, it is trivial to reset their password through the password reset page (which only requires access to the driver's email account).
So the steps to take over a driver's account from an authenticated session are:
- Change the driver's email to something that is attacker controlled
- Log out
- Use the forgot your password page to have a reset link sent to the attacker controlled email
- Use the link to reset the driver's password
In order to fix this, you have to add password authentication for changing the email associated with the account (or do what you do for riders and not allow changing the email).
Thanks, David Dworken