#46592 [SC-High] The return value of redeemFromAgent/redeemFromAgentInCollateral in the selfCloseExitTo is not checked
Description
Brief/Intro
Vulnerability Details
// redeem f-assets if necessary
if (requiredFAssets > 0) {
if (requiredFAssets < assetManager.lotSize() || _redeemToCollateral) {
assetManager.redeemFromAgentInCollateral(
agentVault, _recipient, requiredFAssets);
} else {
// automatically pass `msg.value` to `redeemFromAgent` for the executor fee
assetManager.redeemFromAgent{ value: msg.value }( //@audit the return value is not checked.
agentVault, _recipient, requiredFAssets, _redeemerUnderlyingAddress, _executor); <@
}
}Impact Details
References
Proof of Concept
Proof of Concept
Previous#46587 [SC-Low] Overpayment loss in `transferToCoreVault` due to incorrect refund conditionNext#46643 [SC-Low] `destroyAgent` in `AgentsCreateDestroy` is prone to DOS
Was this helpful?