Skip to content
Access control Audit finding Beginner

Pending admin cannot accept ownership in alchemistcurator

The acceptAdminOwnership function in AlchemistCurator is protected by the onlyAdmin modifier, so the pending admin cannot call it to accept ownership. This breaks the intended ownership transfer process, though no funds are at risk.

liae Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

56893 sc low pending admin cannot accept ownership in alchemistcurator

Submitted on Oct 21st 2025 at 15:15:57 UTC by @liae for Audit Comp | Alchemix V3

Description

Brief/Intro

Pending admin cannot accept ownership in AlchemistCurator due to use of onlyAdmin modifier in acceptAdminOwnership() function.

Vulnerability Details

AlchemistCurator.sol:acceptAdminOwnership() is intended to allow the pendingAdmin to accept ownership, but this is not possible due to the use of the onlyAdmin modifier:

Solidity
function acceptAdminOwnership() external onlyAdmin {
    ...
}

Impact Details

acceptAdminOwnership() function does not work as intended, but there is no risk of fund loss.

References

https://github.com/alchemix-finance/v3-poc/blob/a192ab313c81ba3ab621d9ca1ee000110fbdd1e9/src/AlchemistCurator.sol#L31

Proof of Concept

Proof of Concept

Add this test case to src/test/AlchemistCurator.t.sol:

Solidity
function testAcceptOwnershipFailByPendingAdmin() public {
    address pendingAdmin = address(0x104);
    vm.startPrank(admin);
    mytCuratorProxy.transferAdminOwnerShip(pendingAdmin);
    vm.stopPrank();
    vm.startPrank(pendingAdmin);
    //@audit @note pendingAdmin can not accept ownership
    vm.expectRevert(abi.encode("PD"));
    mytCuratorProxy.acceptAdminOwnership();
    vm.stopPrank();
}

Run it with command:

Shell
forge test --mt testAcceptOwnershipFailByPendingAdmin

The original report as published on Immunefi, by liae. 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 restricts it to the current admin instead of the pending admin.

Impact

The ownership transfer cannot be completed, so the contract fails to deliver the promised admin handover, but there is no risk of fund loss.

What the attacker needed

Current admin initiates ownership transfer; pending admin attempts to accept

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 with error 'PD' because the onlyAdmin modifier blocks it.

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, ownership transfer often works in two steps: the current owner nominates a new admin, and that nominee must accept. Here, the acceptance function was mistakenly restricted to the current admin, so the nominee can never complete the transfer. This means the contract's admin role cannot be handed over as designed.

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.