Skip to content
Access control Audit finding Intermediate

Operator Has No Allocation Restrictions in [AlchemistAllocator](<https://github.com/alchemix-finance/v3-poc/blob/a192ab313c81ba3ab621d9ca1ee000110fbdd1e9/src/AlchemistAllocator.sol#>

The AlchemistAllocator contract lets an operator allocate vault funds to a strategy up to the vault's absolute cap without any operator-specific limit. A malicious or compromised operator could therefore move funds aggressively into a single risky strategy, weakening role separation between the DAO and operators.

Ratt13snak3 Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

58190 sc low operator has no allocation restrictions in alchemistallocator https github com alchemix finance v3 poc blob a192ab313c81ba3ab621d9ca1ee000110fbdd1e9 src alchemistallocator sol

Submitted on Oct 31st 2025 at 09:29:29 UTC by @Ratt13snak3 for Audit Comp | Alchemix V3

Description

Brief/Intro

The AlchemistAllocator contract is designed to allocate and deallocate funds to and from MYT strategies. However, the operator role currently lacks internal restrictions on allocation amounts.

This means that an operator can perform allocate vaults funds to a single risky strategy, up to the vault's configured absolute and relative caps.
This introduces a missing authorization control vulnerability: if the DAO intends to limit operator allocation amounts per adapter or strategy, such restrictions are not applied.
Although the vault's internal caps still prevent total over-allocation, the allocator provides no intermediate restriction, effectively giving the operator the same privileges as the DAO for allocation actions.

Impact

An operator can allocate any amount up to the vault's absolute cap for a given strategy, without any internal restriction or DAO validation. This weakens role separation and exposes the protocol to operational or governance risk. A malicious or compromised operator could reallocate vault funds aggressively up to vault limits.

This risk is heightened if future deployments of the vault remove or modify internal cap checks, as the allocator does not have a fallback enforcement layer.

Recommended Mitigation

Enforce an internal operator-specific cap in the AlchemistAllocator contract before forwarding allocations to the vault. This could be achieved by:

  1. Implementing a valid daoTarget limit retrieved from the DAO or classification proxy, and
  2. Adding a pre-allocation check:
Solidity
require(amount <= daoTarget, "Operator allocation exceeds limit");

Alternatively, ensure that the DAO sets both:

  • Vault-level caps and
  • Allocator-level per-role limits (admin vs operator), to maintain a strict separation of control between DAO and operational actors.

References

Proof of Concept

Proof of Concept

insert the forge test below into the test suite AlchemistAllocator.t.sol

Solidity
function testOperatorHasNoAllocationRestrictions() public {
    // Give the vault a balance, deposit 1000 ether to the vault as user1.
    _magicDepositToVault(address(vault), user1, 1000 ether);

    // Confirm vault has funds
    (uint256 totalAssetsBefore,,) = vault.accrueInterestView();
    assertEq(totalAssetsBefore, 1000 ether);

    // Admin sets up absolute cap already in setUp() to 200 ether.
    bytes32 allocationId = mytStrategy.adapterId();
    assertEq(vault.absoluteCap(allocationId), defaultStrategyAbsoluteCap);

    // OPERATOR: allocate an amount equal to the absolute cap (200 ether).
    vm.startPrank(operator);
    allocator.allocate(address(mytStrategy), 200 ether);
    vm.stopPrank();

    // The allocation should have succeeded and the vault's allocation updated.
    assertEq(vault.allocation(allocationId), 200 ether);

    // confirm vaults allocation is at the absolute cap
    assertEq(vault.allocation(allocationId), vault.absoluteCap(allocationId));
}

run the test:

Bash
forge test --mt testOperatorHasNoAllocationRestrictions

Result: The operator was able to allocate 200 ether (the vault's absolute cap) to a strategy

The original report as published on Immunefi, by Ratt13snak3. 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 allocator forwards operator allocation requests to the vault without any operator-specific cap, relying only on the vault's own absolute and relative caps.

Impact

A malicious or compromised operator could reallocate vault funds aggressively up to the vault's caps, though the vault's internal caps still prevent total over-allocation.

What the attacker needed

Operator role on the allocator; vault holds funds; vault caps configured

The fix

The allocator should enforce an operator-specific cap before forwarding allocations to the vault, or the DAO should set both vault-level caps and allocator-level per-role limits.

How it was found

  1. Deposit funds into the vault so it holds a balance.
  2. Confirm the vault's absolute cap for the strategy.
  3. As the operator, allocate an amount equal to the absolute cap to the strategy.
  4. Observe the allocation succeeds and the vault's allocation equals the absolute cap.

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 money and lets a trusted 'operator' move some of it into investment strategies. The vault has an overall ceiling on how much can go into one strategy, but the operator tool itself has no smaller limit for operators. So an operator can push funds right up to that ceiling without the DAO approving each move.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by Ratt13snak3

View all

4 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.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.