MorpheusAI

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

editPool is not checking for payoutStart

Summary

When a pool is created with createPool there is a check if the payoutStart is in the future.
This can be worked around with the editPool function.

Vulnerability Details

In createPool there is the following check:

require(pool_.payoutStart > block.timestamp, "DS: invalid payout start value");

This can be worked around by directly editing the pool after the creation, and set the payoutStart to an earlier timestamp. This works because editPool is lacking this check. This can even be done in the same transaction.

Impact

Pool can be created with payoutStart time in the past.

Tools Used

n/a

Recommendations

Add the same check for the payoutStart to the editPool function.

Updates

Lead Judging Commences

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.