DL·SYS
Contact ↗

CSCTF 2026 · Web · 540 pts

Apogee.

A flight-dynamics vault trusts whichever ZIP entry its manifest names last — extraction trusts whichever entry comes first.

ZIP parser differentialSymlink write900pt web
EventCSCTF 2026, Operation Dawn (online jeopardy)
CategoryWeb
Points540
StatusSolved during the event
TargetAssigned live container

TL;DR. The vault's manifest-to-archive-entry lookup resolves a name to the last matching ZIP entry, while the extractor writes entries in archive order. A ZIP with two same-named entries — a symlink into the write-protected trusted store, then the real validated file — passes validation against the second entry while extraction writes the file's bytes through the first entry's symlink.

Challenge

ORRIN-3's trusted manoeuvre table had been replaced by a hostile staged table. The task is to restore the validated original and retrieve the uplink pass receipt.

First look

GET /api/v1/schema documents the whole restore pipeline. The journal shows the prior hostile delivery's package (PKG-2032) had a ZIP with two central-directory entries sharing the same name: an ordinary file, and a symlink (S_IFLNK external attribute) pointing at ../../../trusted/mvr/r3-manoeuvre.ctab. The extractor in use, extract-zip 2.0.1, happily processes both.

Solution

The bug is a parser differential: the manifest-validation step resolves a declared path to a ZIP entry by name, last match wins, while extraction simply walks entries in the order they appear in the archive. So a ZIP built as:

entry 1: r3-manoeuvre.ctab  (symlink -> ../../../trusted/mvr/r3-manoeuvre.ctab)
entry 2: r3-manoeuvre.ctab  (regular file, the VALIDATED bytes)

validates clean, because the manifest check looks at entry 2 (last match) and finds the correct, validated bytes. But extraction processes entry 1 first — creating the symlink — then writes entry 2's bytes through that symlink, landing them inside the write-protected trusted store at /tmp/apogee/trusted/mvr/r3-manoeuvre.ctab.

Submitting an analyst re-submission (multipart manifest + this package) restores the trusted table. After the restore verifies, GET /api/v1/pass/receipt?unlock= with sha256("apogee|ORRIN-3|<validated_sha256>|<restore_package_id>") returns the release token.

Flag

FlagCSCTF{25o736vNGlxhjWSWaNueTixZ}

What I took from it