How I Found a Ticket Booking Bug That Allowed Me to Travel Almost
The Android app sent the ticket price as a client-controlled parameter in the booking request, and the server trusted it. An attacker could change the price to a token amount and still receive a valid ticket.
Published on infosecwriteups.com
Have you ever imagined booking a bus ticket for free or at the lowest cost and traveling anywhere you want? Sounds unbelievable, right?
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 trusted a price value supplied by the client instead of calculating the correct fare itself.
Impact
An attacker could book bus tickets at a fraction of the real price, causing financial loss to the transport corporation.
What the attacker needed
Android app installed; ability to intercept HTTPS traffic; a user account
How it was found
- Set up an Android emulator and intercept the app's HTTPS traffic.
- Go through the ticket booking and payment flow.
- Intercept the POST request that contains the ticket price.
- Change the price to a much lower value and submit.
- Observe that the booking succeeds and the ticket is issued.
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.
When you buy a ticket in an app, the app tells the server how much to charge. Here, the app let the user change that amount before sending it, and the server accepted the new amount without checking. So someone could pay almost nothing and still get a real ticket.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.