The initial version of DeployRaiseBoxFaucet.s.sol::DeployRaiseboxContract ensures that the RaiseBoxFaucet.sol::faucetDrip, RaiseBoxFaucet.sol::sepEthDrip and RaiseBoxFaucet.sol::dailySepEthCap values are non-zero. Therefore, when the standard (“happy path”) deployment script is used, this issue does not occur.
However, future Faucet deployments based on this contract may be vulnerable when a different deployment script is used that passes zero values for these parameters.
Likelihood:
The issue arises when an alternative deployment script is used and zero values are passed for the faucetDrip, sepEthDrip, dailySepEthCap parameters.
Impact:
Since the contract owner does not have the ability to modify faucetDrip, sepEthDrip and dailySepEthCap after deployment, these values would remain zero, making the faucet functionality incomplete and blocking claimers from claiming faucet tokens and/or ETH.
Add the following test to RaiseBoxFaucet.t.sol to reproduce the issue:
Add zero-value checks for the parameters in the deployment logic to prevent deployment with invalid values.
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.