DL·SYS
Contact ↗

CSCTF 2026 · Reverse engineering · 136 pts

Command Authority.

A JPEG keeps going after its own end marker — and that extra data is the password to the archive holding the real binary.

JPEG trailing dataConditional static decode
EventCSCTF 2026, Operation Dawn (online jeopardy)
CategoryReverse engineering
Points136
StatusSolved during the event
TargetJPEG + archive, offline

TL;DR. A JPEG file has extra bytes after its EOI marker reading `ARCHIVE-KEY:`, which unlocks a password-protected archive. Inside, a verifier binary decodes a flag by unconditionally XORing a fixed rodata region with a constant in its 'clearance confirmed' branch — readable statically without ever needing to pass the binary's own actual integrity check.

Challenge

Recover a flag locked behind a password-protected archive, given only a JPEG image.

Solution

JPEG files end at a defined End-Of-Image marker, but nothing stops extra bytes from following it — most viewers simply stop reading at EOI and never notice. Here, the trailing bytes read directly as ARCHIVE-KEY:aPS6xxqP2CfNU0 — a password for a separate encrypted archive.

Unzipping the archive with that password reveals a field_verifier binary. Its "clearance confirmed" code branch decodes a flag unconditionally — by XORing 31 bytes of its own .rodata (at offset 0x2120) against the constant 0x41 — entirely separately from a SHA-256-based integrity check elsewhere in the binary that gates whether that branch is reached at runtime. Because the XOR decode itself doesn't depend on passing that check, the flag is readable statically, directly off the binary's own data, without needing to satisfy the runtime gate at all.

Flag

FlagCSCTF{f96f4417c75121c3d27b039d}

What I took from it