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.
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
- Book a car and cancel it to observe the cancellation request in Burp.
- Notice the cancellation request uses a booking code not shown in the UI.
- Search for your own booking code in captured traffic and find it in a trip lookup response.
- Discover booking IDs are sequential and provider names are needed.
- Find a source map file on the server and extract provider names from it.
- 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.