Hunt prep
Before you test Renzo
What 22 disclosed reports say about Renzo: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 12 | 0 | – | – | $0 |
| DoS lesson | 6 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
Incorrect calculation of queued withdrawals can deflate TVL and increase ezETH mint rate
The lookup should use queuedShares[address(token)] instead of queuedShares[address(this)]; the report notes the issue was mitigated and the mitigation confirmed.
Disclosed
-
DOS of completeQueuedWithdrawal when ERC20 buffer is filled
The recommended mitigation is to remove the onlyRestakeManager modifier from fillERC20withdrawBuffer, allowing anyone to call it, which is safe because callers effectively donate funds to the withdrawal queue.
Disclosed
-
Price updating mechanism can break
The receiver contract should handle reverts gracefully, for example by catching logical errors and not letting a failed message block subsequent ones.
Disclosed
-
L1::xRenzoBridge and L2::xRenzoBridge uses the block.timestamp as dependency, which can cause issues
The timestamp check on L2 should be removed, as the report recommends.
Disclosed
-
Not handling the failure of cross chain messaging
The report recommends wrapping the deposit call in a try/catch with authenticated error handling, enforcing the L1 deposit limit on L2, adding a pause mechanism on L2, and letting the sweeper choose the bridged amount; the project acknowledged the issue.
Disclosed
-
Potential arbitrage opportunity in the xRenzoDeposit L2 contract
The report suggests that the existing L2 deposit fees help minimise the problem and that update frequency may need monitoring and adjustment, but the project considered it expected behaviour.
Disclosed
-
stETH/ETH feed being used opens up to 2 way deposit<->withdrawal arbitrage
The withdrawal logic should be rethought to be denominated in ETH, with deposits estimated via a pessimistic exchange rate and withdrawals exclusively in ETH while pricing in slashing, discounts and operative costs.
Disclosed
-
Fetched price from the oracle is not stored in xRenzoDeposit
The getMintRate function should be changed to write the fetched oracle price and timestamp into the storage variables when the oracle timestamp is newer.
Disclosed
-
Withdrawals of rebasing tokens can lead to insolvency and unfair distribution of protocol reserves
The contract should store and transfer stETH shares instead of a fixed stETH amount, converting at withdrawal and claim time.
Disclosed
-
Pending withdrawals prevent safe removal of collateral assets
The team will partially mitigate by adding a sanity check to removeCollateralToken that reverts if the WithdrawQueue balance for the collateral asset is non-zero, with a force kickOff to be implemented later.
Disclosed
-
Withdrawals and Claims are meant to be pausable, but it is not possible in practice
The functions withdraw and claim should be fixed by adding the whenNotPaused modifier, and the report notes the project mitigated this.
Disclosed
-
The amount of xezETH in circulation will not represent the amount of ezETH tokens 1:1
The protocol should track the amount of xezETH minted on L2 and mint the equivalent amount of ezETH on L1 when the bridge receives the funds.
Disclosed
-
Fixed hearbeat used for price validation is too stale for some tokens
It should be fixed by storing a mapping that records the heartbeat parameter for the stale period of each token and for every different chain.
Disclosed
-
calculateTVL may run out of gas for modest number of operators and tokens breaking deposits, withdrawals, and trades
The function should be refactored to use a push pattern where operator delegators update aggregated TVL sums, eliminating nested loops, or an off-chain TVL oracle should be used.
Disclosed
-
Lack of slippage and deadline during withdraw and deposit
The functions should be fixed by allowing users to pass a slippage tolerance value and a deadline parameter when calling them.
Disclosed