editPool
lack of payoutStart
check validation
On createPool
there is a check to make sure payoutStart
is greater than block.timestamp
meanwhile, on editPool
there is no check of this condition again, thus, there can be possibility pool can be updated to pool_.payoutStart < block.timestamp, which is not expected
understandably, the editPool
can update the payoutStart
if the new value is still greater than block.timestamp
, but when the editPool
is being executed after the payoutStart
is running, the check is not suitable again, therefore we can add :
with this condition check, if the editPool
is updating the past payoutStart
, it should not be allowed to be changed, else, it still allowed to be changed
payoutStart
is possible to be set less than block.timestamp
Manual analysis
Consider to add the code on Vulnerability Details to prevent updating invalid payoutStart
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.