Skip to content
Access control Audit finding Beginner

Pending admin cannot accept ownership transfer in alchemistcurator

The acceptAdminOwnership function is restricted to the current admin, so the pending admin cannot call it to complete an ownership transfer. This makes admin ownership transfer impossible, potentially locking administrative privileges to the original admin.

Ekene Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

58423 sc low pending admin cannot accept ownership transfer in alchemistcurator

Submitted on Nov 2nd 2025 at 08:39:40 UTC by @Ekene for Audit Comp | Alchemix V3

Description

Summary

When the current admin calls transferAdminOwnerShip() to set a new pendingAdmin, the transfer cannot be completed because the acceptAdminOwnership() function is restricted by the onlyAdmin modifier. Since the pendingAdmin is not yet the admin, they cannot successfully call this function, effectively breaking the intended admin transfer flow.

Impact

Admin ownership transfer becomes impossible. This could permanently lock administrative privileges to the original admin and prevent future upgrades or configuration changes.

Root Cause

The acceptAdminOwnership() function uses the onlyAdmin modifier, preventing the pendingAdmin from executing it.

Recommended Mitigation

Remove the onlyAdmin restriction and explicitly allow the pending admin to accept ownership:

Solidity
function acceptAdminOwnership() external {
    require(msg.sender == pendingAdmin, "Not pending admin");
    admin = pendingAdmin;
    pendingAdmin = address(0);
    emit AdminChanged(admin);
}

Proof of Concept

Proof of Concept

Solidity
function testAdminTransferAndAcceptance() external {
    // Initiate transfer by admin
    vm.startPrank(admin);
    mytCuratorProxy.transferAdminOwnerShip(pendingAdmin);
    vm.stopPrank();

    // Attempt acceptance by pending admin
    vm.startPrank(pendingAdmin);
    vm.expectRevert(abi.encode("PD"));
    mytCuratorProxy.acceptAdminOwnership(); // reverts
    vm.stopPrank();
}

The original report as published on Immunefi, by Ekene. 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, which prevents the pending admin from calling it.

Impact

Admin ownership transfer becomes impossible, which could permanently lock administrative privileges to the original admin and prevent future upgrades or configuration changes.

What the attacker needed

Current admin initiates transfer; pending admin attempts to accept

The fix

Remove the onlyAdmin restriction and instead require that the caller is the pending admin before transferring ownership.

How it was found

  1. The current admin calls transferAdminOwnerShip to set a pending admin.
  2. The pending admin calls acceptAdminOwnership.
  3. The call reverts because the function is restricted to the current admin.

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.

In smart contracts, an admin is a special user who can change settings. The contract has a two-step process to hand over admin rights: the current admin nominates a new admin, and then that new admin must accept. Here, the accept step is wrongly limited to the current admin, so the nominated person can never accept, and the handover never finishes.

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