MorpheusAI

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

Pool can be allowed to set invalid payout start with `editPool` function

Vulnerability Details

The function createPool checks if the payout start time is valid or not with the check require(pool_.payoutStart > block.timestamp), but this can be bypassed through the editPool function.

Tools Used

Manual Review

Recommendations

Enforce the following check in editPool function:

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

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.