Skip to content
Access control Audit finding Beginner

Ownership transfer failure in alchemistcurator https github com alchemix finance v3 poc blob immunefi audit src alchemistcurator sol prevents future dao governance or recovery

The two-step ownership transfer in AlchemistCurator is broken because the accept function is restricted to the current admin rather than the pending admin. A new admin therefore cannot accept the role through the intended flow, which could stall governance rotation or recovery.

Ratt13snak3 Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

57090 sc low ownership transfer failure in alchemistcurator https github com alchemix finance v3 poc blob immunefi audit src alchemistcurator sol prevents future dao governance or recovery

Submitted on Oct 23rd 2025 at 11:45:54 UTC by @Ratt13snak3 for Audit Comp | Alchemix V3

Description

Brief / Intro

The AlchemistCurator contract defines a two-step ownership transfer mechanism (transferAdminOwnerShip and acceptAdminOwnership), but the latter function incorrectly restricts access to the current admin instead of the pendingAdmin. Although the underlying PermissionedProxy base contract allows direct admin reassignment via setAdmin(), this inconsistency introduces a broken transfer path. If the DAO or multisig relies on the two-step process for ownership transfer, ownership transfer will silently fail, potentially leading to governance confusion or lockout.


Vulnerability Details

In AlchemistCurator, ownership transfer is handled through transferAdminOwnerShip() and acceptAdminOwnership(). However, the acceptAdminOwnership() function incorrectly restricts execution to the current admin instead of allowing the pendingAdmin to call it.

Solidity
function acceptAdminOwnership() external onlyAdmin {
    admin = pendingAdmin;
    pendingAdmin = address(0);
    emit AdminChanged(admin);
}

This means only the existing admin can call acceptAdminOwnership(), not the pendingAdmin who is meant to assume ownership. As a result, a new admin cannot be set unless acceptAdminOwnership() is called by the current admin, which breaks the intended flow. As a result:

  • Ownership can be set correctly at deployment.
  • But any later ownership transfer attempt will fail, since the pendingAdmin cannot accept the role.
  • Following the intended flow, the contract remains permanently locked under the current admin, blocking any DAO or governance role rotation. unless setAdmin() or acceptAdminOwnership() is called by the admin.

Because AlchemistCurator is a permissioned proxy controlling privileged actions (like managing operators or Permissioned Calls), losing the ability to change the admin can freeze critical system functions.


Impact Details

Severity: Medium

  • Governance control confusion or lockout
    Although ownership can still technically be changed via setAdmin(), the inconsistency between mechanisms can lead to misconfigured or irrecoverable governance state in practice.

References

Proof of Concept

Proof of Concept

insert the test function below into AlchemistCurator.t.sol

Solidity
function testAcceptAdminOwnershipAlwaysReverts() public {
    // admin tries to transfer ownership to a new admin after deployment
    vm.prank(admin);
    mytCuratorProxy.transferAdminOwnerShip(address(0x5555555555555555555555555555555555555555));
    // the new admin tries to accept admin ownership but fails
    vm.prank(address(0x5555555555555555555555555555555555555555));
    vm.expectRevert(abi.encode("PD"));
    mytCuratorProxy.acceptAdminOwnership();
}

then run:

Bash
forge test --mt testAcceptAdminOwnershipAlwaysReverts

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

The acceptAdminOwnership function uses the onlyAdmin modifier instead of allowing the pendingAdmin to call it.

Impact

Following the intended two-step flow, ownership transfer silently fails and the contract stays under the current admin, which could cause governance confusion or lockout, although the direct setAdmin path still exists.

What the attacker needed

Current admin initiates transfer; contract deployed with admin set

The fix

The accept function should be callable by the pendingAdmin rather than the current admin, so the two-step transfer completes as intended.

How it was found

  1. The current admin calls transferAdminOwnerShip to nominate a new admin.
  2. The nominated new admin calls acceptAdminOwnership.
  3. The call reverts because only the current admin is permitted.

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.

Some contracts let an owner hand over control in two steps: the current owner nominates a successor, and the successor then accepts. Here the accept step only lets the current owner call it, so the nominated person can never take over. The contract still has a separate direct way to change the owner, but anyone following the documented two-step process gets stuck.

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.