Skip to content
XSS Disclosed report Intermediate

XSS on partners.uber.com due to no user input sanitisation

The vehicle-add endpoint on partners.uber.com did not sanitise or encode user-supplied data, so HTML-sensitive characters such as '<' could be reflected into the page. An attacker could potentially inject script, though CSRF protection and credential requirements limited exploitation.

0x0luke Follow

Originally disclosed on HackerOne

Bounty$1,000incl. $1,000 bonus Low View original
  • Triaged in 3 days
  • Fixed in 9 months
  • Paid in 32 days
  • Disclosed after 11 months

Summary by the program

The /p3/drivers/vehicles/add endpoint on partners.uber.com was vulnerable to cross site scripting, since the endpoint did not validate the data it received, it did not perform encoding on the data to remove or make harmless HTML-sensitive characters such as <. The page response was not served with a content-type header. While the content-type header was not set, the x-content-type-options header was set to nosniff. Additionally, the endpoint was protected against CSRF attacks, making it difficult for an attacker to submit information on behalf of a victim. Without the proper credentials, nothing was returned from the endpoint, mitigating the risk of this issue.

We enjoyed working with @0x0luke on this report and look forward to their future submissions to Uber's program.

The original report as published on HackerOne, by 0x0luke. 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 endpoint reflected user input into the response without HTML-encoding it, and the response lacked a content-type header.

Impact

An attacker could potentially run script in a victim's browser, but CSRF protection made it difficult to submit data on a victim's behalf, and without proper credentials the endpoint returned nothing, limiting the risk.

What the attacker needed

Valid credentials; CSRF protection would need to be overcome

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.

Cross-site scripting (XSS) happens when a website puts user-supplied text into a page without cleaning it, so a malicious visitor can make the page run their own code in someone else's browser. Here the vehicle-add page echoed input back without encoding characters like '<', which is the building block of an XSS attack. However, the site required a valid login and blocked cross-site form submissions, so the practical risk was reduced.

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 0x0luke

View all

6 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.