An attacker could deploy a malicious contract and perform unauthorized transfers of LINK tokens on behalf of the SDLPoolCCIPControllerPrimary
contract, leading to potential financial loss and disruptions in the intended functionality.
The linkToken
contract is approved for an unlimited amount by the SDLPoolCCIPControllerPrimary
contract. This could be exploited by attackers to perform unauthorized transfers on behalf of the SDLPoolCCIPControllerPrimary
contract.
Deploy a malicious contract with the provided code.
Utilize the unlimited approval to perform unauthorized transfers.
Manual Code Review
Limit the approval amount for linkToken
to the necessary value. Only approve the amount required for the intended operations in the SDLPoolCCIPControllerPrimary
contract.
Manual Code Review
Modification ensures that only the required amount of linkToken
is approved, reducing the attack surface and potential impact.
Limit the approval amount for linkToken
to the necessary value. Update the code as follows:
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.