Unbounded iteration in whitelist retrieval may lead to gas limit exhaustion.
The get_white_listed_collections
function iterates through a linked list of whitelisted collections without imposing any limit on the number of iterations.
This unbounded loop could hit gas limits for excessively long lists.
The function may fail due to out-of-gas errors if the whitelist becomes too large.
Manual review
Implement a maximum iteration limit to prevent potential gas limit issues.
Please, do not suppose impacts, think about the real impact of the bug and check the CodeHawks documentation to confirm: https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity A PoC always helps to understand the real impact possible.
Please, do not suppose impacts, think about the real impact of the bug and check the CodeHawks documentation to confirm: https://docs.codehawks.com/hawks-auditors/how-to-determine-a-finding-validity A PoC always helps to understand the real impact possible.
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.