Skip to content

Code4rena

Yeti Finance contest

Every publicly disclosed report for Yeti Finance contest and what kind of bugs they were.

disclosed reports
11
most reported class
Business logic
bug classes found
4
first disclosure
2022
Find Yeti Finance contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Yeti Finance contest chose to make public.

Audit finding

Should check return data from Chainlink aggregators

The PriceFeed contract fetches asset prices from a Chainlink aggregator but does not check the round ID or whether the answer is carried over from a previous round. An attacker could exploit stale or incomplete price data to manipulate the system, potentially putting funds at risk.

Yeti Finance contest

Medium
Smart contracts

Reentrancy in contracts/BorrowerOperations.sol

Several external functions in the BorrowerOperations contract lack a re-entrancy guard, potentially allowing an attacker to re-enter and manipulate debt, collateral, or trove ownership. The report does not demonstrate a concrete exploit but flags the missing protection.

Yeti Finance contest

Medium
Audit finding

Cannot use most piecewise linear functions with current implementation

The smart contract's price curve function uses unsigned integers for y-axis intercepts, so any curve with a negative intercept underflows and reverts. This prevents the use of desirable piecewise linear curves that become steeper at higher utilisation.

Yeti Finance contest

Medium
Business logic

Fee not decayed if past decayTime

The fee decay function incorrectly returns the full last fee instead of zero when the decay period has fully elapsed. An attacker could pay a higher fee than intended, but the report does not claim any direct exploit.

Yeti Finance contest

Medium
Business logic

Wrong lastBuyBackPrice

The buyBack function calculates lastBuyBackPrice using the first two amounts returned by a token swap, but these amounts depend on the swap path. If a path with more than two tokens is used, the price is incorrect, leading to wrong rebase amounts and effectiveYetiTokenBalance updates.

Yeti Finance contest

Medium
Business logic

Unwhitelisted token can cause disaster

The sendCollaterals function in ActivePool.sol does not verify that the token being sent is whitelisted. If an allowed contract calls it with a non-whitelisted token, the token index defaults to zero, causing incorrect updates to the balance of the whitelisted token at index zero and allowing the non-whitelisted token to be transferred.

Yeti Finance contest

Medium
DoS

Out of gas.

The smart contract has an unbounded array of collateral tokens that grows with each new collateral added, and no function to reduce its size. As the array grows, the gas cost of calls to getVC() increases, potentially leading to out-of-gas errors or block gas limit issues, which could lock funds.

Yeti Finance contest

Medium
Business logic

Collateral parameters can be overwritten

The addCollateral function's duplicate check is flawed: when the first collateral token is added again, the condition validCollateral[0] != _collateral is false, so the require that prevents duplicates is skipped. An attacker with owner privileges could overwrite the collateral parameters and add the same token multiple times, breaking accounting.

Yeti Finance contest

Medium
Business logic

Wrong comment in getFee

The comment in the getFee function states that the total plus input must be less than the cap, but the code only checks if the input is less than the cap. An attacker could potentially exceed the intended cap by providing a large total input, though the exact impact is not detailed.

Yeti Finance contest

Medium
Business logic

Yeti token rebase checks the additional token amount incorrectly

The rebase function in the sYETI token contract incorrectly caps the additional Yeti token balance using the entire contract balance instead of only the extra tokens bought back from the market. This can cause the contract to account for more tokens than it actually holds, leading to a deficit where users cannot withdraw their full claims if the token price rises.

Yeti Finance contest

High
Access control

receiveCollateral() can be called by anyone

The receiveCollateral() function in StabilityPool.sol lacks access control, allowing anyone to call it with arbitrary token and amount arguments to update the stability pool's balances. An attacker could manipulate the pool's accounting, potentially causing incorrect balances or denial of service.

Yeti Finance contest

High