Looping through an unbounded length can cause functions to revert of out of gas. As a result, InitBipSeedGauge.sol::init
function will become unusable and in a state of denial of service.
In LibWhitelistedTokens.sol::addWhitelistStatus
:
New tokens can be added to the whitelistStatuses
through the above functions.
In InitBipSeedGauge.sol::init
:
If at some point there are now a large number of whitelisted tokens, iterating over them will become very costly and can result in a gas cost that is over the block gas limit. This will mean that a transaction cannot be executed anymore, leaving InitBipSeedGauge.sol::init
function in a state of DoS.
Manual analysis
Consider setting the maximum number of whitelisted tokens can be added to the array. (Example: 20)
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.