METABYTE
Back to articles

Reverse Engineering Ticketmaster's Rotating Barcodes: A Deep Dive

How Ticketmaster's dynamic barcodes work, why they're not unbreakable, and what developers can learn from it.

22 iulie 20242 min read
Reverse Engineering Ticketmaster's Rotating Barcodes: A Deep Dive

Remember when a concert ticket was just a piece of paper with a QR code? Ticketmaster decided that was too boring and introduced rotating barcodes. The idea is simple: the code changes every few seconds to prevent scalpers from copying and reselling the same ticket multiple times. Sounds like magic? Actually, it's cryptography with a twist.

A security researcher reverse-engineered the system and found that tickets are generated using a secret key and a timestamp. The algorithm resembles TOTP (Time-based One-Time Password), commonly used in two-factor authentication. So your ticket is essentially a one-time password that refreshes every 15 seconds. Great for security, but a pain if you want to transfer it to a friend.

What this means for developers:

  • If you're building a dynamic QR code system, consider using standard protocols like TOTP or HOTP—they're battle-tested.
  • Store secret keys in a secure enclave; otherwise, anyone with database access can generate valid tickets.
  • Don't forget UX: dynamic codes require time synchronization on the user's device, or the ticket may fail.

Overall, Ticketmaster's system is a solid application of cryptography, but as always, nothing is unbreakable. The researcher showed that with key access, you can emulate a ticket, but for the average user, it's harder than it looks.

METABYTE studio's take: Dynamic barcodes are a great example of how cryptography solves real business problems. If you're considering similar protection for your product, remember: security must be user-friendly, or users will find a way around it.

NEXT STEP

Liked the approach?

We apply the same principles to client projects: AI, automation, products that don't die after launch.