Skip to content
Access control Disclosed report Intermediate

Rider can forcefully get passenger's order accepted resulting in multiple impacts including PII reveal and more mentioned in the report.

A driver could call an order-status endpoint to mark a passenger's ride as accepted without the passenger agreeing, and could also submit a bid price outside the allowed range. This let the driver obtain passenger details such as phone numbers and force a fare the passenger never approved.

Baibhav Anand Follow

Originally disclosed on HackerOne

High 8.1 View original
  • Disclosed after 2 months

Summary by the program

A vulnerability was found in a customer order flow that allowed a driver to accept an order on behalf of a passenger. This vulnerability allowed the driver to set the ride price by force bypassing the built-in ride price calculation algorithm, where the passenger and the driver negotiate the fare based on their preferences.

The report

Summary:

Hello Indrive Security Team, This is going to be chain of attacks with major flow being in /api/setTenderStatus request allowing the attacker to get their ride request accepted automatically.

Steps To Reproduce:

1st major vulnerability: // Forcefully getting the passenger to accept the ride

Section 1

  1. Whenever a rider/driver offers the passenger their price there is a request that is sent to /api/driverrequest

█████

  1. Now after getting the tenderID and OrderID from that request, the rider sends the request in /api/setTenderStatus in this format

█████████

Here the orderID and tenderID is from step 1.

  1. The ride gets accepted.

The impact for this is "The rider can get details of any passenger, this includes phone number of passengers. Even when the passenger doesn't accept the riders offer." Please keep in mind that this can be automated in real time to make this attack more efficien.

2nd Chain vulnerability: // Chose a out of range price

Section 2

  1. This request is sent when the rider bids his price:

██████████

  1. The rider can modify the price range to be of a much higher value than that.
  2. Resulting in sending a bid that is significantly more

// Combining this with above vulnerability we can get passenger to forcefully accept the ride of the customer.

==Provide the request in curl format, if possible==

For vuln A:

curl https://terra-akamai.indriverapp.com/api/setTenderStatus?cid=5957&locale=en_US&phone=████&token=████████&v=7&stream_id=1682280490209367&tender_id=████████&order_id=█████████&status=accept

For vuln B:

curl https://terra-akamai.indriverapp.com/api/driverrequest?cid=5957&locale=en_US&job_id=338f72ff-f3c1-4da0-af15-5d1aa720146b&phone=██████████&token=████████&v=7&stream_id=1682279074257167&order_id=██████&client_id=█████████&shield_session_id=██████████&type=indriver&price=63&period=3&geo_arrival_time=1&distance=5&longitude=85.3249627&latitude=27.7390611&sn=1

Thank you so much. Let me know if you need any further help in reproducing this issue. @spongebhav

Impact

  1. Revealing PII of customers even if customer didn't accept the rider's request.
  2. Making customer accept a bid that is significantly higher tricking the customer into giving more money.

The original report as published on HackerOne, by spongebhav. Images and videos are our own copies; raw HTML is shown as text. View it on HackerOne.

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 setTenderStatus endpoint did not verify that the request came from the passenger or that the passenger had actually accepted the tender, and the bid endpoint did not enforce the allowed price range server-side.

Impact

A driver could reveal passengers' personal data, including phone numbers, without consent and could force a passenger to accept a significantly higher bid, tricking them into paying more.

What the attacker needed

A driver account; knowledge of a tender and order ID

How it was found

  1. The driver sends an offer to the passenger, which produces a request containing a tender ID and an order ID.
  2. The driver reuses those identifiers in a request to the setTenderStatus endpoint with an accept status.
  3. The ride is marked as accepted without the passenger agreeing.
  4. The driver alters the price value in the bid request to exceed the permitted range.
  5. Combining both issues, the passenger is forced to accept a ride at an inflated price.

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 is supposed to wait for you to confirm a driver's offer. Here the driver's app could send a request that told the server the ride was already accepted, so the server handed over your details and locked in the fare. The server trusted the driver's request instead of checking that the passenger had actually agreed.

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.

More by Baibhav Anand

View all

4 more disclosed reports, best first.

More from inDrive

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Broken access control

The lesson behind this report.

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.