The vault's share price could be manipulated by the first depositor, who could inflate the value of their shares by directly transferring collateral tokens to the strategy. This forced later depositors to receive fewer shares for their deposits, allowing the attacker to steal a portion of their funds.
When the vault's total supply is zero, an attacker can donate a tiny amount of tokens to make the share calculation always return zero, preventing deposits. This causes a denial of service for the vault.
The oracle contract reads the latest price from a Chainlink aggregator but does not check that the returned answer falls within the aggregator's configured minimum and maximum price band. If an asset crashes below the minimum, the oracle would keep returning the minimum price, letting users borrow against an inflated value.
The BalancerFlashLender contract's receiveFlashLoan function did not validate the originalCallData, allowing an attacker to pass arbitrary parameters and trigger any Strategy instruction such as _supplyBorrow, _repayAndWithdraw, or _payDeb. The judge noted that exploitation was unlikely because the contract typically holds no funds, but the behaviour was unintended and should be fixed.
The flashFee function rounds down the fee, while flash loan providers round up, so the approval given to the provider can be less than required and the flash loan call reverts.
The vault's performance fee calculation mints shares based on the pre-mint total supply, so the fee receiver receives slightly fewer shares than intended. This causes the protocol to collect a smaller fee than it should.
The deposit function used an incorrect formula to convert the user's existing share balance into ETH when checking the maximum deposit limit. This could allow a user to exceed the intended maximum deposit or cause legitimate deposits to be rejected prematurely.
The harvest function repays debt using a flashloan but does not subtract the flashloan fee from the calculated new deployed amount, making it appear larger than reality. This causes the protocol to receive less management fee when profit accrues.
The strategy deposits leftover WETH into Aave after a debt repayment swap, but it has no way to withdraw WETH from Aave, so those funds become permanently stuck. An attacker cannot directly exploit this, but any user triggering the strategy will lose the excess WETH.
The protocol's swap function sets the minimum output amount to zero, so trades can be executed at any price. An attacker could front-run or sandwich these swaps to cause the protocol to receive an unfavourable amount of tokens.
The ETHOracle contract returns the Chainlink ETH/USD price with 8 decimals, but its getPrecision() function claims 18 decimals. This mismatch causes the StrategyLeverage contract to calculate totalCollateralInEth incorrectly, potentially leading to overborrowing.
BI
BakerFi Invitational
High
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.