Skip to content

Code4rena

xETH - Versus Contest

Every publicly disclosed report for xETH - Versus Contest and what kind of bugs they were.

disclosed reports
10
most reported class
Business logic
bug classes found
3
first disclosure
2023
Find xETH - Versus Contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what xETH - Versus Contest chose to make public.

DoS

Unspent allowance may break functionality in AMO

The AMO contract uses safeApprove to grant the Curve pool an allowance, but safeApprove reverts if the current allowance is not zero. Any leftover allowance causes addLiquidity and addLiquidityOnlyStETH to revert, potentially bricking the contract.

xETH - Versus Contest

Medium
Business logic

First 1 wei deposit can produce loss of user xETH funds in wxETH

The wxETH stake function allows deposits that mint zero shares, so a user can lose their xETH. An attacker can make the first tiny deposit and then, due to the contract's dripping of rewards, cause later depositors to receive no shares for their funds.

xETH - Versus Contest

Medium
Business logic

Rebalance amounts should be checked so that updated balances falls within thresholds

Rebalance operations in the AMO contract only check that the pool's xETH percentage is outside the allowed thresholds before acting, but never verify that the amount minted or burned brings the percentage back inside the range. A malicious or malfunctioning defender could therefore push the pool balance past the opposite threshold.

xETH - Versus Contest

Medium
Business logic

Inconsistent check for LP balance in AMO

The AMO contract checks the available LP tokens using only the staked balance, ignoring LP tokens held directly in the CVXStaker contract. This can cause legitimate rebalance or liquidity removal operations to revert even when enough total LP tokens are available.

xETH - Versus Contest

Medium
DoS

Zero token transfer can cause a potential DoS in CVXStaker

The CVXStaker contract transfers each reward token balance to the recipient without checking for zero, so if any reward token reverts on zero-value transfers, the entire getReward call reverts and blocks all reward claims.

xETH - Versus Contest

Medium
Business logic

Virgin stake can claim all drops

The drip mechanism in the wxETH contract accrues rewards independently of the total staked supply, so if drip is enabled before any staker deposits, the first staker can immediately unstake the entire accumulated balance. This allows the first staker to claim all previously dripped rewards.

xETH - Versus Contest

Medium
Smart contracts

Inflation attack by token transfer

The first staker can inflate the exchange rate by transferring tokens directly to the contract, causing subsequent stakers to receive zero shares due to rounding. The first staker can then unstake and steal the second staker's deposit.

xETH - Versus Contest

Medium
Business logic

Incorrect slippage check in the AMO2.rebalanceUp can be attacked by MEV

The slippage check in AMO2.rebalanceUp incorrectly calculates the minimum xETH received when removing liquidity as a single coin, because it subtracts slippage from the virtual price amount even though the actual amount received is higher due to the pool imbalance. This could allow a small sandwich attack under niche conditions.

xETH - Versus Contest

Medium
Business logic

CVXStaker.sol Unable to process newly add rewardTokens

The CVXStaker contract stores a fixed list of reward tokens in its constructor and uses it to transfer rewards, but Convex can later add new extra reward tokens. As a result, any newly added reward tokens remain stuck in the contract and cannot be forwarded to the rewards recipient.

xETH - Versus Contest

Medium