Skip to content
XSS Disclosed report Beginner

XSS via password recovering

The password recovery page did not safely handle the new password value, so a script entered as the password ran when 'Show password' was clicked.

codequick Follow

Originally disclosed on HackerOne

  • Disclosed after 3 months

I found that xss can be executed if we provide xss payload as a password in Uber during password recovery.

Steps to follow:

  1. Goto https://login.uber.com/forgot-password
  2. Enter email and submit
  3. Open the recover link you got
  4. Enter Set password: <script>alert(document.domain);</script> and submit it
  5. Click Show password

XSS Executed.

Video and screenshot added

Attachments

Screencast_Saturday_16_April_2016_02_16_57__IST.webm From the original on HackerOne
Screenshot_from_2016-04-16_02-27-16.png
Screenshot_from_2016-04-16_02-27-16.png

The original report as published on HackerOne, by codequick. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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

Script could run in the victim's browser when they used the 'Show password' feature, though the report does not show how an attacker would make a victim set such a password.

What the attacker needed

Victim sets a malicious password; victim clicks 'Show password'

How it was found

  1. Go to the Uber forgot-password page.
  2. Enter an email address and submit the form.
  3. Open the recovery link received.
  4. Set the new password to a script payload and submit.
  5. Click 'Show password' to trigger the script.

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 type a password, the website should treat it as plain text, never as code. Here the site put the password back into the page in a way that let a script run, so clicking 'Show password' executed it. This is called cross-site scripting (XSS): running attacker-supplied code in a victim's browser.

What is XSS?

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.

More by codequick

View all

3 more disclosed reports, best first.

More from Uber

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Cross-site scripting (XSS)

The lesson behind this report.

Script an attacker supplies runs in another user's browser, on the target's origin, with that user's session.