abi.encodeWithSignature
and abi.encodeWithSelector
are used to generate calldata for a low-level call, but these methods are error-prone and by an openzeppelin recommendation should be considered unsafe.
It is common to use abi.encodeWithSignature
or abi.encodeWithSelector
to generate calldata for a low-level call, however, the first option is not typo-safe and the second option is not type-safe. As such, both methods are error-prone and should be considered unsafe.
The protocol uses this unsafe abi encoding function in the following contracts.
CommunityVCS
:
OperatorVCS
:
VaultControllerStrategy
:
use of unsafe and error-prone abi encoding functions in the protocol.
Manual Review
Consider replacing all the occurrences of unsafe ABI encodings with abi.encodeCall
which checks whether the supplied values actually match the types expected by the called function and also avoids errors caused by typos.
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.