Skip to content

Code4rena

Asymmetry Finance afETH Invitational

Every publicly disclosed report for Asymmetry Finance afETH Invitational and what kind of bugs they were.

disclosed reports
35
most reported class
Business logic
bug classes found
5
first disclosure
2023
Find Asymmetry Finance afETH Invitational on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Asymmetry Finance afETH Invitational chose to make public.

Smart contracts

Functions in the VotiumStrategy contract are susceptible to sandwich attacks

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.

Asymmetry Finance afETH Invitational

High
Business logic

Missing deadline check for AfEth actions

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.

Asymmetry Finance afETH Invitational

Medium
Audit finding

Missing circuit breaker checks in ethPerCvx() for Chainlink’s price feed

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.

Asymmetry Finance afETH Invitational

Medium
Audit finding

AfEth deposits could use price data from an invalid Chainlink response

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.

Asymmetry Finance afETH Invitational

High
Business logic

price() in AfEth.sol doesn’t take afEth held for pending withdrawals into account

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.

Asymmetry Finance afETH Invitational

High
Business logic

Reward sandwiching in VotiumStrategy

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.

Asymmetry Finance afETH Invitational

Medium
Business logic

Intrinsic arbitrage from price discrepancy

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.

Asymmetry Finance afETH Invitational

High
Business logic

AfEth collaterals cannot be balanced after ratio is changed

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.

Asymmetry Finance afETH Invitational

Medium
Business logic

Inflation attack in VotiumStrategy

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.

Asymmetry Finance afETH Invitational

Medium
Audit finding

WstEth derivative assumes a ~1=1 peg of stETH to ETH

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.

Asymmetry Finance afETH Invitational

High
Smart contracts

An attacker can manipulate the preDepositvePrice to steal from other users

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.

Asymmetry Finance afETH Invitational

High
Race condition

Staking, unstaking and rebalanceToWeight can be sandwiched (Mainly rETH deposit)

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.

Asymmetry Finance afETH Invitational

High
Smart contracts

Reth poolPrice calculation may overflow

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.

Asymmetry Finance afETH Invitational

High
Business logic

A temporary issue shows in the staking functionality which leads to the users receiving less minted tokens

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.

Asymmetry Finance afETH Invitational

High
Smart contracts

Price of sfrxEth derivative is calculated incorrectly

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.

Asymmetry Finance afETH Invitational

High
Smart contracts

Division before multiplication truncate minOut and incurs heavy precision loss and result in insufficient slippage protection

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.

Asymmetry Finance afETH Invitational

Medium
Business logic

Lack of deadline for uniswap AMM

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.

Asymmetry Finance afETH Invitational

Medium
Business logic

Non-ideal rETH/WETH pool used pays unnecessary fees

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.

Asymmetry Finance afETH Invitational

Medium
Business logic

No slippage protection on stake() in SafEth.sol

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.

Asymmetry Finance afETH Invitational

Medium
DoS

DoS due to external call failure

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.

Asymmetry Finance afETH Invitational

Medium