Mass Assignment Vulnerability in partners.uber.com
A driver could add first and last name fields to the profile form via browser developer tools and change their name after approval. The reporter suggests this could lead to CSV injection in Uber's internal systems or allow an unvetted person to take over a vetted driver account.
- Triaged in 15 hours
- Fixed in 39 days
- Paid in 2 months
- Disclosed after 6 months
A driver can change their full name into whatever they want after they are accepted into the Uber driver program. Once the uber driver is accepted, they can "Inspect Element" and change the profiles <ul class="form-fields">...</ul> to contain the following information
<code> <li> <input type="text" class="text-input" value="Name" name="first_name"></li> </code>Same thing for last name. They will be given the appropriate fields to change their first and last name.
Two possible issues:
- During the normal registration for new users, users are REQUIRED to enter a first and last name. When this is used, the user can just ONLY input first name.
When the user changes their name to something like "=1+1" and that is entered into the CSV after their first ride, they can request Ubers customer support to check out the CSV for some kind of issue. If the driver decided to input a command that will either open a malicious website or some kind of injection, it can effect Ubers computers.
- Someone with a clean background check can open the account and become a driver but will be able to give the account who did not go through a background check the account. All they have to do is change their first and last name and change the documentation.
Context
Uber's driver partner portal at partners.uber.com lets approved drivers manage their profile, including their first and last name. The report describes a mass assignment issue: after a driver is accepted into the Uber driver program, the profile form can be altered in the browser to submit fields that the normal interface does not expose.
Setup
The researcher had a driver account that had already been accepted into the Uber driver program. No special tools are mentioned beyond the browser's developer tools. The precondition is an authenticated driver session on the profile page.
Finding it
The researcher noticed that the profile page renders the name fields inside a list with the class form-fields. By using the browser's "Inspect Element" feature, the DOM can be edited to add input fields for first_name and last_name. The researcher added these fields to the form in the browser.
Exploitation
Step 1: Modify the profile form
With the profile page open, the researcher edits the <ul class="form-fields"> element to include the following markup:
<li>
<input type="text" class="text-input" value="Name" name="first_name"></li>
The same is done for the last name. This adds editable fields for first_name and last_name to the form. When the form is submitted, the browser sends these fields to the server.
Root cause
The server appears to bind all submitted parameters to the user profile without restricting which fields a driver is allowed to change. The normal registration flow requires a first and last name. The report does not show the server-side code, so the exact implementation is not known; the behaviour is consistent with mass assignment, where the application takes user-supplied parameters and assigns them to model attributes without an allowlist.
Impact
The researcher describes two possible issues:
-
A driver can set a name to a value such as
=1+1. If that value is later written into a CSV export (for example, after the driver's first ride) and the CSV is opened in a spreadsheet application, the value may be interpreted as a formula. The researcher suggests that a driver could then ask Uber customer support to open the CSV, potentially causing a command to run or a malicious website to open on Uber's computers. The report does not demonstrate this end to end; it is presented as a possibility. -
A person who has passed a background check can create a driver account and then change the first and last name and the documentation to hand the account over to someone who has not passed a background check. This would allow an unvetted person to operate as a driver using an account that appears to belong to a cleared driver. The report does not describe the documentation change process in detail.
Fix
Based on the root cause, the profile update endpoint should use an allowlist of fields that a driver may change and should validate the content of the name fields, for example by rejecting values that begin with formula characters when they are exported to CSV. The registration requirement for a first and last name should also be enforced on the server side for profile updates.
Variants to test
- Try adding hidden fields to other profile forms (email, phone, address) and see whether the server accepts them. A positive result is that the value is saved and reflected back in the profile.
- Submit a name containing a formula payload such as
=1+1and check whether it is stored and later exported to CSV without sanitisation. A positive result is that the exported CSV contains the formula unescaped. - Attempt to change fields related to identity verification or background check status through the same mass assignment technique. A positive result is that the status changes without going through the normal verification process.
Hunting notes
Mass assignment bugs tend to appear in profile update, registration, and account settings endpoints where the server binds request parameters directly to model objects. During recon, look for forms that include hidden fields or fields that are not rendered but are present in the HTML, and for API endpoints that accept JSON or form-encoded data with more fields than the UI shows. The researcher outlined two abuse scenarios: CSV injection against support staff and account handover to an unvetted driver. The report does not include a proof of concept for the CSV injection or the account handover, so the impact is argued rather than fully demonstrated.
What happened, in plain words
Uber runs a website for its approved drivers at partners.uber.com. Once a driver is accepted into the Uber driver program, they can log in to that site and manage their profile, including their first and last name. The researcher found that the page which lets a driver edit their name can be changed in the browser so that it sends extra fields to Uber's server. This kind of bug is called mass assignment: the server takes whatever fields the browser sends and saves them to the user's profile, without checking that the user is allowed to change those fields.
The researcher then described two ways this could be abused. First, a driver could set their name to something that looks like a spreadsheet formula, such as =1+1. If that name is later written into a CSV file (a plain text file used to store table data) and someone at Uber opens that file in a spreadsheet program, the formula might be executed. The researcher suggested a driver could ask Uber customer support to open the CSV, which could cause a command to run or a malicious website to open on Uber's computers. Second, someone who has passed a background check could create a driver account, then change the name and the documentation to hand the account over to a person who has not passed a background check. That would let an unvetted person drive using an account that appears to belong to a cleared driver.
The report does not show either of these two scenarios being carried out end to end. They are presented as possibilities. The report also does not say what fix was applied.
Background: the product and the feature
Uber's driver partner portal at partners.uber.com is a website where approved drivers manage their account. One of the things a driver can change there is their first and last name. The normal page shows a form with fields for the name. When the driver submits the form, the browser sends the values to Uber's server, and the server saves them to the driver's profile.
A form on a web page is made of HTML elements. An <input> element is a box where you type something. The name attribute of an input tells the server what that value is called when the form is submitted. For example, an input with name="first_name" sends a value labelled first_name to the server. The value attribute is the text that appears in the box when the page loads. The class attribute is a label used by CSS (the language that styles pages) and by JavaScript; it does not by itself change what the server receives.
A <ul> element is an unordered list, a bulleted list on the page. In this case the list has the class form-fields, which is just a label used to group the form fields together.
Setup
The researcher had a driver account that had already been accepted into the Uber driver program. No special tools are mentioned beyond the browser's developer tools. The precondition is an authenticated driver session on the profile page: in other words, the researcher was logged in as an approved driver and was looking at the page where the name can be edited.
Finding it
The researcher noticed that the profile page renders the name fields inside a list with the class form-fields. By using the browser's "Inspect Element" feature, the page's structure (the DOM, or Document Object Model, which is the browser's in-memory representation of the page) can be edited. The researcher added input fields for first_name and last_name to that list. The researcher added these fields to the form in the browser.
"Inspect Element" is a built-in browser tool. It lets you look at the HTML of the page you are viewing and change it temporarily in your own browser. The changes are not saved on the server; they only affect what your browser displays and what it sends when you submit the form. This is why the technique works without any special software: you are simply editing the form in your own browser before sending it.
Exploitation
Step 1: Modify the profile form
With the profile page open, the researcher edits the <ul class="form-fields"> element to include the following markup:
<li>
<input type="text" class="text-input" value="Name" name="first_name"></li>
This adds an editable field for the first name to the form. The same is done for the last name. When the form is submitted, the browser sends these fields to the server.
Line by line:
<li>opens a list item inside the<ul>list. The form fields are list items, so the new field is placed inside one.<input type="text" class="text-input" value="Name" name="first_name">creates a text input box.type="text"means it is a normal text field.class="text-input"gives it a style label.value="Name"is the text that appears in the box when the page loads; here it is the word "Name".name="first_name"is the important part: it tells the browser to send this value to the server under the labelfirst_name.</li>closes the list item.
The same markup is added for the last name, with name="last_name" instead of name="first_name". The researcher does not show that second block in the report, but says the same thing is done for the last name.
Why this step was taken: the normal page does not show these fields, so the researcher added them by hand in the browser. The goal was to see whether the server would accept values for fields that the normal interface does not expose. If the server saves the new name, that would be consistent with mass assignment.
Root cause
The server appears to bind all submitted parameters to the user profile without restricting which fields a driver is allowed to change. The normal registration flow requires a first and last name.
In plain words: when the browser sends a form, it sends a list of field names and values. A careful server checks that list against a list of fields the user is allowed to change (an allowlist) and ignores everything else. Here, the server seems to accept whatever arrives and save it to the driver's profile. That is why adding a field in the browser is enough to change something the normal page does not let you change.
Impact
The researcher describes two possible issues:
-
A driver can set a name to a value such as
=1+1. If that value is later written into a CSV export (for example, after the driver's first ride) and the CSV is opened in a spreadsheet application, the value may be interpreted as a formula. The researcher suggests that a driver could then ask Uber customer support to open the CSV, potentially causing a command to run or a malicious website to open on Uber's computers. The report does not demonstrate this end to end; it is presented as a possibility.A CSV file is a plain text file where each line is a row and values are separated by commas. Spreadsheet programs such as Excel open CSV files and treat any cell that starts with
=as a formula and calculate it. That is normal spreadsheet behaviour, but it becomes a problem when the content of the cell comes from a user. If a driver's name is=1+1, and that name is written into a CSV without any escaping, the spreadsheet will calculate it instead of showing the text. The researcher's concern is that a more harmful formula could be used, for example one that opens a website or runs a command on the computer of the person who opens the file. -
A person who has passed a background check can create a driver account and then change the first and last name and the documentation to hand the account over to someone who has not passed a background check. This would allow an unvetted person to operate as a driver using an account that appears to belong to a cleared driver.
In plain words: Uber checks a driver's background before accepting them. If the name on the account can be changed freely after acceptance, and the documents can be changed too, then the account could be passed to another person. The account would still look like it belongs to the person who passed the check, but someone else would be driving.
Fix
Based on the root cause, the profile update endpoint should use an allowlist of fields that a driver may change and should validate the content of the name fields, for example by rejecting values that begin with formula characters when they are exported to CSV. The registration requirement for a first and last name should also be enforced on the server side for profile updates.
In plain words: the server should decide which fields a driver is allowed to change and ignore the rest, instead of accepting everything the browser sends. It should also check what is inside the name fields, and when names are written to a CSV, it should make sure a value starting with = is treated as text, not as a formula. The rule that a driver must have a first and last name should be checked on the server, not only in the browser.
Variants to test
- Try adding hidden fields to other profile forms (email, phone, address) and see whether the server accepts them. A positive result is that the value is saved and reflected back in the profile.
- Submit a name containing a formula payload such as
=1+1and check whether it is stored and later exported to CSV without sanitisation. A positive result is that the exported CSV contains the formula unescaped. - Attempt to change fields related to identity verification or background check status through the same mass assignment technique. A positive result is that the status changes without going through the normal verification process.
These are ideas for further testing, not things the researcher demonstrated. The first one checks whether the same weakness exists on other forms. The second one checks whether the CSV export really writes the name without escaping. The third one checks whether the same technique can reach fields that control identity verification or background check status, which would be a more serious version of the same bug.
Hunting notes
Mass assignment bugs tend to appear in profile update, registration, and account settings endpoints where the server binds request parameters directly to model objects. During recon, look for forms that include hidden fields or fields that are not rendered but are present in the HTML, and for API endpoints that accept JSON or form-encoded data with more fields than the UI shows. The researcher outlined two abuse scenarios: CSV injection against support staff and account handover to an unvetted driver. The report does not include a proof of concept for the CSV injection or the account handover, so the impact is argued rather than fully demonstrated.
In plain words: when you are looking for this kind of bug, start with pages where you edit your own account. Look at the HTML and see whether there are fields the page does not show you, or fields you can add. Then try submitting them and see whether the server saves them. The sign that you have found something is that a value you added in the browser is saved on the server and appears again when you reload the page.
Glossary
- Mass assignment: a bug where a server takes all the fields sent by a browser and saves them to a user's profile or record, without checking which fields the user is allowed to change.
- Allowlist: a list of things that are allowed. In this context, a list of fields a user may change; anything not on the list is ignored.
- Endpoint: a specific address on a server that accepts requests, for example the address that handles a profile update.
- API: a way for one program to talk to another. A web API is a set of addresses on a server that accept data and return data, often used by a website's own pages.
- DOM: the browser's in-memory model of the page. "Inspect Element" shows the DOM and lets you edit it temporarily in your own browser.
- HTML: the language that describes the structure of a web page, including forms and input fields.
<input>: an HTML element that creates a box where a user can type. Itsnameattribute is the label the browser sends to the server.<ul>: an HTML element for an unordered (bulleted) list.<li>: an HTML element for one item inside a list.class: an HTML attribute used as a label for styling and scripting. It does not by itself change what the server receives.value: an HTML attribute that sets the text shown in an input box when the page loads.name: an HTML attribute on an input that tells the browser what label to use when sending the value to the server.- Form: a set of input fields on a page that, when submitted, sends the values to a server.
- CSV: comma-separated values, a plain text file format for tables. Each line is a row, and values are separated by commas.
- CSV injection: a problem where a value from a user is written into a CSV file and later opened in a spreadsheet, which treats a value starting with
=as a formula and calculates it. - Formula: an expression in a spreadsheet that starts with
=and is calculated by the program, for example=1+1. - Sanitisation: cleaning or escaping data so that it is treated as plain text and not as code or a formula.
- Background check: a check into a person's history, done by an employer before accepting them, for example before allowing someone to drive for Uber.
- Authenticated session: a logged-in state. The browser holds something (often a cookie) that proves to the server who the user is.
- Cookie: a small piece of data a website stores in your browser so it can recognise you on later requests.
- Proof of concept: a demonstration that a bug can actually be exploited, not just described.
- Recon: the information-gathering phase of security testing, where you look at a site's pages and behaviour before trying to exploit anything.