In ThunderLoan.sol:70
, the initialize
function does not perform any input validation on the tswapAddress
parameter before passing it to the __Oracle_init
function. This could lead to unintended behavior if an invalid address is passed.
Vulnerable function:
The absence of input validation for the tswapAddress
parameter can lead to several critical issues, including:
Acceptance of invalid addresses that are not pool factory contracts, which can cause the contract's pricing mechanism to fail.
Potential for attacks if a malicious contract is used in place of the expected pool factory, leading to manipulation of price feeds and theft of funds.
Manual Review
Vs Code
Validate that the tswapAddress is not a 0 address and is a contract.
Possible fix:
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.