Specialized Zero-Knowledge Proof failures
Summary: Trail of Bits found two bugs in special-purpose zero-knowledge proof code: in Binance's tss-lib, a Proof structure lacking checks on h1, h2, and p.Alpha lets an attacker set alpha_i = 0 so the verification check reduces to 0 = 0 and an invalid proof is accepted, and in Coinbase's kryptology library, setting v = s = 0 lets Bob forge a Paillier discrete log proof without knowing the factorization of N. The tss-lib bugs were reported to Binance and fixed, with fixes also integrated by ThorChain, Joltify, SwipeChain, and Keep Networks, while the kryptology issue was reported to Coinbase and the project has since been archived on GitHub.
Key Takeaway: An attacker who can forge these proofs can sabotage the GG20 threshold signature protocol undetected and prevent targeted transactions from completing on blockchains that rely on it, and the root cause was missing input validation rather than a broken cryptographic construction.
Read the original at Trail of Bits Blog ↗