Skip to content
Business logic Audit finding Intermediate

AlchemistCurator contract doesn't allow to remove strategies from the MYT morpho V2 vault.

The AlchemistCurator contract lacks a function to submit a timelocked request for removing a strategy from the MYT vault, so calling removeStrategy directly reverts because the vault's timelock was never triggered. An operator cannot remove a strategy through the curator, breaking the promised add/remove functionality.

Tadev Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

56832 sc low alchemistcurator contract doesn t allow to remove strategies from the myt morpho v2 vault

Submitted on Oct 21st 2025 at 04:25:42 UTC by @Tadev for Audit Comp | Alchemix V3

Description

Brief/Intro

AlchemistCurator contract is designed to allow for updating MYT vault caps and add/remove strategies to the MYT vault.

Adding strategies to the MYT vault is straightforward:

  • an operator calls submitSetStrategy, specifying the adapter address and the vault address, which allows to submit data containing the call request to the vault and trigger the timelock period
  • Operator waits for the timelock period of the vault to pass before calling setStrategy which effectively adds a new strategy to the vault

The problem arises because the AlchemistCurator contract doesn't allow the operator to submit data to the vault for strategy removal. This is problematic because removeAdapter uses a timelock just like addAdapter. Therefore, there is no way to remove a strategy form the MYT vault with the current implementation.

Vulnerability Details

AlchemistCurator contract implements the following removeStrategy function:

    function removeStrategy(address adapter, address myt) external onlyOperator {
        require(adapter != address(0), "INVALID_ADDRESS");
        require(myt != address(0), "INVALID_ADDRESS");
        _setStrategy(adapter, myt, true); // remove
    }

This function calls the internal _setStrategy function:

    function _setStrategy(address adapter, address myt, bool remove) internal {
        // @audit why not only in setStrategy?
        adapterToMYT[adapter] = myt;

        IVaultV2 vault = _vault(adapter);
        if (remove) {
            vault.removeAdapter(adapter);
        } else {
            vault.addAdapter(adapter);
        }
        emit StrategySet(adapter, myt);
    }

_setStrategy will call vault.removeAdapter(adapter), but this call will revert given that no data has previously been submitted in order to trigger the timelock.

Impact Details

The impact of this issue can be considered as low as it doesn't affect user funds and only affects the protocol functionalities.

Proof of Concept

Proof of Concept

Please copy paste the following test in AlchemistCurator.t.sol file:

    function testRemoveStrategy() public {
        vm.startPrank(operator);

        // submit the new strategy adapter to add to the vault
        mytCuratorProxy.submitSetStrategy(address(mytStrategy), address(vault));
        _vaultFastForward(abi.encodeCall(IVaultV2.addAdapter, address(mytStrategy)));
        // effectively add a new adapter to the vault after timelock period
        mytCuratorProxy.setStrategy(address(mytStrategy), address(vault));

        // failure on attempt to remove the previously added strategy because of timelock
        // AlchemistCurator contract should implement a `submitRemoveStrategy` function
        mytCuratorProxy.removeStrategy(address(mytStrategy), address(vault));
        vm.stopPrank();
    }

This test highlights the missing logic in AlchemistCurator contract, which is not able to submit data in order to call the removeAdapter function of the MYT vault.

A fix for this bug would be to add a submitRemoveStrategy function:

    function submitRemoveStrategy(address adapter, address myt) external onlyOperator {
        require(adapter != address(0), "INVALID_ADDRESS");
        require(myt != address(0), "INVALID_ADDRESS");
        _submitRemoveStrategy(adapter, myt);
    }

    function _submitRemoveStrategy(address adapter, address myt) internal {
        IVaultV2 vault = IVaultV2(myt);
        bytes memory data = abi.encodeCall(IVaultV2.removeAdapter, adapter);
        vault.submit(data);
        emit SubmitRemoveStrategy(adapter, myt);
    }

The original report as published on Immunefi, by Tadev. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely the AlchemistCurator contract implements removeStrategy without a corresponding submitRemoveStrategy function to queue the timelocked removeAdapter call, so the vault rejects the direct call.

Impact

The protocol cannot remove strategies from the MYT vault through the curator, affecting functionality but not user funds.

What the attacker needed

Operator role

The fix

The contract should be fixed by adding a submitRemoveStrategy function that submits the removeAdapter call to the vault to trigger the timelock.

How it was found

  1. As operator, submit a new strategy adapter to add to the vault.
  2. Fast-forward the timelock for the addAdapter call.
  3. Call setStrategy to add the adapter after the timelock.
  4. Attempt to call removeStrategy on the added adapter, which reverts due to the missing timelock submission.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

A vault holds strategies (ways to invest money), and changing them requires a waiting period called a timelock. The curator contract can start that waiting period when adding a strategy, but it has no way to start it when removing one, so removal always fails. This means the operator cannot remove a strategy even though the contract is supposed to allow it.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by Tadev

View all

9 more disclosed reports, best first.

More from Alchemix V3

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.