Skip to content

Sherlock

Sentiment Update #3

Every publicly disclosed report for Sentiment Update #3 and what kind of bugs they were.

disclosed reports
38
most reported class
Business logic
bug classes found
5
first disclosure
2022
Find Sentiment Update #3 on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Sentiment Update #3 chose to make public.

Business logic

Tokens not owned by an account can be added as an asset to the account

The controllers incorrectly add tokens to an account's asset list even when the account did not receive those tokens, because the canCall functions return token addresses that were not actually transferred to the account. An attacker could have tokens they do not own appear in their asset list, though the report notes this does not affect collateral calculation.

Sentiment Update #3

Medium
Access control

Using one controller for two addresses could risk signature collisions

The DNGMXVaultController approves function calls by signature for two separate contracts, but without compiler checks across those contracts, a signature collision could allow a user to call a non-permitted function. The report notes this is unlikely and the contracts are non-upgradeable, so no collision exists in practice.

Sentiment Update #3

Medium
Business logic

`PreviewRedeem` may under-price the value of the asset

The previewRedeem function uses the zero address to look up partner fee information, which may return incorrect fee values. This could cause users to be liquidated earlier than they should be and give liquidators higher profits.

Sentiment Update #3

Medium
Business logic

No check if Arbitrum L2 sequencer is down in Chainlink feeds

The GLP oracle on Arbitrum reads a Chainlink price feed without checking whether the L2 sequencer is down, so a stale price can still look fresh. A malicious actor could exploit sequencer downtime to borrow against an inflated price or dodge liquidation at a deflated one.

Sentiment Update #3

Medium
Business logic

Risk with Liquidation - Because of partnership requirement, caller may be unable to redeem during liquidation making it less likely for them to be willing to perform the liquidation

The report claims that during liquidation, a liquidator receives pvGLP vault tokens but may be unable to redeem them because the redemption contract only allows whitelisted or partner addresses. This could discourage liquidators from performing liquidations when needed.

Sentiment Update #3

Medium
Business logic

Non terminal tokens received via Balancer batchSwap are not accounted for

The BalancerController contract only recorded the final token from a Balancer batchSwap, ignoring intermediate tokens returned to the user. An attacker could exploit this to have intermediate tokens not counted in their account balance, potentially leading to premature liquidation.

Sentiment Update #3

High
Audit finding

No check for active Arbitrum Sequencer in WSTETH Oracle

The WSTETH oracle contract did not check whether the Arbitrum sequencer was live before returning price data, unlike the protocol's other Arbitrum oracle. If the sequencer went down, prices could become stale and users could keep borrowing against outdated values.

Sentiment Update #3

Medium
Smart contracts

Curve LP Controller withdraw and claim function uses wrong signature

The controller contracts used an incorrect function selector for the withdraw-and-claim operation, so calls to withdraw from Balancer pools would fail. Users could not claim rewards when withdrawing from Balancer pools, though Curve pools were unaffected because their actual signature matched the selector.

Sentiment Update #3

Medium
Business logic

User can trade away an asset using Balancer batchSwap without removing it from account

The BalancerController contract only records the first token in a batchSwap chain as tokensOut, ignoring tokens that are actually spent from the user's account. An attacker can set a later swap step's amount higher than the previous step's output, causing extra tokens to be traded away without the account's asset tracking being updated.

Sentiment Update #3

Medium
Crypto

`UniV2LPOracle` will malfunction if token0 or token1's `decimals != 18`

The UniV2LPOracle contract incorrectly assumes that the reserves of a Uniswap V2 pair are always in 18 decimals, leading to a wrong price calculation when one of the tokens has a different number of decimals. An attacker could exploit this to manipulate the oracle's reported price, potentially causing financial loss or incorrect liquidations.

Sentiment Update #3

High
Business logic

LToken's implmentation is not fully up to EIP-4626's specification

The LToken contract's maxMint and maxDeposit functions return the maximum uint256 value instead of respecting the contract's maxSupply limit, violating the EIP-4626 standard. This could cause unexpected behaviour in the future due to non-compliance.

Sentiment Update #3

Medium
Business logic

Tokens received from Curve's `remove_liquidity()` should be added to the assets list even if `_min_amounts` are set to `0`

The Curve controller's canRemoveLiquidity function only added underlying tokens to the account's asset list if their minimum withdrawal amount was greater than zero. An attacker could set minimum amounts to zero, causing withdrawn tokens to be omitted from the asset list and potentially leading to premature liquidation.

Sentiment Update #3

High
Business logic

Accounts with ETH loans can not be liquidated if LEther's underlying is set to `address(0)`

The protocol allows setting the underlying asset of LEther to the zero address, and its accounting logic treats the zero address as a valid asset. If that configuration occurs, accounts with ETH loans cannot be liquidated because the health check calls a balance function on the zero address and reverts.

Sentiment Update #3

Medium
Business logic

AccountManager: Liquidations not possible when transfer fails

The liquidation function iterates over all assets and attempts to transfer each one; if any single transfer fails, the entire liquidation reverts. An attacker could deliberately cause a transfer to fail (e.g., by getting blacklisted by USDC) to avoid being liquidated.

Sentiment Update #3

Medium
Business logic

Uniswap contract added to controller doesn't match with function signatures

The UniV3Controller contract hardcoded function signatures for Uniswap V3 router calls, but the router address specified in the deployment documentation uses different signatures due to a parameter change. As a result, any user attempting to interact with Uniswap V3 through the controller would have their calls rejected.

Sentiment Update #3

Medium
Business logic

`CurveLPStaking` Curve's gauge rewards cannot be claimed

The CurveLPStakingController contract only supports deposit and withdraw functions that do not claim rewards, and it lacks a claim_rewards function. As a result, users cannot claim their Curve gauge rewards.

Sentiment Update #3

High
Business logic

`updateState()` should be called in `depositEth()` and `redeemEth()`

The depositEth and redeemEth functions in the LEther contract did not call updateState before changing the liquidity, so the interest rate used for pending interest calculations was based on an outdated utilisation ratio. This could cause borrowers to pay incorrect interest amounts, either overpaying or underpaying, leading to losses for lenders or borrowers.

Sentiment Update #3

High
Smart contracts

CTokenOracle.sol#getCErc20Price contains critical math error

The CTokenOracle contract's price calculation for cTokens incorrectly divides by the underlying token's decimals instead of 10 raised to that power, causing cToken prices to be overvalued by many orders of magnitude. An attacker could deposit a single cToken and drain all liquidity pools.

Sentiment Update #3

High
Access control

Can register a non-allowed collateral as collateral

The protocol did not check whether tokens returned from external interactions were allowed before registering them as collateral. An attacker could use an arbitrary token with an active oracle as collateral, manipulate its price, and drain funds.

Sentiment Update #3

Medium
Business logic

Balances of rebasing tokens aren't properly tracked

The protocol does not properly track balance changes for rebasing tokens while they are held in a borrower's account. As a result, the lender may miss out on gains such as airdrops that should have accrued to them.

Sentiment Update #3

Medium