Stader Labs - Deps's results

Decentralized ETH liquid staking protocol with 4 ETH bond for anyone to be a node operator.

General Information

Platform: Code4rena

Start Date: 02/06/2023

Pot Size: $100,000 USDC

Total HM: 15

Participants: 75

Period: 7 days

Judge: Picodes

Total Solo HM: 5

Id: 249

League: ETH

Stader Labs

Findings Distribution

Researcher Performance

Rank: 35/75

Findings: 1

Award: $102.27

🌟 Selected for report: 0

🚀 Solo Findings: 0

Findings Information

Awards

102.2712 USDC - $102.27

Labels

bug
2 (Med Risk)
satisfactory
duplicate-383

External Links

Lines of code

https://github.com/code-423n4/2023-06-stader/blob/d5f7854fdf70547c6476c00be5d97c85f2c8d064/contracts/Auction.sol#L34

Vulnerability details

Impact

The contract contracts/Auction.sol, even doing import '@openzeppelin/contracts-upgradeable/security/PausableUpgradeable.sol'; and __Pausable_init();. They have left the public functions to control the state of the contract without declaration, meaning that if there is a problem with the Auction contract it can never change to paused state like ETHx.sol contract can.

Proof of Concept

The contract is being imported here: https://github.com/code-423n4/2023-06-stader/blob/d5f7854fdf70547c6476c00be5d97c85f2c8d064/contracts/Auction.sol#LL11C1-L11C79

The contract is being inherited here: https://github.com/code-423n4/2023-06-stader/blob/d5f7854fdf70547c6476c00be5d97c85f2c8d064/contracts/Auction.sol#LL14C1-L14C121

The contract is being initialized here: https://github.com/code-423n4/2023-06-stader/blob/d5f7854fdf70547c6476c00be5d97c85f2c8d064/contracts/Auction.sol#LL34C9-L35C1

The contract is being used in the following lines: https://github.com/code-423n4/2023-06-stader/blob/d5f7854fdf70547c6476c00be5d97c85f2c8d064/contracts/Auction.sol#L48 https://github.com/code-423n4/2023-06-stader/blob/d5f7854fdf70547c6476c00be5d97c85f2c8d064/contracts/Auction.sol#L62

Tools Used

Manual Audit

There should have the following code snipet present on ETHx.sol contract:

https://github.com/code-423n4/2023-06-stader/blob/d5f7854fdf70547c6476c00be5d97c85f2c8d064/contracts/ETHx.sol#LL60C5-L75C6

This way the usage of the pausable contract is ensured and the Auction would not have any surprises during its usage.

Assessed type

Other

#0 - c4-judge

2023-06-10T10:45:14Z

Picodes marked the issue as duplicate of #383

#1 - c4-judge

2023-07-02T09:44:33Z

Picodes marked the issue as satisfactory

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter