Description:
The AaveDIVAWrapperCore::_getAccruedYieldPrivate
yield calculation mechanism is vulnerable to manipulation via flash loans.The function computes yield as the difference between the contract's aToken balance and the total supply of wToken. An attacker can exploit this by:
aking a flash loan of the collateral token (e.g., USDT).
Depositing the borrowed funds to mint wToken
and create a contingent pool.
Withdrawing the funds immediately.
This artificially inflates the aToken
balance temporarily, creating "fake" yield that the contract owner can claim.
impact:
Funds Theft: The contract owner can claim yield that does not represent real protocol earnings.
Protocol Integrity Loss: Users may lose trust in the protocol if yield can be artificially manipulated.
Direct Financial Loss: If the owner claims and withdraws the artificial yield, the protocol’s reserves become undercollateralized.
Proof of Concept:
Recomended Mitigation:
Use time-weighted Average Yield
This Yield is averaged over time, making short-term balance spikes irrelevant.
Preserves Functionality: Legitimate yield accrual remains intact while blocking artificial inflation.
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.