Voyage to Ithaca Writeup
The Odyssey's Ledger
The Odyssey's Ledger: Three Voyages - Step-by-Step Solution and Exploit Guide
Challenge Name: The Odyssey's Ledger: Three Voyages Category: Blockchain / Forensics Points: 400 Win Condition: Successfully parse all three ledger files, bypass decoy chains and poisoned payloads, and decrypt the fragments using the correct hashing algorithms and rolling cipher seeds. Flag: rvcectf{n0b0dy_c4n_3sc4p3_p0s31d0ns_wr4th}
- CRYPTOGRAPHIC BREAKDOWN
Solving The Odyssey's Ledger requires deducing the undocumented rules of three distinct blockchains and writing a stateful parser to chain them together.
-
Troy Ledger - Undocumented Cipher and Poisoned Forks Root cause: The block hashes are standard SHA-256, but the payload
tributefield is obfuscated. The genesis block contains the seed"WOODENHORSE". The cipher is a rolling stream cipher where each byte is XORed with a keystream generated by iteratively hashing the seed. A poisoned fork exists that has a valid hash but yields garbage plaintext. -
Mare Ledger - Double SHA-256 and Deep Forking Root cause: Standard SHA-256 fails here. The chain uses Double SHA-256 (
SHA256(SHA256(data))), a common blockchain standard. Furthermore, a decoy fork branches off deep inside the true chain, requiring a Depth-First Search (DFS) to find the longest completely valid path instead of just taking the first branch. -
Ithaca Ledger - HMAC Validation and Cross-Chain Seeding Root cause: The final chain uses HMAC-SHA256. The genesis block hints reveal that the HMAC key is Fragment 2, and the cipher seed is the first 16 hex characters of
SHA256(Fragment 1 + Fragment 2). A fake decoy chain anchored to the wrong Mare tip will yield a fake flag if the previous steps were evaluated incorrectly. -
STEP-BY-STEP EXPLOIT (PYTHON SOLVER)
Since this challenge requires local offline analysis, the "exploit" is a custom Python verification script.
STEP 1: RECONSTRUCT THE HASHING PROTOCOLS
Define the canonical JSON formatting and the three hashing algorithms required for the different ledgers.
