Web • 500 points (Dynamic Decay) • Hard
DYNAMIC SCORING Current: 500 pts Range: 500 pts → 300 pts • Solves: 0 The kiosk export hides the one header that mattered. Every instruction the browser was given is still in it. Challenge Artifacts: kiosk_session.har sealed.json
The HAR matches my read: 19 requests, Cookie headers redacted from entry 9 (index 9) onward — so the final request's Cookie header (entry 18, GET https://vault.aranya.example/vault/export/seal) must be reconstructed by replaying the cookie jar from the Set-Cookie "instructions". Let me simulate the jar per RFC 6265 and validate my simulation against the 9 headers that are visible.
All 8 visible captured Cookie headers reproduce exactly with the RFC 6265 jar model (path-length-descending, then creation order) — simulation validated. Final reconstructed header (entry 18):
stage=2; xsrf=x1; pref=compact; xsrf=x2; vsid=v2; acg_sso=s2; fmt="v2"; probe=1; lang=hi
Now the seal: sealed is 45 bytes (the decoy "last draft" flag is 45 chars too), check = 6 bytes. Let me test whether check is a hash prefix of this answer and try to unseal the flag.
No luck with naive schemes. The check is probably a hash prefix that pins the exact answer string — which also lets me brute-force my way through ambiguous jar decisions (e.g., Max-Age vs past Expires, trailing-slash path match, Max-Age=30 expiry). Let me enumerate header variants, hash them, and try a zoo of unseal schemes.
My toggle enumeration collapsed due to a dedup bug (only 5 distinct candidates). Before brute-forcing harder, let me try cleaner 45-byte keystream constructions (blake2b digest_size=45, SHAKE, RC4) against the answer, the question text, and the check itself.
Interesting deduction: since sealed[0] is 0xda, XOR-ing any printable flag byte with the raw ASCII answer would give a keystream byte ≥ 0xa4 — impossible for an ASCII key. So the keystream must be binary (a hash of the answer). That means: keystream = H(answer), and assuming the flag starts with CACTF{, the correct key hash must begin 99 6d 71 ef b4 b4. Let me brute-force answer variants (cookie subsets × orderings × separators × quoting) × hash algorithms against both that constraint and the check pin.
6.3M hash ops, zero hits — so check isn't a plain hash of the answer, and the keystream isn't a standard hash of it either. Let me expand the construction zoo: keyed BLAKE2b (digest_size=45 — note that's not the same as truncating the 64-byte digest), SHAKE, HMAC/HKDF, PBKDF2, RC4, and Python-random-seeded keystreams, over my answer + composite inputs.
Nothing printable anywhere. Let me try a targeted pass: keystream rotations and reversals of every digest of my answer (in case of off-by-one alignment), plus CRC-style digests, digest-chains from check, and sealed-reversed alignments.
Still nothing. Let me test a different seal structure: maybe the 6-byte check is a nonce prefix — i.e., sealed = nonce(6) || ciphertext(39), with the 39-char flag body XORed by a keystream derived from that nonce. Also try 12-char ASCII-hex nonce. And hash-pin test the intermediate entry headers too.
Let me run a broader printable-plaintext brute force (the plaintext might not contain braces — e.g., it could be base64 of the flag), and simultaneously search for this challenge framework's seal format.
The web search found nothing about this framework. Key insight from the failure: my full-45-byte printability test would reject a correct key if the sealed blob were flag(39) || tag(6) or similar. Let me rerun everything with longest-printable-prefix reporting (catching partial/structured plaintexts), plus keyed hashes, double hashes, PRNG-seeded-by-hash, and AES-CTR/ChaCha via openssl.
Let me reconsider the combining operation itself — I've only tested XOR. A sealing scheme using modular addition/subtraction (sealed[i] = (flag[i] + ks[i]) % 256) would look identical to garbage under XOR tests. Testing all arithmetic combinations:
Let me test every hash algorithm hashlib offers (including variable-digest-size BLAKE2/SHAKE variants, which differ from truncation) against my answer — both for the check pin and the implied keystream prefix. Also cheap exhaustive single/double-byte XOR/addition keys on sealed directly.
All hashes and trivial keys exhausted. Time to re-audit the unverifiable jar decisions — the ones no visible capture can pin down. The tz deletion at entry 13 (tz=; Domain=aranya.example...) targets a cookie stored with Domain=.aranya.example — a model that preserves the leading dot would fail the delete-match and keep tz. That would change the final header content. Let me test that family:
Not a MAC, not equality-derived. My model must differ from the author's in the redacted region. Let me go wide: brute-force the check-pin (sha256(answer)[:12] == 9c322a280a8d, 48 bits — essentially collision-free) over a 21-item "sloppy-model" cookie pool (including value alternatives like s1/v1/dense, expired/deleted/rejected cookies, host-only quirks) × orderings × separators × quoting:
The sandbox dropped — let me retry with smaller, chunked runs. First a quick precision pass: my exact cookie set under alternative orderings (path-asc, newest-first, alphabetical) and formatting normalizations (lowercase, space-stripped, etc.), testing check-pin + keystream-prefix + unseal across algorithms:
