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 acceptAdminOwnership function in AlchemistCurator incorrectly restricts the caller to the current admin instead of the pendingAdmin, so the intended two-step ownership transfer cannot be completed by the new admin. This can prevent the DAO from rotating or recovering ownership through the intended flow, though a direct setAdmin function still exists.
Originally disclosed on Immunefi
- Disclosed after under an hour
56836 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 21st 2025 at 04:55:24 UTC by @Ratt13snak3 for Audit Comp | Alchemix V3
- Report ID: #56836
- Report Type: Smart Contract
- Report severity: Low
- Target: https://github.com/alchemix-finance/v3-poc/blob/immunefi\\_audit/src/AlchemistCurator.sol
- Impacts:
- Protocol governance lockout; DAO unable to assume or transfer ownership of AlchemistCurator contracts.
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.
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
pendingAdmincannot 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()oracceptAdminOwnership()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
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();
}
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
The intended two-step ownership transfer cannot be completed, which could cause governance confusion or lockout, although a direct setAdmin function still allows ownership changes.
What the attacker needed
The contract is deployed with an admin; The admin initiates a transfer
The fix
The acceptAdminOwnership function should allow the pendingAdmin to call it, for example by removing the onlyAdmin modifier and checking that the caller is the pendingAdmin.
How it was found
- The current admin calls transferAdminOwnerShip with a new admin address.
- The new admin calls acceptAdminOwnership.
- The call reverts because only the current admin is allowed.
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 smart contract has an owner (admin) who can do special things. The contract tries to let the owner hand over control to a new owner in two steps: first the current owner nominates someone, then that someone accepts. But the accept step is wrongly limited to the current owner, so the nominated person can never accept. This means the handover never finishes, which could leave the contract stuck under the old owner.
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.