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

Radiant Ginger Raven - Corruptible Upgradability Pattern #725

Open
sherlock-admin2 opened this issue Dec 5, 2024 · 0 comments
Open

Radiant Ginger Raven - Corruptible Upgradability Pattern #725

sherlock-admin2 opened this issue Dec 5, 2024 · 0 comments

Comments

@sherlock-admin2
Copy link
Contributor

Radiant Ginger Raven

Medium

Corruptible Upgradability Pattern

Summary

The EthosContracts (EthosVouch, ReputationMarket, ...) are UUPSUpgradeable. However, the current implementation has multiple issues regarding upgradability.

The Ethos contracts are meant to be upgradeable. However, it inherits contracts that are not upgrade-safe.

ReentrancyGuard

Root Cause

https://github.com/sherlock-audit/2024-11-ethos-network-ii/blob/main/ethos/packages/contracts/contracts/EthosVouch.sol#L67
https://github.com/sherlock-audit/2024-11-ethos-network-ii/blob/main/ethos/packages/contracts/contracts/ReputationMarket.sol#L36

Internal pre-conditions

No response

External pre-conditions

No response

Attack Path

No response

Impact

Storage of vault contracts might be corrupted during upgrading.

PoC

No response

Mitigation

Use library from Openzeppelin-upgradeable instead, e.g. ReentrancyGuardUpgradeable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant