Red Stone Oracle Can Time Travel
Sentiment V2
HighSherlock
Every publicly disclosed report for Sentiment V2 and what kind of bugs they were.
Newest first. Only what Sentiment V2 chose to make public.
Sentiment V2
HighThe pool's share calculation uses rounding down, allowing an attacker to manipulate the share price when total supply is low. An attacker can inflate the value of a single share, causing later depositors to lose up to 33% of their assets.
Sentiment V2
HighSetting the minimum debt and borrow amounts to low values allows positions with tiny debts that liquidators have no incentive to clear, causing the protocol to accrue bad debt. Additionally, rounding errors may let users borrow dust amounts without proper collateral.
Sentiment V2
MediumThe SuperPoolFactory and SuperPool contracts use ERC20.approve, which expects a boolean return value, but some ERC20 tokens like USDT do not return a value, causing the transaction to revert. This prevents the creation and use of super pools for those assets.
Sentiment V2
MediumSentiment V2
MediumSentiment V2
MediumA position's health is assessed across all debt pools using each pool's LTV, so a change in one pool's LTV can make a position unhealthy and allow a liquidator to repay debt from another pool, even if that other pool's risk tolerance is still met. This breaks the isolation of risk between base pools and can cause liquidations that affect unrelated pools' utilisation and interest rates.
Sentiment V2
MediumThe protocol's interest fee calculation loses precision when using low-decimal assets like USDT/USDC, causing the fee to round down to zero for short accrual periods. An attacker could repeatedly trigger accrual with small amounts to avoid paying interest fees to the protocol.
Sentiment V2
MediumSentiment V2
MediumThe protocol allows pool owners to set a loan-to-value (LTV) ratio as high as 98%, but oracle price deviations can push the effective LTV above 100%. This could let borrowers take out loans worth more than their collateral, leaving lenders with bad debt and discouraging liquidators.
Sentiment V2
MediumThe SuperPool's interest distribution mechanism can be manipulated by an attacker who transfers assets directly to the pool before a regular user deposits, causing the dead address's shares to receive a disproportionate share of interest. This can lead to financial loss for legitimate users as their interest is reduced.
Sentiment V2
MediumWhen bad debt is liquidated, the pool's total deposit assets can become zero while shares remain, so a new depositor's shares are minted 1:1 and they immediately share the pool with existing shares, causing them to lose funds. An attacker could exploit this by depositing after such a liquidation, effectively taking on the socialised loss.
Sentiment V2
MediumThe Pool and SuperPool contracts lack slippage protection when users withdraw or redeem, so if a bad debt liquidation reduces the pool's total assets while a transaction is pending, the user burns more shares or receives fewer assets than expected. An attacker could exploit this by triggering a bad debt liquidation before a victim's withdrawal, causing the victim to lose funds.
Sentiment V2
MediumA griefer can frontrun SuperPool creation by donating a small amount of the asset to the predetermined contract address, inflating share price and causing the creation transaction to revert due to insufficient burned shares. This makes it very expensive or impossible to create that specific SuperPool.
Sentiment V2
MediumA liquidator could seize more collateral than allowed by including a repayment amount of type(uint256).max after a partial repayment, causing the debt value to be double-counted. This let the liquidator seize the entire collateral of a position, exceeding the intended limit.
Sentiment V2
HighThe SuperPool contract's convertToShares and convertToAssets functions include accrued fees in their calculations, violating the ERC4626 specification which requires these functions to exclude fees. This non-compliance could mislead integrators relying on strict ERC4626 behaviour.
Sentiment V2
MediumSentiment V2
MediumSentiment V2
MediumThe Chainlink oracle integration does not check the minAnswer and maxAnswer bounds of the price feed. In a flash crash, the oracle would return a price above the true market price, allowing a user to deposit an overvalued asset and borrow against it, causing lenders to lose funds.
Sentiment V2
MediumThe liquidation fee is calculated on the entire collateral amount paid to the liquidator rather than on the liquidator's profit, making most liquidations unprofitable. This can lead to bad debt and insolvency because no one is incentivised to liquidate.
Sentiment V2
MediumSentiment V2
MediumThe rebalanceBadDebt function reduces a pool's total deposit assets without reducing total deposit shares, deflating the share price. An attacker can repeatedly borrow and trigger bad debt to inflate total shares near the maximum uint256, causing overflow in functions like getBorrowsOf and isPositionHealthy, which prevents liquidation of their positions.
Sentiment V2
MediumA rounding error in the withdraw function can leave a pool with total deposit assets greater than zero but total deposit shares equal to zero, which bricks the deposit function. An attacker can exploit this to disable pools for a target address, preventing them from creating new pools.
Sentiment V2
MediumThe RedstoneCoreOracle uses a constant stale price threshold of 3600 seconds for all tokens, but some tokens have a smaller threshold. This means the oracle may accept prices that are actually stale, leading to incorrect collateral valuation and unfair liquidations or incorrect borrowing amounts.
Sentiment V2
MediumThe SuperPool contract's deposit function fails to account for the base pool's total cap when distributing assets, only checking the SuperPool's own per-pool cap. This can cause deposits to revert when the base pool has less free space than the SuperPool attempts to supply, leaving available capacity unused.
Sentiment V2
MediumThe RedStone oracle contract stores asset and ETH prices in state variables that are only updated by an external function, which is not called automatically when the price is read. An attacker could exploit stale or manipulated prices to borrow at an incorrect value and repay at a more favourable one.
Sentiment V2
Medium