Skip to content
Access control Audit finding Beginner

Manta ReservesSetupHelper EOA as owner

The ReservesSetupHelper contract is owned by an externally owned account (EOA) rather than a multisig or timelock. If that account's private key were leaked, an attacker could tamper with protocol parameters such as supply and borrow caps, potentially leading to protocol insolvency.

mhmd_alfa Follow

Originally disclosed on Immunefi

Informational View original
  • Disclosed after under an hour

29332 - [SC - Insight] Manta ReservesSetupHelper EOA as owner

Submitted on Mar 14th 2024 at 04:10:00 UTC by @mhmd_alfa for Boost | ZeroLend

Report ID: #29332

Report type: Smart Contract

Report severity: Insight

Target: https://pacific-explorer.manta.network/address/0xb8634e0a320d0f4861062514a63B659E52A87E21

Impacts:

  • Protocol insolvency

Description

Brief/Intro

An EOA 0x0f6e98a756a40dd050dc78959f45559f98d3289d is owner of the ReservesSetupHelper contract. 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.

Proof of Concept

  1. go to https://pacific-explorer.manta.network/address/0xb8634e0a320d0f4861062514a63b659e52a87e21?tab=read\\_contract
  2. inspect _owner = 0x0f6e98a756a40dd050dc78959f45559f98d3289d --> EOA

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

Impact

If the private key were leaked, an attacker could change supply and borrow caps, which could ultimately lead to protocol insolvency.

What the attacker needed

Private key of the owner EOA is leaked

How it was found

  1. Open the contract page on the Manta explorer.
  2. Inspect the read contract tab to see the owner address.
  3. Observe that the owner is an EOA, not a contract.

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 an 'owner' who can change important settings. Here that owner is a regular wallet (an externally owned account, or EOA) controlled by a single private key, not a shared multisig or a time-locked contract. If that key is stolen, the thief could change limits on how much can be supplied or borrowed, which might break 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.

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.