The claimYield
function miscalculates available yield, allowing attackers to drain funds.
The contract tracks yield as aToken.balanceOf(address(this)) - totalWTokenSupply
. However, if aToken
balances increase due to Aave interest before totalWTokenSupply
is updated (e.g., via a flash loan), the yield calculation becomes inflated.
Malicious users could exploit timing mismatches to steal unclaimed yield.
Manual review of AaveDIVAWrapperCore.sol
yield logic.
Track yield via a cumulative yieldPerShare
variable, similar to staking vaults.
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.