claimCut() has no block.timestamp check. Users can claim rewards after 90 days until the owner calls closePot(). These late-claimed rewards should have been distributed between the owner and the claimants who claimed on time.
Medium
Medium
claimCut() should only allow claiming rewards within a 90-day window. After that period, no one should be able to claim.
However, no time check is implemented. This allows claiming after 90 days, breaking the intended protocol behavior and preventing the owner and on-time claimants from receiving their share of unclaimed rewards.
Likelihood:
Occurs in every deployed Pot contract. No complex attack required.
Impact:
Breaks the intended behavior described in the documentation.
The owner and on-time claimants lose part of the unclaimed rewards, or remainingRewards can even reach 0.
This test shows how a player can call claimCut() after 90 days, causing remainingRewards to reach 0 and the owner to receive nothing.
Add a time check to prevent players from claiming after the 90-day deadline.
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.