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.
| Event | CSCTF 2026, Operation Dawn (online jeopardy) |
|---|---|
| Category | Reverse engineering |
| Points | 136 |
| Status | Solved during the event |
| Target | JPEG + archive, offline |
TL;DR. A JPEG file has extra bytes after its EOI marker reading `ARCHIVE-KEY:
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
CSCTF{f96f4417c75121c3d27b039d}What I took from it
- A file format's defined end marker is a convention most tools respect, not an actual boundary on the file — checking for data trailing a JPEG's EOI (or any format's equivalent) costs nothing and sometimes finds exactly this kind of hidden key.