Cyber Risks · Trail of Bits Blog

Tag, you’re it: Signal tagging in Circom

Summary: Trail of Bits describes signal tagging, a Circom feature introduced in version 2.1.0 that lets developers specify and enforce preconditions and postconditions on templates at compile time without adding constraints. The post lays out four usage rules and shows how missing tags contributed to three bugs (TOB-SUCCINCT-1, -2, and -14) found in its review of Succinct Labs' Telepathy, where unchecked limb sizes allowed a malicious prover to freeze the light client and dependent bridge funds.

Why it matters: Circom tags do not affect the compiled constraint system and are not checked by the compiler, so an incorrectly applied tag silently undermines the guarantee it appears to provide. In Telepathy, the absence of maxbits and fp tags left three missing constraints that a single malicious prover could exploit to stall the protocol irrecoverably.

Read the original at Trail of Bits Blog ↗