No input validation in the addWhitelistedChain() function
The addWhitelistedChain() function in the provided smart contract is responsible for adding a new chain to the list of whitelisted chains. This function takes four parameters: _chainSelector, _destination, _updateExtraArgs, and _rewardsExtraArgs. However, the function does not perform any validation on these inputs.
This lack of input validation could lead to several issues. For instance, a malicious actor could pass an invalid _chainSelector or _destination to exploit the function. Similarly, if a null or empty byte array is passed to _updateExtraArgs or _rewardsExtraArgs, it could lead to unexpected behavior or vulnerabilities.
Add checks to validate the inputs to the addWhitelistedChain() function. This involves checking that _chainSelector is not zero, _destination is not the zero address, and _updateExtraArgs and _rewardsExtraArgs are not null or empty.
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.