Security context

What an agent needs to avoid regressing past fixes and find the next vuln in this repo.

lista-dao/moolah
master @ 016c909
9
Fixes
0
CVEs
HIGH
Peak severity
50.0%
Coverage
Highlights
Logic Error: 3 prior fixes. Scrutinize any change in this area.
src/broker/CreditBroker.sol: most-fixed (2 issues). Treat as high-risk during review.
8 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.

Authorization Bypass: Spoofed brokers could forge calls because broker registration was not validated before role checks, enabling unauthorized operations on fixed-term positions.
Authorization Bypass: Missing market and pair whitelist checks allowed unauthorized liquidation and token sales, bypassing intended access controls.
Logic Error: Users with existing debt could borrow again, creating a logic error that could lead to financial loss; the fix added a debt check.