Stealing users password (Limited Scenario)
The Forgot Password page accepted a user-controlled next_url parameter that allowed any URL, including a data: URL containing an iframe. An attacker could craft a reset link that, after the victim changed their password, redirected them to a fake form asking them to confirm their password, thereby stealing it.
- Triaged in 10 hours
- Fixed in 29 days
- Paid in 34 days
- Disclosed after 36 days
Summary by the program
The Forgot Password page accepts a next_url URL parameter when it's loaded. Due to the fact that this is user-controllable and permits any url, it is possible for an attacker to perform a convincing phishing attack, designed to steal an Uber user's credentials, by getting a victim to reset their password via a custom Forgot Password link.
Summary by the researcher
Hey all :)
here is blog for the same : http://www.geekboy.ninja/blog/uber-exploiting-stored-url-redirect-in-password-reset-token
The report
Hello Team,
####Description :
This is report is about an interesting scenario where an user's password can be steal while password reset process due to wired user controlled redirection take place after password reset process.
By accepting the fact that URL redirect is not in scope for uber but this one is interesting on reset page that something need to look.
####Step To Reproduce :
- Go Here
- Where
next_urlis user controlled on password reset pagehttps://login.uber.com/forgot-password?source=auth&next_url=user_controlled_url. - Request password reset token for your account !
- Get the reset link and change the password and will be redirected to supplied
next_urlurl. - Where an well crafted form will ask to confirm your password !
- And this is how someone can steal the password of someone !
####Impact :
though impact is not very direct here , but still critical enough if any attacker succeeded to exploit this & that will allow him to access victim account , so this should be fixed !
####Video POC (Tested in Mozilla) : https://dl.dropboxusercontent.com/u/62765113/ShareX/16/2016-08-24_19-18-20.mp4
####Possible Fix :
next_urlshould not be reflect after password reset also should not be user controlled .
Please let me know if any more info needed !
Regards Geekboy !
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 password reset flow reflected a user-controlled next_url parameter without validating or restricting the destination, allowing arbitrary URLs including data: URIs.
Impact
An attacker could steal a victim's password through a convincing phishing page after a password reset, though the report notes the impact is not very direct.
What the attacker needed
Victim clicks a crafted reset link; victim completes password reset; victim enters password in fake form
The fix
The next_url parameter should not be reflected after password reset and should not be user-controlled.
How it was found
- Open the Forgot Password page with a next_url parameter set to an attacker-chosen URL.
- Request a password reset token for your own account.
- Use the reset link to change the password.
- Observe the redirect to the supplied next_url, where a crafted form asks to confirm the 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.
When you reset a password, the site can send you to another page afterwards. Here that destination was taken from the link itself, so an attacker could choose it. They pointed it at a fake page that looked like a password confirmation form, and the victim typed their new password into it.
What is Open redirect?
A trusted site forwards users to any address an attacker picks; rarely paid alone, often the missing link in a chain.