Renzo - Audinarey's results

A protocol that abstracts all staking complexity from the end-user and enables easy collaboration with EigenLayer node operators and a Validated Services (AVSs).

General Information

Platform: Code4rena

Start Date: 30/04/2024

Pot Size: $112,500 USDC

Total HM: 22

Participants: 122

Period: 8 days

Judge: alcueca

Total Solo HM: 1

Id: 372

League: ETH

Renzo

Findings Distribution

Researcher Performance

Rank: 88/122

Findings: 1

Award: $0.41

🌟 Selected for report: 0

🚀 Solo Findings: 0

Awards

0.4071 USDC - $0.41

Labels

bug
3 (High Risk)
satisfactory
sufficient quality report
:robot:_224_group
duplicate-326

External Links

Lines of code

https://github.com/code-423n4/2024-04-renzo/blob/519e518f2d8dec9acf6482b84a181e403070d22d/contracts/Withdraw/WithdrawQueue.sol#L206 https://github.com/code-423n4/2024-04-renzo/blob/519e518f2d8dec9acf6482b84a181e403070d22d/contracts/RestakeManager.sol#L492

Vulnerability details

Impact

This can lead to a situation where the protocol becomes insolvent because users can choose asset to deposit and withdraw hence arbitraging from the protocol.

Proof of Concept

During withdrawals, user can perform arbitrage, this is because there is no restriction on users to withdraw the exact restaking token they deposited.

This problem exists because users can call ResatakeManager::deposit(...) with a different _collateralToken from the one they used to call WithdrawalQueue::withdraw(...) hence a malicious user can but stETH cheap from the stETH/ETH pool and deposit it into the protocol and withdraw say cbETH which is currently trading at 1.03ETH at the time of writing this report

Liquid staking tokens are vulnerable to depegging significantly from the underlying staked cryptocurrencies. As seen in RENZO itself just two weeks ago

scenario

  • Alice has 100 ETH, and buys 100 stETH at 0.99ETH/stETH with 99 ETH
  • Alice calls ResatakeManager::deposit(...) with 100 stETH currently trading at 0.99ETH/stETH
  • Alice call WithdrawalQueue::withdraw(...) to withdraw 100 cbETH which is currently trading at 1.03ETH/cbETH
  • Alice gains 101 - 99 = 2 ether

Tools Used

Manual review

A trivial recommendation is not in sight here.

Assessed type

Other

#0 - c4-judge

2024-05-16T13:58:19Z

alcueca marked the issue as satisfactory

#1 - c4-judge

2024-05-16T14:03:19Z

alcueca marked the issue as duplicate of #326

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