IDORs Never Disappoint Me — Hacking Into Online Bookings ($$)
The booking details page used a sequential booking ID in the URL without checking ownership, so changing the number showed other customers' bookings. An attacker could view names, emails, phone numbers, addresses and payment details, and download them as a PDF.
Hey there, fellow hackers and security enthusiasts! This blog is a walkthrough about my recent experience uncovering an IDOR vulnerability that allowed unauthorized access to customer booking details.
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 looked up bookings by the ID in the URL without verifying that the logged-in user owned that booking.
Impact
An attacker could view other customers' personal and payment-related booking details and download them as a PDF, which could lead to privacy violations, fraud or financial loss.
What the attacker needed
A user account; place an order to get a booking ID
The fix
The site should enforce server-side access controls that check the logged-in user owns the booking, and use non-sequential identifiers.
How it was found
- Place an order to get a booking details page.
- Open the booking details URL containing the booking ID.
- Change the booking ID in the URL to a different number.
- Refresh the page and see another customer's booking details.
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.
A booking page put a simple number in the web address to decide which booking to show. The site never checked that the person asking actually owned that booking, so anyone could change the number and see someone else's details. This kind of mistake is called an IDOR, short for Insecure Direct Object Reference.
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.