57849 sc high funds gets stuck even when killswitch is enabled

Submitted on Oct 29th 2025 at 08:03:41 UTC by @shadowHunter for Audit Comp | Alchemix V3arrow-up-right

  • Report ID: #57849

  • Report Type: Smart Contract

  • Report severity: High

  • Target: https://github.com/alchemix-finance/v3-poc/blob/immunefi_audit/src/MYTStrategy.sol

  • Impacts:

    • Temporary freezing of funds for at least 1 hour

Description

Brief/Intro

Even if killSwitch is enabled by Owner, funds gets transferred from Vault to Adaptor in case of allocation. These funds remain stuck with no way to deallocate until killSwitch is turned off

Vulnerability Details

  • If killSwitch is true on MYTStrategy and allocation is done then MYTStrategy correctly make 0 changes

if (killSwitch) {
            return (ids(), int256(0));
        }
  • But still Morpho vault which ignores if any changes were made to id, will send funds from vault to the MYTStrategy adaptor. This should be unexpected

  • Also now you cannot deallocate this stuck funds until owner turns kill switch off which may not even happen (since adaptor does not approve funds to vault due to early exit)

Impact Details

Funds get stuck in adaptor

Recommendation

Allocator should not call vault if kill switch is enabled

Proof of Concept

Proof of Concept

Place this in MYTStrategy.t.sol test suit

Ouput:

Was this helpful?