Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Owners have absolute control over protocol #80

Open
code423n4 opened this issue Mar 16, 2022 · 2 comments
Open

Owners have absolute control over protocol #80

code423n4 opened this issue Mar 16, 2022 · 2 comments
Labels
2 (Med Risk) Assets not at direct risk, but function/availability of the protocol could be impacted or leak value bug Something isn't working sponsor acknowledged Technically the issue is correct, but we're not going to resolve it for XYZ reasons

Comments

@code423n4
Copy link
Contributor

Lines of code

https://github.com/code-423n4/2022-03-biconomy/blob/main/contracts/hyphen/LiquidityFarming.sol#L174-L192

Vulnerability details

Impact

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)

Tools Used

Manual review

Recommended Mitigation Steps

Make executors decentralized.
Add TimeLock for parameter changes.

@code423n4 code423n4 added 2 (Med Risk) Assets not at direct risk, but function/availability of the protocol could be impacted or leak value bug Something isn't working labels Mar 16, 2022
code423n4 added a commit that referenced this issue Mar 16, 2022
@ankurdubey521
Copy link
Collaborator

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.

@ankurdubey521 ankurdubey521 added the sponsor acknowledged Technically the issue is correct, but we're not going to resolve it for XYZ reasons label Mar 30, 2022
@pauliax
Copy link
Collaborator

pauliax commented Apr 26, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2 (Med Risk) Assets not at direct risk, but function/availability of the protocol could be impacted or leak value bug Something isn't working sponsor acknowledged Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Projects
None yet
Development

No branches or pull requests

3 participants