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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
YF
Yeti Finance contest
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.