Skip to content
IDOR Write-up Beginner

Part 3: Exploiting BOLA — How I Accessed Other Users’ Dat

The crAPI application exposed report and vehicle location endpoints that did not verify whether the requesting user owned the object identified by the ID in the request. An attacker could change the ID to access other users' reports and vehicle locations.

TraceX0 Follow

Published on medium.com

🧠 Part 3 of the crAPI Hacking Series I’m Mihir — aka TraceX0. I break APIs, exploit web apps, play CTFs, and hunt bugs for fun.

TraceX0, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the server only checks that the user is logged in, but not that the user owns the object being requested.

Impact

An attacker could view other users' reports and vehicle locations, including sensitive data like VIN, PIN, and GPS coordinates.

What the attacker needed

A free account on crAPI; access to the exposed MailHog interface; Burp Suite or similar proxy

The fix

The server should always verify that the authenticated user owns the requested object and return 403 if not.

How it was found

  1. Register a new user on crAPI and log in.
  2. Access the exposed MailHog interface to retrieve the vehicle VIN and PIN from the welcome email.
  3. Add the vehicle using the VIN and PIN, then view the dashboard to see vehicle details and location.
  4. Send a service request to a mechanic and capture the contact-mechanic request in Burp Suite.
  5. In the response, note the report ID parameter, then change the ID in the URL to another number to view another user's report.
  6. Click 'Refresh Location' and capture the /location request, then replace the carId with one leaked from the community posts endpoint to view another user's vehicle location.

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 write-up has not been written yet. The Original tab links to the source.

This is a classic 'IDOR' (Insecure Direct Object Reference) bug. The app uses simple numbers or codes to identify things like reports or cars, but when you ask for one, it doesn't check if it's really yours. So by changing the number, you can see someone else's private data.

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 TraceX0

View all

1 more disclosed report, best first.

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.