Change the rating of any trip, therefore change the average driver rating
The driver rating endpoint failed to verify that the trip belonged to the logged-in user, so anyone who knew the trip, driver and user identifiers could change the rating of any trip. A driver with poor ratings could therefore inflate their average by altering past trip ratings.
- Triaged in 3 days
- Fixed in 50 days
- Paid in 53 days
- Disclosed after 5 months
Summary by the program
The endpoint used for rating the driver did not validate correctly if the trip corresponded to one made per user logged in, therefore knowing the tripUUID, driverUUID and userId made it possible to change the rating of any trip. Attack scenario: a bad driver with poor ratings and programming skills could change the ratings of their past trips to artificially inflate their rating.
Thanks again, @overjt!
What the report shows
This is a business logic report against Uber, disclosed on HackerOne on 6 April 2020 and rated medium severity. The researcher is credited as overjt, and the program awarded a bounty of 1,500 USD. The weakness class recorded is business logic errors.
The feature in question is the endpoint a rider uses to rate a driver after a trip. According to the program's summary, that endpoint did not correctly validate whether the trip being rated actually belonged to the logged-in user. The identifiers needed to reach a trip were the trip UUID, the driver UUID and the user ID. With those three values in hand, a request could set the rating on any trip, not just one the caller had taken.
The attack scenario the program describes is a driver with poor ratings, and some programming skill, rewriting the ratings on their own past trips to inflate their average artificially. Because the average driver rating is derived from individual trip ratings, tampering with those ratings moves the average.
The report text itself is a short program summary rather than a step-by-step researcher narrative. It does not include the HTTP request, the parameter names, the response, or the exact validation that was missing, so those details cannot be reproduced here. It also does not describe a fix or a retest. What it does state is the identifier triple required, the missing ownership check, and the resulting ability to change the rating of any trip.
Root cause
The root cause is a missing object-level authorisation check. The rating endpoint accepted the trip, driver and user identifiers from the client and acted on them, but did not confirm that the trip identified by the trip UUID was one made by the authenticated caller. In other words, the endpoint authenticated the request but did not authorise it against the specific object being modified.
This is the classic insecure direct object reference pattern expressed as a logic flaw: the server trusts client-supplied identifiers to select the record to update, and the ownership relationship between the caller and that record is never verified server-side.
Impact
Within the report's own framing, the impact is integrity of the rating system. A driver could alter the ratings of past trips and thereby change their average rating. Ratings feed into how riders choose drivers and how the platform assesses them, so a manipulated average misrepresents service quality. The program rated this medium severity and paid 1,500 USD. The report does not claim access to other users' personal data, and it does not describe mass exploitation.
How this kind of bug works
Object-level authorisation bugs arise when an application separates authentication from authorisation. The session tells the server who is calling; it does not tell the server which records that caller may touch. If the handler looks up a record purely by an identifier taken from the request body or URL, and never compares the record's owner to the session's user, any caller who knows or guesses a valid identifier can act on someone else's object.
Rating and review endpoints are especially exposed because they are write operations keyed on several identifiers at once. A trip, a driver and a user form a natural composite key, and each component may be validated in isolation while the relationship between them is not. The bug survives because functional testing with the caller's own identifiers always succeeds, so the happy path looks correct.
Defences are straightforward in principle: derive the caller's identity from the session, load the target record server-side, and check that the record's owner matches the caller before applying any change. Where a composite key is involved, verify every relationship, not just that each identifier exists.
How to test for it
- Map the write endpoints that take object identifiers: ratings, reviews, addresses, orders, profile fields. Note every identifier in the body, path and query string.
- Create two accounts, or use one account and a second identity you control, and record the identifiers belonging to each.
- Perform the action normally with account A's own identifiers and confirm it succeeds.
- Replay the same request while authenticated as account A but with account B's identifiers substituted, one at a time and then in combination.
- A positive result is a successful response and a verifiable state change on B's object, confirmed by reading it back as B.
- Also try removing or blanking identifiers, swapping only the user ID while keeping the trip ID, and reusing an old trip identifier after the trip is closed.
Common false positives: the server returns a generic success message but nothing changes; the change is applied to a copy or a shadow record; the endpoint silently ignores the foreign identifier and falls back to the caller's own object. Always confirm the effect by reading the object back from the victim's session.
How it is fixed
Hunting notes
What happened, in plain words
Uber is a ride-hailing app. You open it, ask for a car, a driver picks you up, and when the trip ends you give the driver a star rating. Those ratings are averaged into the driver's average rating.
This report is about the part of Uber's system that receives your rating after a trip. The program's own summary says that this endpoint did not correctly check whether the trip being rated actually belonged to the person logged in. To point the system at a particular trip, three pieces of information were needed: the trip UUID, the driver UUID and the user ID. If someone knew those three values, they could send a rating for a trip that was not theirs, and the system would accept it.
A UUID is a long identifier used to name a single record in a database. The user ID names the rider, the driver UUID names the driver, and the trip UUID names the individual journey.
The attack scenario the program describes is a driver with poor ratings who also has some programming skill. That driver could go back over their own past trips and rewrite the ratings on them, pushing their average up artificially. Because the average is calculated from the individual trip ratings, changing those ratings changes the average.
This was reported on HackerOne, disclosed on 6 April 2020, rated medium severity, and paid a bounty of 1,500 USD. The researcher is credited as overjt. The weakness class recorded is business logic errors.
The public text is a short summary written by the program, not a step-by-step account from the researcher. It does not include the HTTP request, the parameter names, the server's response, or the exact check that was missing, so none of those can be shown here. It also does not describe a fix or a retest. What it does state is the three identifiers required, the missing ownership check, and the resulting ability to change the rating of any trip.
In general, how this kind of bug works
A request is simply the message your browser or app sends to a server: "here is what I want, here is who I am". A cookie is a small piece of data the server asks your browser to store and send back with every request, and it is often how the server recognises your session, meaning the period during which you are logged in. A token is a similar proof of identity, usually a string the app attaches to requests.
There are two separate questions a server must answer. Authentication asks "who is calling?". Authorisation asks "is this caller allowed to touch this particular record?". Bugs of the kind described here appear when a server answers the first question and forgets the second.
The everyday comparison: a hotel receptionist checks your key card at the door (authentication), but if the card opens every room in the building because nobody checks the room number against your booking (authorisation), the check at the door was not enough.
In this case the rating endpoint took the trip, driver and user identifiers from the client and acted on them, but never confirmed that the trip was one made by the logged-in caller. The server trusted identifiers supplied by the client to pick which record to update. This pattern is often called an insecure direct object reference: the object is selected by an identifier the client controls, and the ownership link between caller and object is never verified on the server.
Rating and review features are especially exposed because they are write operations, meaning they change stored data rather than just read it, and they are keyed on several identifiers at once. A trip, a driver and a user form a natural composite key, and each part can look valid on its own while the relationship between them is never checked. The bug survives ordinary testing because when you use your own identifiers everything works, so the normal path looks correct.
How to test for it
- List the actions that change data and take object identifiers: ratings, reviews, saved addresses, orders, profile fields. Note every identifier in the body, the path and the query string.
- Create two accounts, or use one account plus a second identity you control, and record the identifiers belonging to each.
- Perform the action normally with account A's own identifiers and confirm it succeeds.
- Replay the same request while logged in as account A but with account B's identifiers substituted, one at a time and then in combination.
- A positive result is a successful response plus a verifiable change on B's object, confirmed by reading it back as B.
- Also try removing or blanking identifiers, swapping only the user ID while keeping the trip ID, and reusing an old trip identifier after the trip is closed.
Watch for false positives: the server returns a generic success message but nothing changes; the change lands on a copy or shadow record; the endpoint quietly ignores the foreign identifier and falls back to the caller's own object. Always confirm the effect by reading the object back from the victim's session.
How it is fixed
Where these bugs tend to hide
Glossary
- Authentication: proving who is making a request, usually by logging in.
- Authorisation: deciding whether that identified user is allowed to perform the requested action on the requested record.
- Average driver rating: the figure calculated from individual trip ratings.
- Bounty: a payment a program makes to a researcher who reports a valid vulnerability.
- Business logic error: a flaw in the rules of a feature rather than in low-level code, where the system does the wrong thing with otherwise valid input.
- Composite key: a record identified by a combination of values, here trip UUID, driver UUID and user ID together.
- Cookie: small data stored by the browser and sent back to the server, often used to keep you logged in.
- Endpoint: a specific address on a server that accepts a particular kind of request, such as the one that receives a rating.
- False positive: a test result that looks like a vulnerability but is not, because no real change occurred.
- HackerOne: a platform where researchers report vulnerabilities to companies and programs disclose them.
- HTTP request: the message a client sends to a server describing what it wants.
- Insecure direct object reference: a flaw where a record is selected by an identifier supplied by the client without checking that the client owns it.
- Medium severity: a rating band used by vulnerability platforms.
- Parameter: a named value sent with a request, such as an identifier.
- Recon: the exploratory phase of looking at an application to find interesting endpoints and identifiers.
- Regression test: an automated test that re-checks a fixed bug so it cannot quietly return.
- Request body: the part of a request carrying data, as opposed to the address or headers.
- Session: the period during which a server treats you as logged in.
- State change: a lasting modification to stored data, such as a rating being overwritten.
- Token: a string used as proof of identity or permission in a request.
- User ID: the identifier naming a particular rider account.
- UUID: a long, practically unique identifier used to name a single record.
- Write operation: an action that changes stored data rather than only reading it.