Every collection whitelisted will add to white_listed_list linked list. If the linked list gets too large the gas required for the loop will be greater than the Starknet block gas limit (5_000_000)
This function is called if the NFT is native L1 token, therefore a new collection L1 has to be deployed which will cause _white_list_collection to be called.
So if there are too many collections whitelisted it can result in loss of native L1 NFT when withdrawing from L2 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.
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.