Lack of check the index before passing it to the EnumerableSet::at
method.
When we use the EnumerableSet::at
method to retrieve an element at a certain position in the array given an index, we must respect this requirement: index must be strictly less than {length}.
as we can see on its Github repo: https://github.com/OpenZeppelin/openzeppelin-contracts/blob/49c0e4370d0cc50ea6090709e3835a3091e33ee2/contracts/utils/structs/EnumerableSet.sol#L139C11-L139C54
In the CurrencyManager::viewWhitelistedCurrencies
function we use this EnumerableSet::at
method but the above requirement has not been implemented:
Unexpected behaviour and out-of-Bounds Access.
Manual review.
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.