Lack of Feedback Validation Permits Arbitrary Driver Ratings
The feedback system did not check that a submitted driver ID matched the driver on the passenger's own trip. An authenticated passenger could link their valid trip ID to any driver ID and submit a rating, letting them inflate or deflate that driver's score.
Originally disclosed on HackerOne
- Triaged in 11 hours
- Fixed in 41 days
- Paid in 16 hours
- Disclosed after 6 months
Summary by the program
@bugbountywithmarco discovered a logic flaw in Bykea’s feedback system that allowed authenticated passengers to submit feedback for drivers they had not actually ridden with. By linking their own valid trip ID to any driver ID, an attacker could manipulate driver ratings though this exploit was limited to trips the attacker legitimately owned, and each trip could only affect one driver rating at a time (with previous ones overwritten). Despite this limitation, the vulnerability could still be abused to unfairly inflate or deflate driver scores, undermining the reliability of the platform’s reputation system.
What the report shows
The target is Bykea's feedback system, exposed through the API at https://api.bykea.net. The feature under scrutiny is the mechanism by which an authenticated passenger submits feedback and a rating for a driver after a ride.
The flaw is a logic error: the feedback submission did not properly validate that the driver being rated was the driver the passenger had actually ridden with. The program's summary describes the researcher, @bugbountywithmarco, as having found that an authenticated passenger could submit feedback for drivers they had not ridden with, by linking their own valid trip ID to any driver ID.
The report describes the mechanism as follows:
- The attacker is an authenticated passenger with a trip they legitimately own.
- The attacker takes a trip ID they legitimately own.
- The attacker pairs that trip ID with an arbitrary driver ID in the feedback submission.
- The rating attached to that driver is affected.
The report places clear limits on the abuse. The exploit was limited to trips the attacker legitimately owned, so a passenger could not fabricate a trip out of nothing. Each trip could only affect one driver rating at a time, and previous ratings tied to that trip were overwritten. So the primitive is not an unlimited rating cannon: it is the ability to redirect the rating of a trip you really took onto a driver you choose.
The outcome recorded by the platform is a medium severity rating with a CVSS score of 5.3, classified as an Insecure Direct Object Reference (IDOR). No bounty figure is given. The report does not describe the fix that was applied.
Root cause
A plausible explanation is that the driver identifier was not checked against the driver recorded on the referenced trip. Any driver ID could be linked to one of the attacker's own trips.
This is the classic shape of an object-reference problem in a business-logic context: the server authorises ownership of one object (the trip) but not the association between that object and the second object being modified (the driver's rating).
Impact
Within the stated limits, an authenticated passenger could inflate or deflate the scores of drivers they had never ridden with. The program notes that this undermines the reliability of the platform's reputation system. The program notes that manipulated scores undermine the reliability of the platform's reputation system.
The bounds matter for severity: the attacker needs a genuine trip per rating change, and each trip can only be pointed at one driver at a time, with earlier effects overwritten. The platform recorded the issue as medium severity.
How this kind of bug works
Object-reference bugs appear when an application takes an identifier from the request and acts on the object it names without confirming that the caller is allowed to act on that particular object. In a pure IDOR the missing check is usually ownership of the object itself. In a logic-flavoured variant like this one, the missing check is a relationship: the server verifies that object A belongs to the user, but not that object B is legitimately connected to object A.
These bugs are common wherever two entities are linked by client-supplied IDs: a trip and a driver, an order and a product, a ticket and an assignee, a message thread and a recipient. Frameworks rarely enforce these relationships automatically, so the check has to be written by hand, and it is easy to write only half of it.
Defences are straightforward in principle: derive the second identifier from server-side state rather than trusting the client, or explicitly verify the association before writing. Authorisation should be evaluated on the pair, not on each identifier in isolation.
How to test for it
- Map the feature. Identify every request that creates or modifies a relationship between two objects, especially where both objects are named by IDs in the body or query string.
- Establish a baseline with two accounts and, where possible, two sets of related objects. Record the exact request that performs a legitimate action.
- Substitute identifiers. Replace the second object's ID with one belonging to a different user or a different relationship, keeping the first object's ID valid and owned by you. Watch for a success response and, more importantly, a change in the target object's state.
- Verify out of band. Re-read the affected object through a normal view to confirm the change actually persisted, rather than trusting the response body.
- Test the reverse direction: swap the first identifier for one you do not own while keeping the second valid, to see whether ownership of the anchor object is checked at all.
A positive result is a state change on an object you should not be able to influence, confirmed by a subsequent read. Common false positives include responses that echo success but silently discard the write, changes that are later overwritten by server-side recalculation, and cases where the second identifier is ignored entirely because the server derives it from the first.
How it is fixed
A standard approach would be to stop trusting the client-supplied second identifier. The server should look up the driver from the trip record it already holds, or reject the request when the supplied driver ID does not match the driver stored against that trip. Where the client must send both, the association should be validated explicitly before any write, and the write should be scoped to the authenticated user's own records. Recalculating aggregate scores from authoritative records, rather than accepting submitted values, closes the same gap from the other side.
Hunting notes
This class of bug hides in features that join two entities: ratings and reviews, referrals, transfers, assignments, invitations, and anything with a "link" or "attach" action. Recon signals include endpoints that accept two or more IDs together, mobile API traffic where the client is trusted more than a browser would be, and features where one object is clearly owned by the user while the other is not.
To make a report land, show the full chain: the legitimate request, the modified request, the confirmed state change, and the boundary of the impact. State the limits honestly, as this report does, because a precise scope is more convincing than an inflated claim. Where the effect is bounded, say so and explain why it still matters to the business.
What happened, in plain words
Bykea is a ride-hailing service: after a trip, the passenger can leave feedback and a rating for the driver. Those ratings are a trust signal. The program describes these ratings as part of the platform's reputation system.
The report describes a logic flaw in that feedback system, reachable through Bykea's API at https://api.bykea.net. An API is the set of addresses and rules an app uses to talk to the company's servers; when you tap a button in a mobile app, the app sends a request to one of these addresses and the server sends back an answer. A request is simply a message asking the server to do something, much like a form you hand in at a counter.
The researcher, @bugbountywithmarco, found that an authenticated passenger (someone logged in with a real account) could submit feedback for a driver they had never actually ridden with. The trick was to take a trip ID they genuinely owned and pair it with any driver ID they chose. An ID is a short identifier, usually a number or a string of characters, that names one specific record in the company's database, the way a ticket number names one specific booking.
The mechanism works like this:
- The attacker authenticates as a passenger, so they hold a legitimate account and at least one genuine trip.
- The attacker takes a trip ID they legitimately own.
- The attacker pairs that trip ID with an arbitrary driver ID in the feedback submission.
- The feedback is accepted, and the rating attached to that driver is affected.
Why does each step matter? Step 1 matters because the attacker is not an outsider breaking in; they are a normal user with normal permissions. Step 2 matters because the exploit was limited to trips the attacker legitimately owned. Step 3 is where the flaw lives: the driver ID is not tied to the driver recorded on that trip. Step 4 is the result: a rating lands on a driver the passenger never met.
The report is careful about the limits. The exploit was limited to trips the attacker legitimately owned, so a passenger could not fabricate a trip out of nothing. Each trip could only affect one driver rating at a time, and previous ratings tied to that trip were overwritten. In plain terms, this is not an unlimited rating cannon: it is the ability to redirect the rating of a trip you really took onto a driver you choose. To change many drivers' scores, an attacker would need many real trips.
Even with those limits, the effect is real. An authenticated passenger could inflate or deflate the scores of drivers they had never ridden with, and the program notes that this undermines the reliability of the platform's reputation system. The platform recorded the issue as medium severity with a CVSS score of 5.3, classified as an Insecure Direct Object Reference (IDOR). CVSS is a standard scoring system for how serious a security issue is; 5.3 sits in the middle of the scale. No bounty figure is given, and the report does not describe the fix that was applied.
Root cause
A plausible explanation is that the driver identifier was not checked against the driver recorded on the referenced trip. Any driver ID could be linked to one of the attacker's own trips.
This is the classic shape of an object-reference problem in a business-logic context: the server authorises ownership of one object (the trip) but not the association between that object and the second object being modified (the driver's rating). A useful comparison is a hotel receptionist who checks that a guest's room key is genuine but never checks that the guest is asking about their own room.
In general, how this kind of bug works
Object-reference bugs appear when an application takes an identifier from the request and acts on the object it names without confirming that the caller is allowed to act on that particular object. In a pure IDOR the missing check is usually ownership of the object itself. In a logic-flavoured variant like this one, the missing check is a relationship: the server verifies that object A belongs to the user, but not that object B is legitimately connected to object A.
These bugs are common wherever two entities are linked by client-supplied IDs: a trip and a driver, an order and a product, a ticket and an assignee, a message thread and a recipient. Frameworks rarely enforce these relationships automatically, so the check has to be written by hand, and it is easy to write only half of it.
Defences are straightforward in principle: derive the second identifier from server-side state rather than trusting the client, or explicitly verify the association before writing. Authorisation should be evaluated on the pair, not on each identifier in isolation.
In general, how to test for it
- Map the feature. Identify every request that creates or modifies a relationship between two objects, especially where both objects are named by IDs in the body or query string.
- Establish a baseline with two accounts and, where possible, two sets of related objects. Record the exact request that performs a legitimate action.
- Substitute identifiers. Replace the second object's ID with one belonging to a different user or a different relationship, keeping the first object's ID valid and owned by you. Watch for a success response and, more importantly, a change in the target object's state.
- Verify out of band. Re-read the affected object through a normal view to confirm the change actually persisted, rather than trusting the response body.
- Test the reverse direction: swap the first identifier for one you do not own while keeping the second valid, to see whether ownership of the anchor object is checked at all.
A positive result is a state change on an object you should not be able to influence, confirmed by a subsequent read. Common false positives include responses that echo success but silently discard the write, changes that are later overwritten by server-side recalculation, and cases where the second identifier is ignored entirely because the server derives it from the first.
In general, how it is fixed
A standard approach would be to stop trusting the client-supplied second identifier. The server should look up the driver from the trip record it already holds, or reject the request when the supplied driver ID does not match the driver stored against that trip. Where the client must send both, the association should be validated explicitly before any write, and the write should be scoped to the authenticated user's own records. Recalculating aggregate scores from authoritative records, rather than accepting submitted values, closes the same gap from the other side.
In general, where to look
This class of bug hides in features that join two entities: ratings and reviews, referrals, transfers, assignments, invitations, and anything with a "link" or "attach" action. Recon signals include endpoints that accept two or more IDs together, mobile API traffic where the client is trusted more than a browser would be, and features where one object is clearly owned by the user while the other is not.
To make a report land, show the full chain: the legitimate request, the modified request, the confirmed state change, and the boundary of the impact. State the limits honestly, as this report does, because a precise scope is more convincing than an inflated claim. Where the effect is bounded, say so and explain why it still matters to the business.
Glossary
- API: the set of addresses and rules an app uses to talk to a company's servers.
- Request: a message an app or browser sends to a server asking it to do something.
- Endpoint: one specific address in an API that handles one kind of action.
- Authenticated: logged in and identified to the server with a real account.
- ID: a short identifier that names one specific record in a database.
- Trip ID: the identifier of one specific ride booked through the platform.
- Driver ID: the identifier of one specific driver.
- Feedback submission: the request a passenger sends after a ride to leave a rating and comments.
- Logic flaw: a bug where the code works as written but the rules of the business are not enforced.
- IDOR (Insecure Direct Object Reference): a bug where a request names an object by its ID and the server acts on it without checking the caller is allowed to.
- Server-side: happening on the company's servers, where checks cannot be bypassed by the user's app.
- Client-supplied: a value that comes from the user's app rather than from the server's own records.
- Authorisation: deciding whether a user is allowed to perform a particular action.
- Object: one record in a system, such as a trip, a driver or an order.
- State change: a lasting modification to stored data, such as a rating being updated.
- Out of band: checking a result through a separate path, such as reloading a page, rather than trusting the first response.
- False positive: a result that looks like a bug but is not one.
- CVSS: a standard scoring system for the severity of a security issue.
- Severity: how serious an issue is judged to be, often low, medium, high or critical.
- Bounty: a payment some companies make to researchers who report valid security issues.