Cyber Risks · Trail of Bits Blog

Curvance: Invariants unleashed

Summary: Trail of Bits ran a nine-week invariant development engagement with Curvance, writing and testing 216 invariants that uncovered 13 critical findings. The work pushed Echidna, Medusa, and CloudExec to their limits, and a contract rename from Lendtroller to MarketManager in commit a96dc9a invalidated a corpus built over 43 days of Echidna cloud runs, crashing all 15 worker threads after 14 unreplayable transactions.

Why it matters: A single contract rename erased 43 days of accumulated fuzzing corpus and halted the entire suite, showing that a fuzzing setup is only as good as its ongoing maintenance against a moving codebase. The missing assertion in processExpiredLock, which let a relock call grant a new lock without removing the old one, is the kind of bug that sits quietly until someone exploits the inflated lock count.

Read the original at Trail of Bits Blog ↗