The buyCvx() and sellCvx() functions in the VotiumStrategy contract call Curve's exchange_underlying() with a minimum output of zero, so users who interact directly with the VotiumStrategy contract lack slippage protection. An attacker could sandwich those users' transactions to profit at the users' expense.
The VotiumStrategy withdrawal process calls relock(), which calls lock() on the vlCVX contract. If the vlCVX contract is shut down, lock() reverts, causing withdrawals and reward deposits to fail and potentially locking user funds.
Two functions in the Votium reward flow lack access control and do not check that the amount argument matches the ETH sent. Anyone could call them to spend any ETH held by the contracts, though the caller cannot directly profit.
The AfEth deposit and withdraw functions perform on-chain swaps without a deadline, so a pending transaction can be executed later at a stale price. An attacker or MEV bot could sandwich the delayed transaction to profit from the price difference, while the user still receives the minimum output but at a worse rate.
The ethPerCvx() function did not check that the Chainlink price feed answer stayed within a reasonable range, so if CVX crashed, the feed would return its minimum answer instead of the real price. An attacker could then call deposit() and receive an excessive amount of afEth, diluting existing depositors.
Withdrawals of zero amount from SafEth or VotiumStrategy cause downstream calls to revert, bricking the entire withdrawal process. An attacker could exploit this to permanently block withdrawals, potentially causing loss of funds.
The applyRewards function fails when the amount of ETH received is below the minimum stake amount required by SafEth, causing the reward reinvestment to revert. This could disrupt the bi-weekly reward flow, especially in early stages or low-reward conditions.
The VotiumStrategy price function calls ethPerCvx(false), which skips validation of the Chainlink price feed response, allowing stale or invalid prices to be used. An attacker could deposit when the price is stale, receiving more AfEth tokens than deserved.
The price() function in AfEth.sol calculates the afEth price using totalSupply(), which includes afEth held by the contract for pending withdrawals, making the price lower than it should be. This lets depositors receive more afEth than intended, and a first depositor can make price() return zero, causing deposit() to revert and bricking the protocol.
The VotiumStrategy reward system allows a user to deposit just before rewards are claimed and then request a withdrawal that is queued for the next epoch, letting them exit with rewards while avoiding the normal 16-week lock. This lets users game the system with minimal commitment.
The protocol values deposits and withdrawals using oracle prices that can differ from the actual trade prices by up to 2%, creating an arbitrage opportunity. An attacker could deposit and immediately withdraw to profit at the expense of existing holders.
The AfEth contract allows the ratio between its two collateral types to be changed, but there is no mechanism to rebalance the existing assets to match the new ratio. An attacker could exploit this by depositing after a ratio change, knowing that the actual balance does not reflect the intended ratio, potentially gaining an unfair advantage.
The VotiumStrategy contract lacked a minimum output check when minting shares, allowing an attacker to front-run a user's deposit and inflate the share price so the victim receives zero shares. The attacker could then withdraw the victim's deposited tokens.
The applyRewards function allows the rewarder to approve any token to any spender and execute arbitrary calls, rather than restricting swaps to the 0x protocol. This gives the rewarder excessive power that could be used accidentally or intentionally to harm the protocol.
The withdrawal queue in VotiumStrategy fails to check whether already unlocked tokens are sufficient to cover a withdrawal request, so users may wait longer than necessary or, when no tokens are locked, the request reverts entirely.
The Reth derivative's withdraw function relies on Rocket Pool's burn, which only works when the RocketDepositPool has enough excess ETH. If that excess balance is insufficient, withdrawals fail, so SafEth.unstake and rebalanceToWeights cannot be executed.
The WstEth derivative contract assumed a 1:1 peg between stETH and ETH when calculating the minimum output for a Curve swap, so when stETH traded below ETH the swap would revert and users could not unstake. An attacker could also exploit the fixed slippage to sandwich attack withdrawals and rebalancing.
The first user to stake can manipulate the total supply of sfTokens and inflate the preDepositPrice by unstaking most of their tokens and transferring derivative tokens directly to the derivative contracts. This causes subsequent users' deposits to be rounded down to zero sfTokens, allowing the attacker to steal their funds.
The staking contract used the spot price from a Uniswap pool to determine the amount of rETH received when depositing, allowing an attacker to sandwich the deposit transaction and profit from the price impact. The attacker could manipulate the pool price before the victim's stake and reverse the trade afterwards, as long as the slippage stayed within the allowed maximum.
The Reth derivative contract's poolPrice function multiplies sqrtPriceX96 by itself and by 1e18 without checking for overflow, so a sufficiently large sqrtPriceX96 could cause the multiplication to wrap around and return an incorrect price. The text does not claim that an attacker could exploit this in practice, only that the calculation may overflow.
The staking function calculates the underlying value of the rETH derivative using the derivative's entire balance, which can cause the pool deposit check to fail and return an overpriced pool price instead of the regular rETH price. This leads to an inflated preDepositPrice and users receiving fewer minted safETH tokens than they should.
The ethPerDerivative function in the SfrxEth derivative contract multiplied by 10^18 and divided by the price oracle, instead of the reverse, causing incorrect pricing of sfrxEth. This could lead to users receiving too much or too little safEth when staking, or increased slippage and potential locked funds when withdrawing.
The minOut calculation in two derivative contracts performs division before multiplication, which truncates the result and can set minOut to zero when maxSlippage is 10%. An attacker could then execute a trade with no effective slippage protection, causing the user to receive a sub-optimal amount.
The stake() function calls each derivative's deposit() without checking whether the external protocol (Lido or Rocket Pool) will accept the deposit. If any derivative's deposit reverts, the whole stake() transaction reverts, so users cannot stake at all.
The Uniswap swap call in the Reth derivative lacks a deadline parameter, so a transaction can be held by a validator and executed later when market conditions cause maximum slippage. An attacker could front-run or delay the swap to profit at the user's expense.
The protocol swaps WETH for rETH using a Uniswap pool that has higher fees and lower liquidity than alternatives, causing users to lose value through unnecessary fees and slippage. An attacker could not directly exploit this, but users suffer financial loss.
The stake() function lacks a minimum mint amount parameter, so users have no protection against receiving fewer safETH tokens if the underlying derivative prices move unfavourably between transaction submission and execution. An attacker could exploit this by manipulating derivative prices or front-running to cause stakers to receive less than expected.
The protocol's rebalancing function fully exits all derivative positions and then re-enters them according to new weights, rather than making only marginal adjustments. In a de-peg scenario, this forces unnecessary trades that increase slippage and cause losses for depositors.
The SafEth contract's stake, unstake, and rebalance functions iterate over derivative contracts and call external deposit or withdraw functions; if any single external call fails, the entire transaction reverts, causing a denial of service. This can lock user funds and make the contract inoperable until the external dependency is resolved.
AF
Asymmetry Finance afETH Invitational
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.