CSCTF 2026 · Network · 200 pts
Hard Landing.
An admin session key leaks in plain sight in a login response — the only remaining puzzle is the exact string it signs.
| Event | CSCTF 2026, Operation Dawn (online jeopardy) |
|---|---|
| Category | Network |
| Points | 200 |
| Status | Solved during the event |
| Target | pcap, offline then live |
TL;DR. A captured login response leaks the admin session key directly. Reverse-engineering the exact canonical string that key's HMAC signs — from one known-good signed command already in the capture — lets you forge and send a brand-new, correctly signed recovery command to the live service.
Challenge
Send a signed recovery command to a live landing-control service, using only a captured login exchange.
Solution
The service authenticates commands with HMAC-SHA256 over a session key. Pulling the full HTTP bodies out of the capture shows the admin session key leaking directly in the login response (frame 26) — a plain configuration mistake, not something that needs to be attacked.
With the key known, the only remaining unknown is the exact string the HMAC actually covers. Reverse-engineering it from one already-signed command request in the capture (frame 44, where the key, timestamp, body and signature are all known) and testing candidate canonical strings against it finds the exact format:
HMAC-SHA256(hex-decoded key, "POST\n/api/command\n{timestamp}\n{body}")The service's own specification confirms this format exactly once checked. Sending a freshly signed request with command {"cmd":"RETURN_TO_PAD","pad":"A1"} and a current timestamp against the live service is accepted and returns the flag.
Flag
CSCTF{9d31Yf8yKZwNwyR2Vem7dKSf}What I took from it
- A leaked key is only half the problem when an API signs requests over a specific canonical string — recovering that exact format from one known-good signed example, rather than guessing at a 'standard' construction, is what makes the leaked key usable.