The configureWhitelist
function is used to enable or disable a whitelist mechanism by setting a whitelist address and a boolean flag (isWhitelistMode
).
However, the function does not correctly handle disabling the whitelist:
When isWhitelistMode
is set to false
, the function does not reset or remove the whitelist address.
This means that once a whitelist is set, it cannot be disabled because the whitelist address remains active.
The function only enforces a valid address when enabling the whitelist but does not clear it when disabling.
Expected behavior: If isWhitelistMode == false
, the whitelist address should be reset to address(0)
.
Current behavior: The whitelist remains stored even after attempting to disable it.
If a whitelist is enabled once, it cannot be disabled
Manual Review
Modify configureWhitelist
to Allow Disabling Whitelist
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.