CSCTF 2026 · Web · 176 pts
switchboard.
A leaked internal hostname, reachable on the same server — and its login endpoint will sign you in as a supervisor if you simply ask for it.
| Event | CSCTF 2026, Operation Dawn (online jeopardy) |
|---|---|
| Category | Web |
| Points | 176 |
| Status | Solved during the event |
| Target | Assigned live container |
TL;DR. A public exchange board's own JavaScript leaks the internal controller's virtual-host name in a Base64 string. That controller is served on the same host, reachable just by sending the right `Host` header — and its login endpoint accepts a client-supplied `role` parameter and mints a signed session cookie for whatever role is asked for, including supervisor.
Challenge
Export a supervisor-only trunk cryptographic key from an internal exchange controller, starting from the public exchange board.
Solution
The public board's /static/switchboard.js contains a Base64-encoded string that decodes to exch-ctl.vjod.internal — the internal controller's intended hostname. The same physical server also happens to serve that controller's application; sending requests with Host: exch-ctl.vjod.internal reaches it directly, with no actual internal network segmentation required to get there.
The controller's overview page documents its endpoints: POST /auth (body: username), GET /operators, and GET /export/trunk-key (access level: supervisor). Authenticating with just a username, for any operator including known supervisor callsigns, only ever grants an "operator" role in the returned session cookie — but /auth also silently accepts and mass-assigns an extra role body parameter straight into the session: POST /auth with username=duty&role=supervisor returns {"role":"supervisor"} and signs a cookie with that role.
GET /export/trunk-key with that supervisor-role cookie returns the exchange's current trunk encryption key directly, with the flag as its value. (Spoofing the role via an X-Role header or similar out-of-band trick doesn't work — the role has to be inside the signed session cookie, which /auth will mint correctly for you the moment you simply ask.)
Flag
CSCTF{L0zTx7n3Rg302JXT9LPxmduM}What I took from it
- An auth endpoint that accepts a client-supplied privilege field in its request body — even one it otherwise ignores for most usernames — is a mass-assignment vulnerability the moment any input combination reaches a privileged role; a vhost 'secret' hostname served on the same reachable server provides essentially no real isolation on its own.