MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: low
Valid

`Distribution.editPool()` doesn't check `pool_.payoutStart > block.timestamp` like the `Distribution.createPool()`

Summary

Distribution.createPool() checks if pool_.payoutStart > block.timestamp to revert on invalid payout start value but in editPool() it updates the pool_.payoutStart without checking which can be use to set invalid payout starttime

Vulnerability Details

see summary

Impact

Invalid payout start value can be set for pool.payoutStart

Tools Used

Manual

Recommendations

Add a check in editPool that revert the txn for invalid edit params

Updates

Lead Judging Commences

inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Validated
Assigned finding tags:

`editPool` function doesn't do the payoutStart check

Support

FAQs

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