Skip to content
Access control Write-up Intermediate

How I Chained Three Small Bugs to Cancel Anyone’s Car Booking

A cancellation endpoint lacked authentication and only required a booking code, while a trip lookup endpoint exposed booking codes for any booking ID without ownership checks. By enumerating booking IDs and provider names from a leaked source map, an attacker could cancel any booking on the platform.

medium.com

Published on medium.com

The target was a private Bugcrowd program. I’ll call it Reacted.com a car rental platform.

Atharv Chawan, 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

Impact

An attacker could cancel any booking on the platform without authentication.

What the attacker needed

No account needed; knowledge of booking IDs; access to source map file

How it was found

  1. Book a car and cancel it to observe the cancellation request in Burp.
  2. Notice the cancellation request uses a booking code not shown in the UI.
  3. Search for your own booking code in captured traffic and find it in a trip lookup response.
  4. Discover booking IDs are sequential and provider names are needed.
  5. Find a source map file on the server and extract provider names from it.
  6. Script trying each provider for sequential booking IDs to obtain booking codes, then use a code to cancel someone else's booking.

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.

The website had a way to cancel a car booking that didn't check who was asking. It only needed a secret code, and another part of the site would hand out that code to anyone who asked with the right booking number. So someone could cancel other people's bookings without logging in.

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.

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.