58007 sc low pendingadmin cannot call acceptadminownership to accept admin role
Description
Brief/Intro
Vulnerability Details
File: AlchemistCurator.sol
function transferAdminOwnerShip(address _newAdmin) external onlyAdmin {
pendingAdmin = _newAdmin;//@audit old admin transfer to pendingAdmin
}
function acceptAdminOwnership() external onlyAdmin {//@audit this is supposed to be called by onlyPendingAdmin(new admin) not onlyAdmin(old admin)
admin = pendingAdmin;
pendingAdmin = address(0);
emit AdminChanged(admin);
}
Impact Details
Recommendation
Proof of Concept
Proof of Concept
Previous58329 sc low incorrect balance measurement in morphoyearnogweth deallocate leads to temporary freezing of funds via spurious loss eventsNext58395 sc high repayment fee exit leaves mytsharesdeposited inflated hiding protocol insolvency
Was this helpful?