Security context

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

plumenetwork/contracts
main @ 8248e78
17
Fixes
0
CVEs
HIGH
Peak severity
46.2%
Coverage
Highlights
Access Control: 13 prior fixes. Scrutinize any change in this area.
nest/src/AggregateToken.sol: most-fixed (5 issues). Treat as high-risk during review.
11 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.

Access Control: Multiple sensitive functions were callable by any address or incorrectly restricted to ADMIN_ROLE instead of MANAGER_ROLE, allowing unauthorized minting and price manipulation.
Access Control: Slashing votes and commission claims lacked proper validator state and voter eligibility checks, enabling manipulation by slashed or inactive validators.
Access Control: Staking functions did not consistently reject slashed/inactive validators, and restake left stale relationships, enabling unauthorized operations.