The Hidden QR Code Vulnerability That Put Millions at Risk
The ticket system's QR codes contained raw phone numbers and were protected only by short, predictable tokens, and expired tickets still exposed the QR data behind a client-side overlay. An attacker could enumerate tokens to view other users' phone numbers and potentially other personal data.
medium.com
Published on medium.com
I was half-relaxed and half-panicked exams were a week away, I was traveling between cities, and life felt like a messy juggling act: revision notes in one pocket, bus ticket in the other. I wasn’t hunting bugs that day.
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 system used short, guessable identifiers for ticket URLs and embedded raw personal data in QR payloads without server-side authorisation checks, while expired tickets were hidden only by a client-side overlay.
Impact
An attacker could enumerate short tokens to discover many records and expose phone numbers, which could then be used with OSINT to find names, emails, social accounts, and home addresses, causing privacy breaches and business harm.
What the attacker needed
A valid ticket with a QR code; ability to inspect and modify web pages; a way to decode QR images
The fix
The system should use long, cryptographically secure tokens, enforce server-side authorisation before returning QR payloads, encrypt or minimise QR payloads to avoid raw PII, and render expired content server-side with a safe placeholder.
How it was found
- Notice the ticket URL was short and predictably structured.
- See the QR shown as expired, inspect the page, remove the visual overlay hiding the QR, and save the image.
- Try online QR decoders, which failed, then use a local Python script to decode the saved QR.
- Observe the decoded payload contained raw phone numbers.
- Check older tickets, note the pattern at the end of the URL, and view a previous ticket.
- Run a limited, controlled validation to confirm scope, then stop probing.
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 QR code is just a picture that holds a link or text. Here, the ticket system put people's phone numbers directly inside the QR code, and the web address used to fetch it was short and easy to guess. That meant someone could try lots of similar addresses and see other people's ticket details, even after the ticket had expired.
What is IDOR?
One user can read or change another user's data, usually by changing an identifier the server trusts without checking who is asking. One of the most paid bug classes on web programs.