Every collection whitelisted will add to _collections array. If the _collections array is too huge, _whiteListCollection will fail because the while loop that iterates over the _collections array will exceed block gas limit.
This function is called if the NFT is native L1 token, therefore a new collection L1 has to be deployed which will cause _whiteListCollection to be called.
So if there are too many collections whitelisted it can result in loss of native L2 NFT when withdrawing from L1 bridge as it won't be possible to whitelist the collection (due to exceed block gas limit)
Likelyhood: High, once the whitelist option is disabled, collections will grow. Impact: High, withdraw won’t be possible because of Out-Of-Gas.
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.