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
Use Chainlink to get rETH.
Status: Not mitigated. Full details in report from adriro - and also shared below in the Mitigation Review section.
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
- Bob calls stake() with the minimum amount, triggering a deposit to RocketPool and resetting the deposit delay.
- Alice tries to unstake her funds, but the rETH burn fails due to the delay check, reverting the unstake call.
- 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.