Incorrect pointer update in _white_list_collection
function leads to out of gas error when collection is disabled
In _white_list_collection
function, there is a mistake in the loop which handles disabling a collection in the whitelist. The loop doesn't update the prev
pointer at end of the loop. Due to this if the function tries to disable any collection after 2nd position, the transaction will fail due to out of gas error.
https://github.com/ArkProjectNFTs/bridge/blob/main/apps/blockchain/starknet/src/bridge.cairo#L524
Cannot disable whitelisted collection after 2nd position in linked list
Manual review
Add prev = next
at end of loop
Likelyhood: High, owner can only unwhitelist the 2 first collections. Impact: Medium/High, owner has to empty the list to remove any collection, and replace all the new ones.
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.