ConcentratedLiquidityPool : initialPrice should be checked to be within allowable 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.
Submitted by hickuphh3
Impact
No check is performed for the initial price. This means that it can be set to be below the MIN_SQRT_RATIO or above MAX_SQRT_RATIO (Eg. zero value), which will prevent the usability of all other functions (minting, swapping, burning).
For example, Ticks.insert() would fail when attempting to calculate actualNearestTick = TickMath.getTickAtSqrtRatio(currentPrice);, which means no one will be able to mint positions.
Recommended Mitigation Steps
Check the initialPrice is within the acceptable range, ie. MIN_SQRT_RATIO <= initialPrice <= MAX_SQRT_RATIO
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
How it worked
Root cause
Likely the contract's initialisation function lacks a bounds check on the initial price parameter.
Impact
If the initial price is set outside the allowed range, all pool functions (minting, swapping, burning) become unusable.
What the attacker needed
Ability to set initial price at pool creation
The fix
The initial price should be validated to be within the acceptable range before use.
Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.
Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.
A smart contract for a trading pool lets someone set the starting price when it is created. The code never checks that this price is sensible, so it can be set to zero or another extreme value. That breaks the pool: no one can add funds, trade, or withdraw because the maths fails.
What is Business logic?
The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.