_handleTokenOperations
function in the contract does not verify whether the collateral token supply to Aave was successful before minting wTokens. If the supply operation fails ( paused Aave markets, or unexpected contract behavior), the function still proceeds to mint wTokens, creating a scenario where wTokens exist without actual collateral backing them. This can be exploited for financial gain and can lead to system insolvency.There is no check to confirm if supply()
was successful before minting wTokens.
If the supply operation fails silently, wTokens can be minted without actual collateral backing them, leading to potential double-spending or system insolvency.
poses a serious financial risk as it allows attackers to mint unbacked wTokens by exploiting failed Aave supply operations.
If IAave(_aaveV3Pool).supply()
returns a success indicator, add a check:
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.