The _removeLiquidity
function in the AaveDIVAWrapperCore.sol lacks a critical validation check for the recipient address (_recipient). If _recipient == address(0)
, liquidity tokens may be permanently burned, leading to irreversible fund loss. This issue poses a high-severity risk as it can result in significant financial losses for users and protocol stakeholders.
· Function Affected: _removeLiquidity
· Root Cause: No validation for _recipient
, allowing users to send tokens to address(0)
.
· Impact: If _recipient == address(0)
, the removed liquidity tokens are burned and permanently lost.
Tokens sent to address(0)
are permanently burned and cannot be recovered. Tokens are permanently lost, leading to significant financial damage
Manual
To mitigate this risk, implement the following validation within _removeLiquidity
:
require _recipient != address(0), "Invalid recipient");
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.