Security context

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

OlympusDAO/olympus-v3
develop @ c77cde8
134
Fixes
0
CVEs
CRITICAL
Peak severity
33.3%
Coverage
Highlights
Logic Error: 38 prior fixes. Scrutinize any change in this area.
src/policies/EmissionManager.sol: most-fixed (12 issues). Treat as high-risk during review.
69 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.

Auth Bypass: Critical treasury withdrawal and debt repayment functions lacked permissioned access control modifiers, allowing unauthorized actors to drain or manipulate treasury assets.
Logic Error: The lack of post-withdrawal and post-repayment solvency checks enabled borrowers and operators to bypass global solvency constraints, leading to a state where the protocol could become insolvent.
Auth Bypass: Lack of ownership validation during position redemption cancellation allowed unauthorized accounts to hijack and cancel redemptions of transferred or third-party positions.