Issue #47 from Update #1 is still present in ConvexSpell
Blueberry Update #3
MediumSherlock
Every publicly disclosed report for Blueberry Update #3 and what kind of bugs they were.
Newest first. Only what Blueberry Update #3 chose to make public.
Blueberry Update #3
MediumThe protocol's oracle adapter only supports single-asset price feeds, but wstETH has no Chainlink or Band oracle on mainnet, leaving only low-liquidity Uniswap pools as a dangerous alternative. This makes many popular yield strategies that rely on wstETH unusable.
Blueberry Update #3
MediumBlueberry Update #3
MediumThe AuraSpell contract's openPositionFarm function can revert when the tokens array includes the lpToken, because the amountsIn array is shortened via assembly while maxAmountsIn remains full length, causing a length mismatch that Balancer's vault rejects. This prevents users from opening positions in such cases.
Blueberry Update #3
MediumThe closePositionFarm function in AuraSpell burns the BLP (liquidity provider) tokens before deducting the reward fee. If the borrow token is also a reward token, the fee is taken from the underlying liquidity, causing the user to lose more funds than intended.
Blueberry Update #3
MediumThe CurveSpell and ConvexSpell contracts approve only the borrowed amount to the Curve pool, but then supply the contract's full token balance as the liquidity amount. If anyone sends a tiny amount of the borrow token to the contract beforehand, the supplied amount exceeds the approval and the liquidity call reverts, so no one can open a position.
Blueberry Update #3
MediumThe closePositionFarm function in AuraSpell exits a Balancer pool with an empty array for minAmountsOut, providing no slippage protection. An attacker could sandwich attack the exit, causing massive loss to the user.
Blueberry Update #3
MediumThe CurveTricryptoOracle contract incorrectly assumes that WETH is always the last token in a tricrypto pool, but many pools have a different token in that position. This causes the LP price to be massively overvalued, leading to overborrowing and potential protocol insolvency.
Blueberry Update #3
HighThe AuraSpell and ConvexSpell contracts allow users to specify arbitrary expectedRewards and swap data, enabling them to leave large token approvals hanging. An attacker could then swap reward tokens in a different order to bypass reward fees.
Blueberry Update #3
MediumThe WAuraPools contract attempts to transfer stash AURA tokens directly to users when burning wrapped LP tokens, but stash AURA cannot be transferred like a regular ERC20 token, causing all such transfers to revert. As a result, all deposits become permanently unrecoverable.
Blueberry Update #3
MediumThe StableBPTOracle contract values Balancer stable pools by taking the minimum price of the underlying tokens and multiplying by the pool's rate, which overvalues the LP token. An attacker could borrow more than the true value of the LP, leading to protocol insolvency.
Blueberry Update #3
HighThe reward calculation for AURA tokens uses the current emission rate instead of the rate at the time rewards were claimed, causing users to lose rewards when cliffs change. An attacker could exploit this by withdrawing at a favourable time, but the report focuses on accidental loss for all users.
Blueberry Update #3
HighBlueberry Update #3
MediumThe collateral value calculation used the exchange rate of the debt token's bToken instead of the underlying token's bToken, producing an incorrect collateral value. This could lead to incorrect risk assessment and potentially allow positions to be liquidated when they should not be, or vice versa.
Blueberry Update #3
HighThe ConvexSpell contract's closePositionFarm function calls Curve's remove_liquidity_one_coin, which reverts if the Curve pool is killed. This prevents users from closing their positions and repaying debt, potentially leading to liquidation.
Blueberry Update #3
MediumThe ConvexSpell contract calls balanceOf on each token in a Curve LP, but native ETH is represented by a special address that does not implement balanceOf, causing a revert. This makes the contract incompatible with any Curve pool that uses native ETH.
Blueberry Update #3
MediumThe EnsureApprove contract calls USDT's approve function through a standard IERC20 interface that expects a boolean return value, but USDT's approve returns nothing, causing the call to revert. This makes any SoftVault deployed with USDT as the underlying token unusable, wasting deployment costs.
Blueberry Update #3
MediumThe Curve tricrypto LP oracle divided an already USD-denominated LP price by the ETH price, so it returned the LP value in ETH rather than USD. This made LP tokens appear far cheaper than they were, so positions that were actually well collateralised could be liquidated.
Blueberry Update #3
HighWhen a user adds to an existing position on AuraSpell, the contract burns the old position and mints a new one, but only refunds Aura tokens to the user while other reward tokens sent to the contract are lost. An attacker could not directly exploit this, but the user loses all extra reward tokens from their original position.
Blueberry Update #3
HighThe BalancerPairOracle's getPrice function calls computeFairReserves, which performs integer division resA / resB. When resA is smaller than resB, this division yields zero, and a subsequent division by zero causes a revert. An attacker could trigger this condition by ensuring the pool's token balances or decimals cause resA < resB, making the oracle and any dependent functions unusable.
Blueberry Update #3
MediumThe ShortLongSpell#openPosition function incorrectly uses the balance of the uToken instead of the vault token when determining collateral to deposit, leaving vault tokens in the contract. An attacker could steal these leftover vault tokens.
Blueberry Update #3
HighThe bank contract caches the fee manager address at initialisation, while vaults always read the current fee manager from config. If the fee manager is updated in config, the bank and vaults use different fee managers, causing inconsistent fees for users.
Blueberry Update #3
MediumThe ShortLongSpell#openPosition function attempts to burn the wrong token (vault.uToken instead of vault) when adding to an existing position, causing the function to always revert. This makes the function completely nonfunctional for users adding to their position.
Blueberry Update #3
MediumAuraSpell swaps all reward tokens to a debt token without allowing users to set a minimum output amount, so the swap can be sandwiched and the rewards stolen.
Blueberry Update #3
HighThe BalancerPairOracle contract calculates prices using Balancer pool token balances and total supply without checking the Balancer Vault's reentrancy guard. An attacker can exploit a read-only reentrancy during a pool join to make the oracle return a manipulated, lower price, causing premature liquidation of user positions.
Blueberry Update #3
HighThe ConvexSpell and CurveSpell contracts remove liquidity from Curve pools without any slippage protection, passing a minimum output of zero. An attacker could sandwich the withdrawal transaction to manipulate the pool price and steal value from the user.
Blueberry Update #3
HighThe getPositionRisk function uses Compound's exchangeRateStored, which does not accrue interest, so the calculated risk can be outdated. This could cause a healthy position to be liquidated.
Blueberry Update #3
MediumThe openPositionFarm function in AuraSpell only borrows one token type, so one of the maxAmountsIn values is zero, making the computed poolAmountOut zero. The conditional check if (poolAmountOut > 0) then always fails, so the pool is never joined and users earn no rewards.
Blueberry Update #3
MediumThe AuraSpell contract uses an empty userData field for Balancer join requests, which decodes to join type 0 (INIT). This causes transactions to revert for already-initialized pools, preventing users from opening farm positions.
Blueberry Update #3
HighThe report points out that a previous fix to prevent liquidations during a repay pause is incomplete: users who become liquidatable while repay is paused can still be liquidated immediately after repay is re-enabled, because MEV bots can frontrun any repayment attempt. This leaves users unable to save their positions.
Blueberry Update #3
Medium