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
Rank: 88/122
Findings: 1
Award: $0.41
🌟 Selected for report: 0
🚀 Solo Findings: 0
🌟 Selected for report: guhu95
Also found by: 0rpse, 0x007, 0x73696d616f, 0xCiphky, 0xabhay, Audinarey, Bauchibred, Fassi_Security, GalloDaSballo, GoatedAudits, KupiaSec, LessDupes, MSaptarshi, OMEN, Ocean_Sky, RamenPeople, SBSecurity, Tendency, WildSniper, aslanbek, bill, blutorque, crypticdefense, cu5t0mpeo, d3e4, gjaldon, grearlake, gumgumzum, honey-k12, ilchovski, jokr, josephdara, kennedy1030, p0wd3r, peanuts, stonejiajia, t0x1c, tapir, underdog, zzykxx
0.4071 USDC - $0.41
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
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.
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
ResatakeManager::deposit(...)
with 100 stETH currently trading at 0.99ETH/stETHWithdrawalQueue::withdraw(...)
to withdraw 100 cbETH which is currently trading at 1.03ETH/cbETH101 - 99
= 2 etherManual review
A trivial recommendation is not in sight here.
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