_ccipReceive
function in WrappedTokenBridge.sol
contract is missing check for whitelisted sender to receive message from, therefore tokens can be send to non-supported destination.
https://github.com/Cyfrin/2023-12-stake-link/blob/549b2b8c4a5b841686fceb9c311dca9ac58225df/contracts/core/ccip/WrappedTokenBridge.sol#L234
Tokens can be lost.
Manual review
Consider to use a mapping to check that sender is whitelisted , or use _verifyCCIPSender
function as in SDLPoolCCIPController.sol
contract.
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.