57941 sc high incorrect handling of deallocate return val causes any interest gains in a strategy to become unclaimable and permanently locked
Description
Brief/Intro
//FROM VaultV2 deallocateInternal()
(bytes32[] memory ids, int256 change) = IAdapter(adapter).deallocate(data, assets, msg.sig, msg.sender);
for (uint256 i; i < ids.length; i++) {
Caps storage _caps = caps[ids[i]];
require(_caps.allocation > 0, ErrorsLib.ZeroAllocation());
_caps.allocation = (int256(_caps.allocation) + change).toUint256();
}Vulnerability Details
Impact Details
References
Proof of Concept
Proof of Concept
Previous57751 sc high there is a problem related to forced liquidation branch and this creates issue thatk cna drains protocol backing Next56806 sc insight broken withdrawal logic in aavev3arbwethstrategy permanently locks user funds
Was this helpful?