Infinite Queue

Writeup for Infinite Queue (Web) - NahamCon CTF (2025) πŸ’œ

Description

Oh my god, I just can't with these concert ticket queues. It's gotten out of control.

Solution

We get through to a band website for Infinite Queue, pretty cool.

If we click the Buy Tickets option, we'll be placed in a queue for a very long time.

Checking burp, we see that the queue_position is retrieved by sending a JWT token to /check_queue. Check the details with jwt_tool

The token is signed with HS256, symmetric encryption. I try to crack it with rockyou, but fail.

Try it with the None alg.

I actually got a big error trace from using this token.

The notable part is The specified alg value is not allowed. I try the JWT editor extension in burp with a few different attacks too, e.g. signing with empty key returns Signature verification failed.

Wait, I just realised the JWT_SECRET is in the response lol.

We can test it with the JWT tool.

OK, we follow it's instructions while setting the queue time to 0.

I set the user_id to admin and the queue_time to 1.0.

When we update the token in burp, we get some good news.

We can now purchase the ticket.

It opens a PDF document containing the flag!

Flag: flag{b1bd4795215a7b81699487cc7e32d936}

Last updated