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.
- 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
- go to https://pacific-explorer.manta.network/address/0xb8634e0a320d0f4861062514a63b659e52a87e21?tab=read\\_contract
- inspect _owner = 0x0f6e98a756a40dd050dc78959f45559f98d3289d --> EOA
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
- Open the contract page on the Manta explorer.
- Inspect the read contract tab to see the owner address.
- 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.