DL·SYS
Contact ↗

CSCTF 2026 · Crypto · 200 pts

Signing Authority.

Two receipts from the same signing service share a nonce — the same break as Rollback Pair, applied to forge a brand-new authorized message instead of just reading an old one.

ECDSA nonce reuseSignature malleability
EventCSCTF 2026, Operation Dawn (online jeopardy)
CategoryCrypto
Points200
StatusSolved during the event
TargetAssigned live container

TL;DR. Two of the signing service's issued receipts share an ECDSA `r` value, meaning they share a nonce. The same nonce-reuse algebra that recovers a private key from two signatures (as in Rollback Pair) recovers this service's signing key directly from its own receipts — letting you forge a fresh master-authorization signature for any message you choose, with the correct low-s normalization the service expects.

Challenge

Forge a master authorization signed by a code-signing service, using only receipts the service itself has issued.

Solution

The service's documentation schema effectively hands you the attack: its receipts are ECDSA-signed, and comparing the r values across the available receipts finds two that match exactly — the same nonce was reused across two different signed messages.

With a shared nonce, the standard recovery applies directly (see also the Rollback Pair write-up for the full derivation): subtracting the two signature equations eliminates the private key and solves for the nonce k, and substituting k back into either equation recovers the private key d.

With d recovered, signing a new, attacker-chosen master authorization message is immediate — the only extra care needed is normalizing the signature to "low-s" form (using s or n - s, whichever is smaller), since many ECDSA verifiers reject the high-s representation of an otherwise valid signature. The forged, low-s master authorization verifies and returns the flag.

Flag

FlagCSCTF{1zuNnHAlWZLjvZk4QRMBh7Ex}

What I took from it