Skip to content
Business logic Write-up Beginner

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.

Karthikeyan.V Follow

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?

Karthikeyan.V, on infosecwriteups.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 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

  1. Set up an Android emulator and intercept the app's HTTPS traffic.
  2. Go through the ticket booking and payment flow.
  3. Intercept the POST request that contains the ticket price.
  4. Change the price to a much lower value and submit.
  5. 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.

More by Karthikeyan.V

View all

21 more disclosed reports, best first.

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.