Skip to content
Access control Audit finding Intermediate

Owners have absolute control over protocol

The smart contract gives the owner unchecked power to control executors, withdraw any tokens, upgrade the contract, change parameters instantly, and transfer ownership in one step. An attacker who compromises the owner could drain funds or disrupt the protocol.

throttle Follow

Originally disclosed on Code4rena

Submitted by throttle, also found by cccz, cmichel, danb, defsec, hickuphh3, IllIllI, pedroais, and Ruhum

LiquidityFarming.sol#L174-L192

Owners have full control over the protocol.

Proof of Concept

Owners have full control over:

  • executors who perform token transfers on behalf of the destination chain
  • reclaiming / withdrawing any tokens (including reward tokens) held by farming contract
  • total upgradeability
  • instant parameters change (no timelock)
  • 1 step owner change (gold standard is 2-step owner change)

Recommended Mitigation Steps

Make executors decentralized. Add TimeLock for parameter changes.

ankurdubey521 (Biconomy) acknowledged and commented:

I agree this is an issue, but in the current iteration of Hyphen it is still a centralized system, therefore there is an implicit trust in the contract owners and executors. A decentralized version of the Hyphen bridge is in the works and will fix these issues.

pauliax (judge) commented:

I am grouping all the issues related to centralization and owner privilege risks together and making this the primary issue because it is the most generic.


The original report as published on Code4rena, by throttle. 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 design grants the owner excessive privileges without safeguards such as timelocks or multi-step ownership transfer.

Impact

If the owner account is compromised or acts maliciously, they could steal all tokens, change critical parameters instantly, or upgrade the contract to arbitrary code.

What the attacker needed

Compromised or malicious owner

The fix

The owner's powers should be decentralised, for example by making executors decentralised and adding a timelock for parameter changes.

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 blockchain applications, a special account called the owner has extra permissions. This report says that owner can do almost anything without delay or oversight, so if that account is stolen or misused, all funds and rules are at risk.

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 throttle

View all

5 more disclosed reports, best first.

More from Biconomy - Smart Contract Wallet contest

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.