Manta ACLManager EOA as EMERGENCY_ADMIN
An externally owned account holds the EMERGENCY_ADMIN role on the Manta ACLManager contract. If that account's private key were leaked, an attacker could use the emergency powers to grief users or halt protocol assets.
- Disclosed after under an hour
29329 - [SC - Insight] Manta ACLManager EOA as EMERGENCY_ADMIN
Submitted on Mar 14th 2024 at 03:33:09 UTC by @mhmd_alfa for Boost | ZeroLend
Report ID: #29329
Report type: Smart Contract
Report severity: Insight
Target: https://pacific-explorer.manta.network/address/0xb2178109A414C3a869E5104283Fcf1a18923D0B8
Impacts:
- Temporary freezing of funds for at least 1 hour
- Griefing (e.g. no profit motive for an attacker, but damage to the users or the protocol)
Description
Brief/Intro
An EOA 0x0f6e98a756a40dd050dc78959f45559f98d3289d has EMERGENCY_ADMIN role. Leaked private key could lead to griefing and/or malicious halt of the protocol assets.
Proof of Concept
- go to https://pacific-explorer.manta.network/address/0xb2178109a414c3a869e5104283fcf1a18923d0b8?tab=read\\_contract
- get EMERGENCY_ADMIN_ROLE =
0x5c91514091af31f62f596a314af7d5be40146b2f2355969392f055e12e0982fb - inspect
hasRole(0x5c91514091af31f62f596a314af7d5be40146b2f2355969392f055e12e0982fb,0x0f6e98a756a40dd050dc78959f45559f98d3289d)--> true
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 emergency admin role was assigned to a single externally owned account instead of a multi-signature or timelocked contract, so one private key controls emergency powers.
Impact
If the private key were leaked, an attacker could grief users or temporarily freeze funds for at least an hour, though no exploit is demonstrated in the report.
What the attacker needed
Private key of the admin EOA leaks
The fix
The emergency admin role should be held by a multi-signature wallet or timelocked contract rather than a single externally owned account.
How it was found
- Open the Manta explorer page for the ACLManager contract and its read contract tab.
- Read the EMERGENCY_ADMIN_ROLE identifier from the contract.
- Call hasRole with that role and the suspected account address, which returns true.
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 can give special powers to certain addresses, called roles. Here one of those powerful addresses is a plain wallet controlled by a single private key rather than a safer multi-signature setup. If that key ever leaked, whoever held it could use the emergency powers to disrupt the protocol.
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.