Skip to content
Info disclosure Write-up Beginner

Reversing UK mobile rail tickets

The ttkMobile app's server exposes ticket scan history and barcode data without authentication, accessible by anyone who knows a ticket's ID. An attacker could retrieve detailed tracking information about a passenger's journeys, including inspector usernames and train details.

Zeeshan Mustafa Follow

Published on eta.st

The UK has used small credit-card sized tickets to pay for train travel for years and years, since long before I was born — originally the APTIS ticket1, which later got replaced by a slightly easier to read version printed onto the same stock.

Zeeshan Mustafa (@by6153), on eta.st

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

Impact

An attacker could access detailed tracking information about a passenger's train journeys, including inspector usernames, locations, and train services, potentially compromising privacy.

What the attacker needed

Knowledge of a ticket ID

The fix

The developers confirmed it was intended behaviour but agreed to restrict it; the text says this will happen soon.

How it was found

  1. Obtain a ticket ID (often printed below the barcode).
  2. Send a request to the ticket details endpoint with the ticket ID.
  3. Receive detailed scan history and barcode data in the response.

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.

A ticket ID is a short code printed on a train ticket. The server that stores scan records did not check who was asking for them, so anyone with that code could see where and when the ticket was used. This is like a locker that opens for anyone who knows its number, without needing a key.

What is Info disclosure?

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.

Similar reports

View all

Same bug class and techniques, clearest first.

Information disclosure

The lesson behind this report.

Data the application should keep private (personal data, internal details, other users' records) reaches someone it should not.