Skip to content

Sherlock

Sentiment V2

Every publicly disclosed report for Sentiment V2 and what kind of bugs they were.

disclosed reports
26
most reported class
Business logic
bug classes found
3
first disclosure
2024
Find Sentiment V2 on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Sentiment V2 chose to make public.

Business logic

Liquidators may repay a position's debt to pools that are within their risk tolerance, breaking the concept of isolated risk in base pools

A 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

Medium
Business logic

LTV of 98% would be extremely dangerous

The 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

Medium
Business logic

Under certain circumstances bad debt will cause first depositor to lose funds

When 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

Medium
Business logic

Lack of slippage protection during withdrawal in SuperPool and Pool contracts

The 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

Medium
DoS

Griefer can DOS the `SuperPool` creation and make it very expensive for other users

A 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

Medium
Business logic

User's can seize more assets during liquidation by using type(uint).max

A 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

High
Business logic

The `SuperPool` vault is not strictly ERC4626 compliant as it should be

The 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

Medium
Audit finding

`ChainlinkOracle` doesn't validate for minAnswer/maxAnswer

The 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

Medium
Business logic

User's can create non-liquidateable positions by leveraging `rebalanceBadDebt` to decrease share price

The 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

Medium
Smart contracts

Base pools can get bricked if depositors pull out

A 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

Medium
Audit finding

The RedstoneCoreOracle has a constant stale price threshold, this is dangerous to use with tokens that have a smaller threshold as the oracle will report stale prices as valid

The 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

Medium
Business logic

`SuperPool` fails to correctly deposit into pools

The 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

Medium