Skip to content
Access control Audit finding Intermediate

Manta ACLManager EOA as RISK_ADMIN

An externally owned account holds the RISK_ADMIN role in the protocol's ACLManager. If that account's private key were leaked, an attacker could change risk parameters such as supply and borrow caps, which the report says could lead to protocol insolvency.

mhmd_alfa Follow

Originally disclosed on Immunefi

Informational View original
  • Disclosed after under an hour

29331 - [SC - Insight] Manta ACLManager EOA as RISK_ADMIN

Submitted on Mar 14th 2024 at 03:49:33 UTC by @mhmd_alfa for Boost | ZeroLend

Report ID: #29331

Report type: Smart Contract

Report severity: Insight

Target: https://explorer.zksync.io/address/0x9A60cce3da06d246b492931d2943A8F574e67389

Impacts:

  • Protocol insolvency

Description

Brief/Intro

An EOA 0x0f6e98a756a40dd050dc78959f45559f98d3289d has RISK_ADMIN role. Leaked private key could lead to a malicious actor tampering with the protocol parameters, such as supplyCap and borrowCap, which in turn coul ultimately lead to the whole protocol insolvency.

References

https://docs.aave.com/developers/core-contracts/aclmanager RISK_ADMIN row

Proof of Concept

  1. go to https://pacific-explorer.manta.network/address/0xb2178109a414c3a869e5104283fcf1a18923d0b8?tab=read\\_contract
  2. get EMERGENCY_ADMIN_ROLE = 0x8aa855a911518ecfbe5bc3088c8f3dda7badf130faaf8ace33fdc33828e18167 inspect hasRole(0x8aa855a911518ecfbe5bc3088c8f3dda7badf130faaf8ace33fdc33828e18167,0x0f6e98a756a40dd050dc78959f45559f98d3289d) --> true

The original report as published on Immunefi, by mhmd_alfa. 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

Likely a privileged risk-management role was assigned to a single externally owned account instead of a contract or multi-signature with stronger key management.

Impact

If the private key were leaked, an attacker could tamper with parameters such as supply and borrow caps, which could ultimately lead to protocol insolvency.

What the attacker needed

Private key of the EOA is leaked

How it was found

  1. Open the Manta explorer page for the ACLManager contract and its read functions.
  2. Read the role identifier for the emergency admin role.
  3. Call hasRole with that role identifier and the 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 often has roles that decide who may change important settings. Here one of those roles, RISK_ADMIN, is held by a normal wallet (an externally owned account) rather than a contract with extra safeguards. If someone got that wallet's private key, they could change the protocol's risk settings.

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 by mhmd_alfa

View all

3 more disclosed reports, best first.

More from ZeroLend

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.