Improper Access Control Allows Trip Hijacking and Passenger/Driver PII Disclosure
The ride booking API endpoints for acknowledging an offer and accepting a trip did not check that the requesting user owned the trip ID. An attacker could substitute a victim's trip ID to force a passenger into a ride, exposing their personal data to the driver, or force a driver to accept a trip after cancelling or going offline.
- Disclosed after 7 months
Summary by the program
@grassye discovered a critical authorization flaw in Bykea's ride booking API. The /acknowledged_the_offer and /accept endpoints failed to properly validate user ownership of a trip_id, allowing an attacker to substitute a victim's ID into the requests. This vulnerability enabled an attacker to either force an unsuspecting passenger into a ride, exposing their PII to the driver, or compel a driver to accept a trip even after they had cancelled or gone offline.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the endpoints trusted the trip_id supplied by the client without verifying that it belonged to the authenticated user.
Impact
An attacker could force a passenger into a ride and disclose their PII to the driver, or force a driver to accept a trip even after cancelling or going offline.
What the attacker needed
Knowledge of a victim trip_id; authenticated account
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
When you book a ride, the app uses a trip ID to refer to your booking. The server should check that the person making a request actually owns that trip ID. Here it did not, so anyone who knew or guessed another person's trip ID could act on their booking.
What is Access control?
A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.