58035 sc high killswitch early return in strategy causes vault to adapter asset leakage mis accounting and deallocation dos
Description
Brief/Intro
Vulnerability Details
572:589:lib/vault-v2/src/VaultV2.sol
SafeERC20Lib.safeTransfer(asset, adapter, assets);
(bytes32[] memory ids, int256 change) = IAdapter(adapter).allocate(data, assets, msg.sig, msg.sender);
// ... caps checks using 'change' ...Impact Details
Recommended Remediation
References
Link to Proof of Concept
Proof of Concept
Proof of Concept
Previous58639 sc medium off by one issue in the forcerepay function causes protocol to lose funds in the form of protocol fee Next56442 sc high inflated totallocked because vault yield accrual would skew collateralweight calculation
Was this helpful?