The reclaimIncentive function does not reduce the incentive.rewardsUnclaimed field, allowing repeated claims. An attacker can create their own incentive, wait for expiry, and repeatedly reclaim the same amount until the contract's token balance is drained.
The burn function in ConcentratedLiquidityPool casts a user-supplied uint128 amount to a signed int128 without checking, so a large value like 2^128-1 becomes -1. This lets an attacker mint LP tokens for free and redeem an extremely large amount of pool tokens.
The collect() function in ConcentratedLiquidityPosition.sol calculates yield based on fee growth but does not always collect fees from the pool when the contract has enough balance. This allows a user to collect yield and later burn liquidity, receiving double the yield and diluting other users' rewards.
The mint function of the ConcentratedLiquidityPool contract performed a balance check inside an unchecked block, so adding the amount owed to the existing reserve could wrap around to a small number. An attacker could then mint a very large liquidity position while paying almost nothing, and later burn it to take other liquidity providers' funds.
The RangeFeeGrowth function in a concentrated liquidity pool can revert when calculating fees because the sum of feeGrowthBelow and feeGrowthAbove can exceed the global fee growth. This prevents users from adding or removing liquidity, locking funds in the contract.
The ConcentratedLiquidityPool contract incorrectly updates fee growth outside values when crossing ticks, swapping the token indices for fee accounting. This leads to wrong fee distribution among liquidity providers.
The claimReward function in the ConcentratedLiquidityPoolManager checks a stake.initialized flag that is never set, and also computes 128 minus incentive.secondsClaimed, which almost always underflows and reverts. As a result, users cannot claim their rewards.
The secondsPerLiquidity value is not updated when pool liquidity changes in the mint and burn functions, so it becomes stale. An attacker could exploit this to cause incorrect accounting of time-weighted liquidity, potentially leading to unfair distribution of rewards or other financial discrepancies.
The addIncentive function does not check whether an incentive has already started, allowing an incentive with a non-zero secondsClaimed to be added. This could lead to incorrect reward calculations.
The contract uses its own token balances to pay fees, which can consume incentive tokens if they are the same as token0 or token1. This can cause claimReward and reclaimIncentive to fail due to insufficient balance.
The getTickState() function iterates over all ticks in a concentrated liquidity pool, which can cause it to run out of gas depending on tick spacing. An attacker could call this function to cause a denial of service by exhausting gas.
The mint and burn functions in a concentrated liquidity pool use a strict inequality to check if the current price is within the liquidity range, so when the current price equals the lower bound, liquidity is not added or removed correctly. This can lead to incorrect swap amounts and users losing funds when adding liquidity in that specific range.
The concentrated liquidity pool contract casts the results of its maths helpers from a 256-bit integer down to a 128-bit integer without checking for overflow. An attacker could craft mint parameters so the amount they must pay is truncated to a tiny value while they receive a huge amount of liquidity, which they could then burn to take other users' funds.
The ConcentratedLiquidityPoolManager contract uses positionId instead of incentiveId when looking up incentives in the subscribe, getReward, and claimReward functions. This causes the wrong incentive to be used or the transaction to revert because the incentive is not found.
The report explains that using the nearestTick instead of the actual pool tick for fee growth calculations leads to incorrect initialisation of feeGrowthOutside and ambiguous case handling. This could cause positions to receive wrong fee amounts.
The report describes a possible attack on a staking contract where a user can mint a tight-range liquidity position, claim rewards, then burn and re-mint at a new price to continuously earn incentives without risk. The attacker could steal incentive funds by maintaining a high-liquidity position in the correct price range.
The pool contract does not validate that the initial price is within the allowed range, so it can be set to an extreme value such as zero. This prevents all other functions like minting, swapping, and burning from working.
A user with very large liquidity could have their unclaimed reward calculation exceed the incentive's remaining rewards, causing an integer underflow that prevents them from claiming any rewards. The attacker could not steal funds but could be blocked from receiving owed rewards.
The burn function in the ConcentratedLiquidityPool contract sends out tokens but only reduces the reserves by the fee amounts, not the full token amounts. This leaves the pool's recorded reserves higher than its actual balance, causing subsequent mint and swap operations to fail or require users to pay extra tokens.
The fee growth and seconds-per-liquidity calculations in a concentrated liquidity pool can legitimately produce negative intermediate values, but the code performs these subtractions with checked arithmetic. An attacker could trigger a revert by moving the price so that the computed fee growth inside a range goes negative, causing the affected position operations to fail.
The burn function in the ConcentratedLiquidityPool contract incorrectly updates reserves by subtracting only the fees instead of the full burned amounts, causing reserves to be larger than actual balances. This can break essential functions like swap and mint.
The permit function in TridentNFT fails to check that the recovered address from a signature is not the zero address when the zero address is approved as an operator. If a user accidentally sets the zero address as an operator, anyone can steal tokens by submitting an invalid signature that recovers to the zero address.
ST
Sushi Trident contest phase 2
Medium
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.