OperatorResolver.areAddressesImported doesn't check lengths of argument arrays #210
Labels
0 (Non-critical)
Code style, clarity, syntax, versioning, off-chain monitoring (events etc), exclude gas optimisation
bug
Something isn't working
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
hyh
Vulnerability details
Impact
Array bounds check violation will happen if the function be called with arrays of different lengths.
Proof of Concept
Loop is performed by names array, while both arrays are accessed:
https://github.com/code-423n4/2021-11-nested/blob/main/contracts/OperatorResolver.sol#L27
Recommended Mitigation Steps
Add a check:
The text was updated successfully, but these errors were encountered: