Liquid Staking

Stakelink
DeFiHardhatOracle
50,000 USDC
View results
Submission Details
Severity: high
Invalid

Not having a hard cap on strategy list might break StakingPool contract.

Summary

Vulnerability Details

address[] private strategies; is a dynamic array which can grow to a very large list. Across the whole staking pool contract lot's of functions including removeStrategy traverse through this strategies list. At some point traversing through a big strategies list might run out of gas. If the owner is not careful it might even break removeStrategy function, which will render the whole contract inoperable.

Impact

Dynamic strategies list might lead to accidental DOS attack.

Tools Used

Manual

Recommendations

It is good to have hard cap strategies list.

Updates

Lead Judging Commences

inallhonesty Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.