Skip to content
Access control Audit finding Beginner

The owner is a single point of failure and a centralization risk

The report notes that several privileged functions in a smart contract are guarded only by an owner check, so a single externally owned account holding that role would be a centralisation risk and single point of failure. An attacker who obtained that private key, or a holder who lost it, could compromise or lock the contract's administrative actions.

[Tera Bot] Follow

Originally disclosed on Code4rena

Submitted by Tera Bot

Note: this finding was reported via the winning Automated Findings report. It was declared out of scope for the audit, but is being included here for completeness.

Having a single EOA as the only owner of contracts is a large centralization risk and a single point of failure. A single private key may be taken in a hack, or the sole holder of the key may become unable to retrieve the key when necessary. Consider changing to a multi-signature setup, or having a role-based authorization model.

There are 3 instances of this issue:

File: contracts/Tokens/Prime/PrimeLiquidityProvider.sol

118         function initializeTokens(address[] calldata tokens_) external onlyOwner {

177         function setPrimeToken(address prime_) external onlyOwner {

216         function sweepToken(IERC20Upgradeable token_, address to_, uint256 amount_) external onlyOwner {

GitHub: [118, 177, 216]

chechu (Venus) acknowledged and commented:

Regarding [M‑03] The owner is a single point of failure and a centralization risk, the owner won’t be an EOA, but that cannot be specified in the solidity code. The owner of our contracts is always the Normal Timelock contract deployed at 0x939bD8d64c0A9583A7Dcea9933f7b21697ab6396. This contract is used in the Governance process, so after a voting period of 24 hours, and an extra delay of 48 hours if the vote passed, this contract will execute the commands agreed on the Venus Improvement Proposal.

0xDjango (Judge) commented:

Confirming medium severity for centralization risk, though Venus does has safeguards in place to ensure that decentralization is achieved through governance. From a user-perspective, the potentiality of centralization risks must be highlighted.


The original report as published on Code4rena, by [Tera Bot]. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

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 contract relies on a single owner address for privileged functions instead of a multi-signature or role-based authorisation model.

Impact

If the single owner key were compromised or lost, administrative functions could be abused or become unusable; the project says the owner is in practice a governance timelock, which limits the risk.

What the attacker needed

Owner role held by a single key; private key stolen or lost

The fix

The project should use a multi-signature setup or role-based authorisation rather than a single owner; the team says the owner is already a governance timelock 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.

In many smart contracts one special account, called the owner, is allowed to run sensitive functions. If that owner is just one ordinary wallet controlled by one private key, then stealing or losing that key puts the whole contract at risk. The report suggests spreading that power across several keys or using roles instead.

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 from Venus Prime

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.