The setRESDLTokenBridge function in the SDLPoolCCIPController contract lacks input validation to ensure that the provided address is a valid contract address. This absence of validation can result in unexpected behavior if an invalid or zero address is set as the bridge address.
In the contract, the setRESDLTokenBridge function simply assigns the provided address to the reSDLTokenBridge variable without checking if the address is valid or non-zero.
Implement input validation in the setRESDLTokenBridge function to ensure that the provided address is a valid and non-zero contract address.
A require statement to check that the provided address is not zero and is a valid contract address, the contract ensures that only legitimate and functional bridge addresses can be set. This helps prevent unexpected behavior caused by setting an invalid or zero address.
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.