Security context

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

lidofinance/community-staking-module
develop @ b5a8452
18
Fixes
0
CVEs
CRITICAL
Peak severity
43.8%
Coverage
Highlights
Access Control: 5 prior fixes. Scrutinize any change in this area.
src/CSModule.sol: most-fixed (4 issues). Treat as high-risk during review.
9 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 high-severity access control gaps in core module functions, including role misconfiguration and missing authorization checks, allowing unauthorized operations.
Authorization Bypass: Deposit functions lacked sender validation, enabling unauthorized deposits and potential fund manipulation.
Integer Overflow: Unchecked subtraction in bond share reduction could underflow, corrupting accounting.