CSCTF 2026 · Web · 364 pts
Corridor Transit Gate.
The gateway's internal-route firewall is airtight against direct requests — routing the same traversal through a completely different, allowed path gets past it entirely.
| Event | CSCTF 2026, Operation Dawn (online jeopardy) |
|---|---|
| Category | Web |
| Points | 364 |
| Status | Solved during the event |
| Target | Assigned live container |
TL;DR. Direct requests to any internal API path are solidly blocked at the edge gateway (not bypassable via header or case tricks). But the ACL only matches the literal, raw request path — so percent-encoding the traversal slashes (`%2f`) and routing it through a *different*, allowed route prefix never shows the string `/internal/` to the gateway's check, while the backend still decodes and resolves the traversal to the restricted handler.
Challenge
Reach a restricted internal dispatch-override endpoint through a gateway that blocks all direct access to it.
Solution
A dashboard chunk file references a "Supervisor Dispatch Override" action wired to /api/v1/internal/dispatch/emergency-clearance. Direct requests to any path under /api/v1/internal/ are blocked at the edge gateway with a specific ACL error, and that check turns out to be robust against the usual bypass attempts — spoofed X-Forwarded-For, alternate Host headers, different casing, and literal dot-segment traversal (../) are all normalized and caught identically before the ACL runs.
What isn't caught: routing the same traversal through a different, explicitly allowed route prefix, with the slashes percent-encoded instead of literal:
curl --path-as-is -X POST \
'http://<host>/api/v1/telemetry/station/..%2f..%2finternal%2fdispatch%2femergency-clearance' \
-H 'Content-Type: application/json' \
-d '{"consignment_id":"CTLD-FR-8821","reason":"Operational emergency corridor escort"}'The ACL matches only on the raw, literal request path, and never sees the substring /internal/ because it's hidden inside %2f encoding — so the request passes straight through to the backend. The backend's own router then decodes the percent-encoded path and resolves the traversal, serving the restricted internal handler directly and returning an approval with the clearance token as the flag.
curl --path-as-is is required (curl normalizes ../ by default), and literal dot-segments don't work at all here — only the percent-encoded form slips past the gateway's own path-cleaning step before its ACL runs.
Flag
CSCTF{WJCTeqiAieyXHMhWAPEeZE4k}What I took from it
- A gateway ACL that's genuinely robust against every direct bypass technique on its own protected prefix can still be routed around entirely through a different, allowed prefix — a traversal doesn't need to defeat the ACL's string matching if it never shows that ACL the dangerous substring at all.