Please Turn Off Your GraphQL Introspection Before the Movie Begins

December 1, 2026#programming#security12 min read29 views

All views and content published are my own and do not represent any current or former employer. This site is maintained in a personal capacity. Technical content is shared for educational purposes only.

Editor's note:
At no point did I use the method below for financial gain. No tickets were purchased as a result of this research, and I don't condone this behavior. This post should not be used as a blueprint, because AMC will straight up ban you and cancel your tickets.

Preamble

Back in July, when The Odyssey was coming to IMAX 70mm, the best seats for the first showings at most theaters sold out on AMC's website within minutes. Not long after, they were back up on eBay for hundreds of dollars. Only a handful of theaters in the world (41 total!) have an IMAX 70mm projector, so every single seat for sale is being contested by thousands of people.

I have a long, long history of botting everything I can get my hands on: sneakers, two-letter license plates, and Waffle House... so naturally, whenever something drops in limited supply, my first instinct is to understand how the site decides who gets one. My second is to see whether a machine can get there before every human clicking through it.

To beat a human at checkout, I'd need three things: a list of showtimes, a live seat map for each one, and the request the site uses to actually reserve a seat. The seat map, at least, I knew was possible. Riley Walz (another chaos engineer, and someone I greatly look up to) had released a fun site a few months prior that found nearly empty AMC showings, so you could grab a ticket and basically have the whole theater to yourself. If he could read AMC's seat maps from outside their website, so could I. The real question was whether I could get all three, and fast enough to matter.

Mapping Their API

Opening the website with DevTools showed that everything went through one place: a GraphQL endpoint at graph.amctheatres.com. If you're unfamiliar with GraphQL, the TL;DR is that it's an API with one endpoint where a client can send a query naming exactly the fields it wants back from the server. The server also describes everything it can do in a typed schema. Reads are queries, and writes (like reserving a seat) are mutations.

GraphQL has a built-in feature called introspection, which lets you query the schema itself. Sometimes, if you ask nicely and send the server a __schema query, it'll hand back a complete map of its own API! Introspection is really, really great in development, and really, really bad in production. With it turned on, I wouldn't have to waste my time reverse-engineering AMC's API one request at a time. Instead, I'd get a list of every query and mutation their API supports, including the ones the website wouldn't normally use. Anyone with worse intentions gets the same list, which is why it's... usually... turned off.

I first took a look at a normal request. Each one looked about the same: a POST with a static header (X-AMC-Vendor-Key), along with the usual browser junk such as Origin and Referer. Cloudflare did sit in front of the endpoint, but using any TLS fingerprinting library (my weapon of choice is curl_cffi with impersonate="chrome"), I got through without a hitch. After poking at a few queries, I thought to myself, "Surely a multi-billion-dollar company wouldn't have GraphQL introspection enabled on their public API!"

from curl_cffi.requests import Session
from graphql import build_client_schema, get_introspection_query, print_schema

session = Session(impersonate="chrome")
r = session.post(
    "https://graph.amctheatres.com/",
    headers={
        "X-AMC-Vendor-Key": "<the web client's key>",
        "Origin": "https://www.amctheatres.com",
        "Referer": "https://www.amctheatres.com/",
    },
    json={"query": get_introspection_query()},
)

schema = build_client_schema(r.json()["data"])
open("amc_schema.graphql", "w").write(print_schema(schema))

Wrong. With only the X-AMC-Vendor-Key and a single query (okay, maybe two or three to debug it), I was able to dump their entire production schema: 4,205 lines of sweet schema text that included 281 object types, 99 input types, 44 enums, and 108 mutations.

The schema covered the website's operations (logging in, querying theaters and their movie offerings, showtimes, ticket prices, purchasing tickets (!), and creating accounts (!!)), as well as their mobile app's, which were mostly boring.

Remember the three things I said I needed? Showtimes, seat maps, and the way to reserve a seat. I was expecting to dig them up one request at a time. Instead, I'd been handed the blueprints to the vault, all in a nice, byte-sized package. (Get it? Computer byte? OK sorry.)

How Normal People Get Tickets

When a user selects the theater and movie they want to see, the site makes three requests under the hood before they reach the checkout page:

  1. theatre(id) takes the movie format you're looking for (IMAX 70mm, standard 70mm, standard IMAX, etc.) and returns that theater's showtimes in an object that looks like this:
{
  "data": {
    "viewer": {
      "theatre": {
        "name": "AMC Lincoln Square 13",
        "slug": "amc-lincoln-square-13",
        "formats": { "items": [{
          "attributes": [{ "name": "IMAX 70mm" }],
          "groups": { "edges": [{ "node": {
            "showtimes": { "edges": [{ "node": {
              "showtimeId": 133700,
              "showDateTimeUtc": "2026-08-14T22:00:00Z",
              "status": "Sellable",
              "movie": { "name": "The Odyssey" }
            }}]}
          }}]}
        }]}
      }
    }
  }
}

Once the server responds with the showtimes, the user picks a time, which takes us to step 2:

  1. showtime(id) returns ALL of the information on that screening: seat layout, ticket prices, and the status of every seat. For a normal person, this is nothing but the seat picker you tap to choose where to sit. But for a bot, this is how we know the moment a good seat opens up.

The returned object looks something like this:

{
  "data": {
    "viewer": {
      "showtime": {
        "showtimeId": 133700,
        "showDateTimeUtc": "2026-08-14T22:00:00Z",
        "status": "Sellable",
        "movie": { "name": "The Odyssey" },
        "prices": [
          { "sku": "TICKET-RS-133700-ADULT", "price": 28.49 },
          { "sku": "TICKET-RS-133700-CHILD", "price": 25.49 },
          { "sku": "TICKET-RS-133700-SENIOR", "price": 26.49 }
        ],
        "seatingLayout": {
          "rows": 20,
          "columns": 30,
          "seats": [
            { "name": "H7", "row": 7, "column": 7,
              "type": "CanReserve", "seatStatus": "Available" },
            { "name": "H8", "row": 7, "column": 8,
              "type": "CanReserve", "seatStatus": "Sold" },
            { "name": "",   "row": 7, "column": 9,
              "type": "NotASeat",   "seatStatus": null },
            { "name": "J7", "row": 8, "column": 7,
              "type": "Wheelchair", "seatStatus": "Available" }
          ]
        }
      }
    }
  }
}

Some theaters have weird seat configurations, and the API exposes all of them. The layout is a plain grid (20 rows by 30 columns here), and every cell in it comes back in the response, whether or not there's a seat in it. Aisles, walkways, and gaps between sections are all filled with cells of type NotASeat:

  • Available
  • Sold
  • Wheelchair
  • NotASeat

(My initial thought was that these were companion seats or some other associated seat, but nope, the API would literally just return NotASeat. Ooookay. Got it!)

The user then selects a seat, which loads a page asking what kind of ticket they want. This is where most people lose. Picking a seat doesn't hold it. The ticket type screen is purely client-side and doesn't make a single network call, so as far as AMC knows, you haven't asked for anything yet. The seat stays up for grabs the entire time you're deciding whether you're an Adult or a Senior... and anyone (or anything) that gets past that screen first takes it right out from under you.

Assuming the user survives the performative 70mm enjoyers fighting for their lives, the site finally sends the third and final request:

  1. orderCreate takes the ticket SKU (Adult, Senior, or Child), the quantity (1), and the row and column of the seat you want (as numbers rather than a label like B7). If you're somehow lucky enough, your browser gets back a short response:
{
  "data": {
    "orderCreate": {
      "order": {
        "token": "<UUID of a cart>"
      }
    }
  }
}

Bingo. You'd be redirected to the checkout page with six minutes to complete your purchase before the timer expired, and the ticket would be yours.

Or would it?

Jumping a Turnstile That Doesn't Exist

In theory, AMC's carting system works fine for popular releases. Whoever is quick enough to log in, find their movie, get to the seat page, and cart tickets before everyone else wins the seat, right?

I started by looking at the login process. From what I'd already seen, identity-layer actions like account creation, login, password changes, and gift card redemption all required the captcha and captchaType fields in their mutations.

Looking at DevTools revealed they were using Cloudflare Turnstile in invisible mode, which meant any legitimate-enough browser with JavaScript enabled got a token minted for it. These tokens were only required for identity actions and were single-use and short-lived... but since they were minted silently, with a little magic, you could theoretically mint a massive pool of tokens to use on any identity-layer action!

I went back to the orderCreate flow and how tickets were added to the cart, looking for where Turnstile checked that users were human at cart time. Given that AMC has had a number of incidents where humans had trouble getting tickets, surely they'd verify that you're real before letting you touch a seat, right?

Wrong again, reader. Not only does AMC not require an account to reserve a seat (to support guest checkout), they don't even check who (or what) you are when you try! No account, no login, and no captcha. A bot could put a seat on hold just by asking for it, as fast and as often as it wants.

It felt a lot like this to me:

A lone yellow gate standing in the middle of a sidewalk, with nothing on either side to stop you walking around it

Bonus Round: Racing for the Tickets

A seat can only be won once, and AMC gives it to whichever orderCreate its server processes first. That isn't necessarily the request that I sent first. Network jitter can often shuffle the arrival order of requests, so the second or third request out the door can easily land before the first (and did, in my testing).

async def race_create_seats_order(sessions, showtime_id, seats):
    pending = {
        asyncio.ensure_future(
            asyncio.to_thread(create_seats_order, s, showtime_id, seats)
        )
        for s in sessions
    }
    token, last_exc = None, None
    while pending and token is None:
        done, pending = await asyncio.wait(
            pending, return_when=asyncio.FIRST_COMPLETED
        )
        for task in done:
            if task.exception() is None:
                token = task.result()
                break
            last_exc = task.exception()
    for task in pending:
        task.cancel()
    return token, last_exc

If nine other people each ask once and you ask three times, a quarter of the asks for that seat are yours, and every extra one costs you nothing!

Bonus Bonus Round: Seat Greed

Remember when I said the quantity in an order was 1? That was kind of a lie.

orderCreate took quantity as 1, but the site let you add multiple seats to a cart... with seemingly no limit. So in theory, if a block of valuable seats opened up, a scalper could snipe the entire block before you ever saw a single one.

Scanning, Scaling, and Scalping

After this discovery, the hypothetical end-to-end flow was very simple:

  1. Constantly refresh high-value theaters (such as AMC Lincoln Square) with high-value formats (IMAX 70mm) and high-value seats (usually rows H and J, seats 18–25, and rows G and K, seats 19–24).
  2. As soon as tickets become available, race a few orderCreates to create a cart with the desired seat.
  3. ???
  4. Profit.

I quickly threw together a proof-of-concept bot when AMC announced new dates for The Odyssey in the 70mm theater at Lincoln Square, aaaaaaaaaaaaand almost immediately got slammed by AMC's rate limiter.

Your Rate Limits Mean Nothing to Me

A few dozen requests into a fresh session, AMC kicked back a 429 with Retry-After: 1200, a twenty-minute timeout. The limiter they were using punished bursts of requests much harder than sustained traffic, which meant polling every showtime separately was out and I had to get creative.

Thankfully, GraphQL has a solution for this: aliases! You can ask for the same field several times in one request, so long as you give each copy a different name. This means one request could check the seat maps for a batch of showtimes:

query Seats {
  viewer {
    s133700: showtime(id: 133700) { ...SeatMap }
    s133701: showtime(id: 133701) { ...SeatMap }
    s133702: showtime(id: 133702) { ...SeatMap }
  }
}

fragment SeatMap on Showtime {
  seatingLayout {
    seats { name row column type seatStatus }
  }
}

I was able to stuff thousands of seat states into one request, and the limiter counted it once! The bot then split the work in two: one half slowly checked for newly listed showtimes (AMC kept adding dates as demand grew), and the other half continuously polled every known showtime at a steady pace to detect availability in those showtimes.

When all was said and done, it worked exactly as well as you'd expect (and just for fun, I also had it pull eBay prices for nearby seats to show what each one was worth!)

A Discord message from the bot: it auto-carted seats F8 through F12, linked the order, and listed nearby eBay seats going for $250 a ticket

(Note: these were carted as a test and immediately released after it ran.)

So Long, and Thanks for All the Schemas!

You may be wondering, dear reader: does this still work? Could you take this post as a blueprint and build a multi-million-dollar ticket-reselling empire off my research?

(Un)fortunately, the AMC site I'm describing doesn't exist anymore.

Somewhere between July and now, AMC rebuilt their entire site with Next.js and moved the majority of their API calls to server-side components. This means I can no longer see what calls are being made to graph.amctheatres.com, and even if I could, all GraphQL requests now return Forbidden. A normal curl_cffi fingerprint doesn't get past it anymore, so I assume they switched to some kind of header-enforced system to secure it. But hey, at least introspection isn't accessible anymore!

As fun as this was to play around with, locking it down was definitely the right call. A ticketing API probably shouldn't hand its inventory to whoever asks nicely with the correct fingerprint, and hopefully this levels the playing field for the next round of IMAX 70mm tickets that go live.

And no, I didn't end up using this to get a seat. The funniest part is that I don't actually live anywhere near an IMAX 70mm theater, so none of this was going to get me a ticket. I was doing it purely for the love of the game cinema. I went the normal-person route: I bought a ticket online and smuggled an entire breakfast sandwich into the theater to watch The Odyssey.

A breakfast sandwich in foil, held up in a theater seat in front of the screenA friend's reply to the photo: all that work and you got the worst seat in the cinema tho ??

They're not wrong. I spent weeks watching every seat at Lincoln Square and never once checked which seats were any good in Tampa.

Thanks to Kai, Mark, and the rest of Creamcheese Babgel for proofreading & feedback. And thank you, reader, for making it all the way to the end (and past a breakfast sandwich)! <3

Enjoyed this one? Pass it along.

PostLinkedIn

Have thoughts? I'd love to hear them.

Keep reading

All posts