Skip to content
Crypto Write-up Advanced

Two Signatures, One Nonce, Zero Secrets: A FROST Crypto Bug Story

A retry fingerprint in a FROST threshold-signing implementation omitted the verifying key, so a malicious coordinator could reuse the same nonce across two different verifying keys and obtain two signature shares with different challenges. Because Schnorr signatures are linear, these two shares allow recovery of the signer's long-term secret share.

medium.com

Published on medium.com

SQL injection shouts. Command injection shouts.

TrffnSec, on medium.com

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

The retry fingerprint hashed only the message and omitted other fields that affect the cryptographic challenge, such as the verifying key, so different signing contexts produced the same fingerprint and the same nonce was reused.

Impact

An attacker could recover a signing operator's long-term secret share, and if enough shares are compromised, the threshold security model collapses and future signatures could be forged.

What the attacker needed

Malicious coordinator role; ability to submit signing jobs

The fix

The retry fingerprint should include all challenge-affecting fields such as the verifying key and adaptor public key, and the system should reject nonce reuse when the fingerprint changes; the text states the issue was fixed and retested successfully.

How it was found

  1. Obtain a fresh nonce commitment from the signing operator.
  2. Submit a signing job with message M and verifying key VK1, receiving signature share s1.
  3. Submit another job with the same nonce and message but verifying key VK2, receiving signature share s2.
  4. Use s1 and s2 to recover the secret share mathematically.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

In a threshold signing system, several parties share control of a private key, and each party holds a secret piece called a share. A signing nonce is a one-time random value that must never be used twice; if it is, simple algebra can reveal the secret share. Here, a retry check that was meant to prevent nonce reuse forgot to include the public key, so an attacker could trick the system into reusing the same nonce with a different key and then recover the secret.

What is Crypto?

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.

Similar reports

View all

Same bug class and techniques, clearest first.

Cryptographic weaknesses

The lesson behind this report.

Encryption, signatures, randomness or certificate checks that do not protect what they claim to.