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.
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.
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.
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.