The claimFaucetTokens function resets dailyClaimCount only when a claim occurs and block.timestamp > lastFaucetDripDay + 1 days. If no claims happen for an extended period, the counter doesn’t reset, potentially blocking claims when dailyClaimCount exceeds dailyClaimLimit.
Likelihood:
Occurs when no claims are made for more than 24 hours, delaying the reset of dailyClaimCount.
Occurs when dailyClaimCount reaches dailyClaimLimit, preventing further claims until a reset.
Impact:
Legitimate users are unable to claim tokens if the counter isn’t reset.
Disrupts the faucet’s functionality, leading to poor user experience.
Explanation: The PoC simulates a scenario where dailyClaimCount reaches the dailyClaimLimit, and no claims occur for over a day. Since the reset only happens during a claim, the counter remains high, causing subsequent claims to revert until a claim triggers the reset.
Explanation: We modify claimFaucetTokens to reset dailyClaimCount at the start of the function using a consistent day calculation (block.timestamp / 24 hours). This ensures the counter resets daily, even if no claims occur, preventing claim blockages.
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.