Highlights
Logic Error: 4 prior fixes. Scrutinize any change in this area.
code/Week09/lecture/on-chain/Minting.hs: most-fixed (2 issues). Treat as high-risk during review.
5 high-severity fixes in this history; regressions here are high-impact.
Recurring patterns
The bug types that recur here, drawn from past fixes, not open vulnerabilities.
Logic Error: Inadequate verification of asset amounts allowed positive stablecoin minting during burn or liquidation operations. Attackers could exploit this to mint unauthorized tokens by bypassing expected negative value checks.
Auth Bypass: The lack of a Thread Token enforcement in the TokenSale state machine allowed unauthorized transition bypasses, enabling attackers to interact with counterfeit contract instances and manipulate state.
Logic Error: Missing input validation on prices and token amounts during state machine transitions allowed processing of negative or zero values, leading to unexpected financial states.