Skip to content
DoS Audit finding Intermediate

Possible DoS on unstake()

The RocketPool rETH token has a deposit delay that prevents recently deposited tokens from being transferred or burned. If this delay were non-zero, a user could repeatedly stake a minimal amount to reset the delay and block all unstake calls, causing a denial of service.

Tricko Follow with shaka and rvierdiiev

Originally disclosed on Code4rena

Submitted by Tricko, also found by shaka and rvierdiiev

RocketPool rETH tokens have a deposit delay that prevents any user who has recently deposited to transfer or burn tokens. In the past this delay was set to 5760 blocks mined (aprox. 19h, considering one block per 12s). This delay can prevent asymmetry protocol users from unstaking if another user staked recently.

While it’s not currently possible due to RocketPool’s configuration, any future changes made to this delay by the admins could potentially lead to a denial-of-service attack on the ùnstake() mechanism. This is a major functionality of the asymmetry protocol, and therefore, it should be classified as a high severity issue.

Proof of Concept

Currently, the delay is set to zero, but if RocketPool admins decide to change this value in the future, it could cause issues. Specifically, protocol users staking actions could prevent other users from unstaking for a few hours. Given that many users call the stake function throughout the day, the delay would constantly reset, making the unstaking mechanism unusable. It’s important to note that this only occurs when stake() is used through the rocketDepositPool route. If rETH is obtained from the Uniswap pool, the delay is not affected.

A malicious actor can also exploit this to be able to block all unstake calls. Consider the following scenario where the delay was raised again to 5760 blocks. Bob (malicious actor) call stakes() with the minimum amount, consequently triggering deposit to RocketPool and resetting the deposit delay. Alice tries to unstake her funds, but during rETH burn, it fails due to the delay check, reverting the unstake call.

If Bob manages to repeatedly stakes() the minimum amount every 19h (or any other interval less then the deposit delay), all future calls to unstake will revert.

Recommended Mitigation Steps

Consider modifying Reth derivative to obtain rETH only through the UniswapV3 pool, on average users will get less rETH due to the slippage, but will avoid any future issues with the deposit delay mechanism.

toshiSat (Asymmetry) confirmed

Picodes (judge) decreased severity to Medium

Asymmetry mitigated:

Use Chainlink to get rETH.

Status: Not mitigated. Full details in report from adriro - and also shared below in the Mitigation Review section.


The original report as published on Code4rena, by Tricko. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Impact

If the deposit delay is non-zero, a malicious actor could block all unstake calls, causing a denial of service; currently the delay is zero so the issue is not exploitable.

What the attacker needed

RocketPool deposit delay is non-zero; Attacker can stake minimum amount repeatedly

The fix

The protocol should obtain rETH only through the UniswapV3 pool to avoid the deposit delay mechanism.

How it was found

  1. Bob calls stake() with the minimum amount, triggering a deposit to RocketPool and resetting the deposit delay.
  2. Alice tries to unstake her funds, but the rETH burn fails due to the delay check, reverting the unstake call.
  3. Bob repeats the minimum stake every 19 hours (or less than the delay) to keep the delay active, causing all future unstake calls to revert.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

Some tokens have a waiting period after you deposit them before you can move or burn them. If someone keeps making tiny deposits, that waiting period keeps restarting, so other people can never withdraw their funds. This is a denial-of-service attack because it stops a key function from working.

What is DoS?

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.

More by Tricko

View all

3 more disclosed reports, best first.

More from Asymmetry Finance afETH Invitational

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Denial of service

The lesson behind this report.

A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.