In bridge.cairo
, get_white_listed_collections
may prematurely break its loop when encountering a disabled collection, potentially omitting valid whitelisted collections that come after it in the list.
In get_white_listed_collections
:
The loop breaks as soon as it encounters a disabled collection. However, _white_list_collection
function suggests that disabled collections might exist in the middle of the list:
If a disabled collection exists in the middle of the list, all subsequent whitelisted collections will be omitted from the result, leading to inconsistent whitelist enforcement across different parts of the system.
Proof of Concept
Consider a whitelist state:
A (enabled) -> B (disabled) -> C (enabled) -> D (enabled)
get_white_listed_collections
would only return [A], omitting [C] and [D].
Manual review
Modify get_white_listed_collections
function to continue iterating even when it encounters a disabled collection:
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.