Skip to content
Business logic Write-up Beginner

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.

aswinmanikandan Follow

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,

Aswin Manikandan, on medium.com

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

  1. Enter the starting and destination stations and click “plan and buy”.
  2. Add one or more tickets to the cart.
  3. Intercept the request using Burp.
  4. Add a “-” symbol before the quantity and forward the request.
  5. Go to the cart and observe the price with a “-” symbol.
  6. 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.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.