DeFiHardhatFoundry
250,000 USDC
View results
Submission Details
Severity: medium
Valid

`redeemDepositsAndInternalBalances` should mow before adding migrated deposits

Summary

redeemDepositsAndInternalBalances should mow before adding migrated deposits

Vulnerability Details

The redeemDepositsAndInternalBalances will add stalk, roots and bdv to a user's profile, but will not set their necessary variables (lastSop, lastUpdated and lastRain) as appropriate. Because of this, when mowing the next time, the user will accrue plenty as if they've had these deposits since their lastUpdate (which can even be 0).

Worst case scenario, user could be able to drain the protocol.

Impact

Loss of funds

Tools Used

Manual review

Recommendations

Mow before adding migrated deposits

Updates

Lead Judging Commences

inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Invalidated
Reason: Too generic

Appeal created

deadrosesxyz Submitter
about 1 year ago
inallhonesty Lead Judge
about 1 year ago
inallhonesty Lead Judge about 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

`redeemDepositsAndInternalBalances` should mow before adding migrated deposits

Support

FAQs

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