Cyber Risks · Trail of Bits Blog

Circomspect has more passes!

Summary: Trail of Bits released version 0.8.0 of Circomspect, its static analyzer and linter for Circom, adding five new analysis passes to the tool's initial nine, along with support for tags, tuples, and anonymous components. The new passes flag uses of Circomlib's LessThan template whose inputs are not constrained to fewer than log(p) - 1 bits, and templates whose output signals are left unconstrained; the authors say these passes would also have caught the "million dollar ZK bug" Veridise found in the circom-pairing library.

Key Takeaway: The LessThan flaw lets a user with a zero balance withdraw p - 1 tokens because p - 1 also represents -1 in the field, and the same class of bug let players in an early version of Dark Forest colonize planets outside the playing field.

Read the original at Trail of Bits Blog ↗