Lack of Price Impact & Slippage Protection in quoteExactInput #6
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
primary issue
Highest quality submission among a set of duplicates
🤖_primary
AI based primary recommendation
🤖_17_group
AI based duplicate group recommendation
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
sufficient quality report
This report is of sufficient quality
unsatisfactory
does not satisfy C4 submission criteria; not eligible for awards
Lines of code
https://github.com/ronin-chain/katana-v3-contracts/blob/03c80179e04f40d96f06c451ea494bb18f2a58fc/src/periphery/lens/MixedRouteQuoterV1.sol#L145
Vulnerability details
Summary
The
quoteExactInput
function in MixedRouteQuoterV1 lacks price impact and slippage protection mechanisms, potentially exposing users to significant financial loss through unfavorable quotes in low liquidity conditions or manipulated pools.The function quotes prices across multiple pools but:
sqrtPriceLimitX96
to 0, effectively removing price boundsCurrent Vulnerable Implementation
Impact
Financial Risk:
Manipulation Vulnerability:
Attack Scenarios
Scenario 1: Low Liquidity Manipulation
Scenario 2: Multi-Hop Price Impact
Fixed Implementation
The fix adds comprehensive price impact and slippage protection while maintaining the core quoting functionality.
Assessed type
Invalid Validation
The text was updated successfully, but these errors were encountered: