The Treasury contract's _totalValue tracking system lacks essential sanity checks and business logic constraints, allowing for uncontrolled value growth and potential protocol destabilization. This vulnerability could lead to unrealistic total values and disrupt the protocol's economic model.
The _totalValue variable is updated without proper constraints in two critical functions:
deposit function:
No validation of total value growth rate or maximum limits.
2. withdraw function:
No protection against rapid sequential withdrawals or negative value accumulation.
The vulnerability could lead to several critical issues:
Unrealistic total value growth through compound operations
Potential protocol destabilization
No protection against rapid sequential operations
Decimal arithmetic for precise financial calculations
Automated testing of compound growth scenarios
Implement Maximum Value Constraints
Add Rate Limiting
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.