Logical bug in AlchemistCurator::acceptAdminOwnership, asking to current admin to accept ownership.
The acceptAdminOwnership function in AlchemistCurator can only be called by the current admin, so the admin transfers and accepts ownership in one go rather than the pending admin confirming the handover. This makes the two-step ownership transfer meaningless and lets the admin push ownership to an arbitrary address without that address agreeing.
- Disclosed after under an hour
57479 sc low logical bug in alchemistcurator acceptadminownership asking to current admin to accept ownership
Submitted on Oct 26th 2025 at 15:04:50 UTC by @Eagle_Eye for Audit Comp | Alchemix V3
- Report ID: #57479
- Report Type: Smart Contract
- Report severity: Low
- Target: https://github.com/alchemix-finance/v3-poc/blob/immunefi\\_audit/src/AlchemistCurator.sol
- Impacts:
- Protocol insolvency
Description
Brief/Intro
There is a logical issue in AlchemistCurator::acceptAdminOwnership, where only admin can call the function but pending admin should as in AlchemistStrategyClassifier::acceptOwnership
Vulnerability Details
There are two state variables, admin and pendingAdmin. When admin calls AlchemistCurator::transferAdminOwnerShip, the pendingAdmin is set. And then only admin can call acceptOwnership, but in actual, pendingAdmin should call this function. Means admin transfers and accepts ownership itself, and even if it is intentional , second function is useless, can be done in the first function alone.
Impact Details
- Admin can transfer and accept ownership by itself, by transferring ownership to malicious user.
References
Proof of Concept
Proof of Concept
// SPDX-License-Identifier: MIT pragma solidity 0.8.28;
import { Test } from "forge-std/Test.sol"; import { AlchemistCurator } from "./AlchemistCurator.sol";
contract TestAlchemistCurator is Test {
address admin = address(0x123);
address operator = address(0x234);
address pendingAdmin = address(0x456);
AlchemistCurator alchemistCurator;
function setUp() public {
alchemistCurator = new AlchemistCurator(admin, operator);
}
function test_AdminTransferAndAcceptOwnership() public {
vm.startPrank(admin);
alchemistCurator.transferAdminOwnerShip(pendingAdmin);
alchemistCurator.acceptAdminOwnership();
vm.stopPrank();
}
}
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 access check on acceptAdminOwnership requires the caller to be the current admin instead of the pending admin, so the confirmation step never involves the nominee.
Impact
The admin could hand ownership to a malicious address without that address accepting, which the reporter says could lead to protocol insolvency.
What the attacker needed
Caller is the current admin
The fix
The accept function should require the caller to be the pending admin, matching the pattern used in AlchemistStrategyClassifier.
How it was found
- As the current admin, call transferAdminOwnerShip with a new address as pending admin.
- Still as the current admin, call acceptAdminOwnership to complete the transfer.
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 contract often has an owner who controls it. A safe pattern is two steps: the current owner nominates a new owner, and the new owner must then accept, so ownership cannot be pushed onto someone by mistake. Here the check is on the wrong person, so the current owner can complete both steps alone.
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.