The protocol is designed to drip ETH to new users up to a predefined daily cap.
However, when a returning user makes a claim, the RaiseBoxFaucet::claimFaucetTokens function resets RaiseBoxFaucet::dailyDrips. This unintentionally allows unlimited ETH drips for new users within the same day, effectively bypassing the daily limit.
Likelihood:
The issue occurs each time a returning user successfully claims new Faucet tokens.
Impact
All ETH held by the faucet can be drained in a single day. Malicious actors can exploit this by repeatedly triggering the reset with returning accounts and then using multiple new accounts to claim ETH beyond the intended cap.
Add the following test to RaiseBoxFaucet.t.sol to reproduce the issue:
Remove the unnecessary reset of RaiseBoxFaucet::dailyDrips from the RaiseBoxFaucet::claimFaucetTokens function to ensure that the daily cap is enforced consistently for all users.
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.