Skip to content
XSS Disclosed report Beginner

Cross-site Scripting (XSS) autocomplete generation in https://www.uber.com/

The 'find a city' autocomplete on the Uber site returned raw script from the server, so a script tag typed into the field executed in the browser.

exodia_forbidden_one Follow

Originally disclosed on HackerOne

  • Disclosed after 2 days

Description: The website located at https://www.uber.com/ suffers from a generated Cross-site Scripting (XSS) vulnerability in the "find a city" input field.

Reproduction Steps:

Open the latest Chrome web browser

Navigate to the following URL's "find a city input field": https://www.uber.com/

Type in the following:

<script>alert(1)</script>

Note that the autocomplete result being generated from the server side is raw javascript and payload was fired.

I’ve tested this in the latest Chrome. Attached to this report are screenshots of this issue occurring in chrome.

Attachments

Screen_Shot_2016-03-22_at_10.26.12_AM.png
Screen_Shot_2016-03-22_at_10.26.12_AM.png From the original on HackerOne

The original report as published on HackerOne, by exodia_forbidden_one. 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

Root cause

Likely the server-side autocomplete endpoint echoed the search term into the response without HTML-encoding it.

Impact

Script could run in the context of the Uber site, which could let an attacker act as the victim, though the report does not show how a victim would be made to submit the input.

What the attacker needed

Victim types or is made to submit the input; latest Chrome browser

How it was found

  1. Open the latest Chrome browser.
  2. Go to the Uber homepage and find the 'find a city' input field.
  3. Type a script tag into the field.
  4. Observe that the server-generated autocomplete result runs 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.

A website has a search box that suggests cities as you type. The site took whatever was typed and put it straight into the page without cleaning it, so typing code instead of a city name made the browser run that code. This is called cross-site scripting: an attacker gets their own code to run inside someone else's browser session on that site.

What is XSS?

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

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.