The mintSnowman() function lacks an upper bound check on the amount parameter used in the for loop. While the Snow token economic constraints prevent practical exploitation, best practices recommend validating loop bounds.
Likelihood:
Low - The economic model (minimum 1 ETH per wei of Snow) makes it infeasible to accumulate enough tokens to cause gas issues.
Impact:
Low - An exploit of this kind will cause a transaction revert reaching the block gas limit, but it is highly unlikely.
The test successfully demonstrates that while the economic constraints prevent normal users from exploiting this in the current protocol design (due to the Snow token economics we discussed), the technical vulnerability is real - the function lacks upper bound validation and can cause gas exhaustion with sufficiently large amount parameters.
Add an input validation to the amount parameter of mintSnowman+
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.