The contract allows the festivalContract
to call the mint()
function without any restriction on how many times it can mint or how much it can mint per call.
This means the authorized festivalContract
can:
Call mint(to, 1)
in a loop (e.g., 10,000+ times).
Inflate the total supply arbitrarily.
Potentially exhaust block gas limits, causing DoS for other operations depending on token transfers, especially in multi-token logic.
If the festivalContract
is misconfigured, compromised, or intentionally misused, it can mint tokens in a loop, leading to:
💸 Gas exhaustion in other functions (e.g., transfer
, totalSupply
, or anything iterating over holders).
Likelihood:
Impact:
Repeated small mints (e.g., 1 token per call) consume excessive gas, especially if automated in a loop. This can prevent other important transactions from fitting into the block.
Thousands of small Transfer
events (each mint()
emits one) flood off-chain systems, causing delays or crashes in analytics tools or frontend dashboards.
This test check that 10000 time this function can be call by the user and this cost more gas then expection.
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.