An issue has been identified in the AaveDIVAWrapper::removeLiquidity function  of the AaveDIVAWrapper Contract when the recipient of the collateral is blacklisted by the issuer of the collateral token (e.g., USDC). This results in a transaction failure during the withdrawal process from Aave, preventing the liquidity provider (LP) from accessing their collateral.
When an LP attempts to remove liquidity, the process involves withdrawing the underlying collateral from Aave and transferring it to the specified recipient. If this recipient is blacklisted by the collateral token issuer, the transaction will revert .
The function AaveDIVAWrapperCore::_removeLiquidity call AaveDIVAWrapperCore::_redeemWTokenPrivate    to handle the withdrawal of collateral from Aave:
A  LP can set recipent to a blacklisted/prohibited address for the underlying token, such as 0x0E6b8E34dC115a2848F585851AF23D99D09b8463, which is blacklisted in polygon USDC contract.  the withdraw operation on line 470 in AaveDIVAWrappeeCore::_redeemWTokenPrivate may revert, as is the case with USDC:
https://github.com/Cyfrin/2025-01-diva/blob/1b6543768c341c2334cdff87b6dd627ee2f62c89/contracts/src/AaveDIVAWrapperCore.sol#L470
In AaveDIVAWrappeeCore::_removeLiquidity
In AaveDIVAWrappeeCore::_redeemWTokenPrivate
The bug prevents liquidity providers from withdrawing their collateral if the recipient is blacklisted, effectively locking their funds and hindering liquidity management.
In test/AaveDIVAWrapper.T.sol :
Run This command :
TEST PASS:
Manuial Review
Foundry
Implement pre-transfer checks to verify whether the recipient is blacklisted before initiating the withdrawal process. This can prevent the transaction from reverting due to blacklist issues.
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.