CSCTF 2026 · Reverse engineering · 131 pts
Uplink Denied.
Three 64-bit blocks, each run through a splitmix-style mixing function and compared to a constant — and every step of that mixing function has a clean inverse.
| Event | CSCTF 2026, Operation Dawn (online jeopardy) |
|---|---|
| Category | Reverse engineering |
| Points | 131 |
| Status | Solved during the event |
| Target | binary, offline (static ELF) |
TL;DR. A static ELF reads a 24-byte key as three little-endian 64-bit blocks, runs each through a splitmix64-style finalizer (XOR-shift, multiply, XOR-shift, multiply, XOR-shift) and compares the results to three hardcoded constants. Like MurmurHash3's finalizer in Ground Lock, every step here is individually invertible, so the three target constants run backward directly into the original 24 bytes.
Challenge
Recover the exact 24-byte key a binary accepts, from static analysis alone.
Solution
main (at offset 0x4014f0) checks that the argument count is right and the key is exactly 24 characters, then reads it as three little-endian 64-bit blocks. Each block goes through a splitmix64-style finalizer: x ^= x>>33; x *= S; x ^= x>>33; x *= C; x ^= x>>33, with specific constants for S and C baked into the binary, and compares the result to one of three hardcoded target values.
As in Ground Lock's MurmurHash3 finalizer, this construction is built entirely from XOR-shifts (self-inverse) and multiplications by odd constants mod 2⁶⁴ (which have modular inverses). Inverting the finalizer with the modular inverses of S and C and running each of the three target constants backward through it recovers the three original 64-bit blocks directly. Reassembling them into 24 ASCII bytes and re-running the forward hash reproduces all three target constants exactly, confirming the key with no need to run the binary.
Flag
CSCTF{cau_reset_09ff4472cbe8e0}What I took from it
- splitmix64-style finalizers — and avalanche-style hash finalizers generally — are usually built deliberately invertible, since that's exactly the property their designers test for; recognizing the construction is most of the work in recovering a key checked this way.