Buy Multiple Translink Travel Ticket for the Price of One.
The ticket purchase system allowed a negative quantity to be submitted, which produced a negative price in the cart. By then adding a positive quantity, an attacker could obtain multiple tickets for the price of one.
Published on medium.com
One day, while sitting in the student union of my university, I was searching for random responsible disclosure programs on Google. Then I saw a Translink bus passing by,
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 did not validate that the quantity parameter was a positive integer and trusted the client-supplied value when calculating the cart total.
Impact
An attacker could buy multiple tickets while paying for only one, causing a financial loss to the transport provider.
What the attacker needed
Access to the ticket purchase website; ability to intercept HTTP requests
The fix
The issue was fixed after the researcher reported it to the transport provider's cybersecurity team.
How it was found
- Enter the starting and destination stations and click “plan and buy”.
- Add one or more tickets to the cart.
- Intercept the request using Burp.
- Add a “-” symbol before the quantity and forward the request.
- Go to the cart and observe the price with a “-” symbol.
- Return to the ticket purchase page, add more tickets, intercept the request again, and add a “+” symbol instead of “-”.
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 tickets online, the website sends your order details to its server. The server should check that the number of tickets you ask for makes sense. Here, it accepted a negative number, which messed up the total price, and then a positive number let the buyer get extra tickets for free.
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.