Skip to content

Cryptomedium

One More Block

300 points · 0 solved

A signed API request uses sha256(secret + msg) as the signature. You have a valid pair and the secret is 7 bytes.

msg = "user=guest"
sig = c3540b3a55b8f68835b8c5d0a8859e2e8bc78b46d5c74d67c7dd4b3490a52045

Forge a signature for user=guest&admin=true. The gateway's response to a valid forged request is 200 {"role":"admin","flag":"sudo{hash_extends_admin}"}.

Hints0/2

Learn the technique/learn/applied-cryptography