How I Found a Critical IDOR in Indian Railways Corporate Booking Portal Exposing Millions of Users Personal Data
The IRCTC corporate booking portal used a Base64-encoded transactionId in URLs without checking ownership, so any logged-in corporate user could view other users' full flight bookings and personal data by changing the ID. The same flaw also allowed submitting feedback as another user and could have allowed cancelling others' tickets.
ππ€π¨π©π¨ππ Follow
Published on infosecwriteups.com
For example, if changing userid=123 to userid=124 in a URL lets you see someone elseβs private information, thatβs an IDOR vulnerability.
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 booking confirmation endpoint looked up records by the supplied transactionId without verifying that the authenticated user owned that transaction.
Impact
Any logged-in corporate user could read other users' flight bookings and personal data, submit feedback as another user, and potentially cancel others' tickets; the text does not say whether the blind XSS actually fired.
What the attacker needed
A valid corporate account; knowledge of a valid transactionId
How it was found
- Log in to the corporate booking portal with a valid corporate account.
- Open the booking history or transaction details section.
- Click the Print button for a booking to load the full ticket.
- Decode the Base64 transactionId in the URL to get a numeric ID.
- Change the numeric ID, re-encode it to Base64 and URL-encode it, then reload.
- Observe another user's complete booking details returned without authorisation.
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.
An IDOR (Insecure Direct Object Reference) happens when a website uses a simple identifier, like a number, to point at a record and does not check that the person asking actually owns that record. Here, changing a number in the web address showed someone else's flight ticket and personal details. The fix is to check on the server that the logged-in user is allowed to see that specific booking.
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.