# Locker owners can leverage low liquidity pools to bypass the tax mechanism

Locker owners manipulate low-liquidity Uniswap v3 pool price before withdrawLiquidity, receiving mostly ETH and bypassing up to 80% SUP exit tax.

- Payout: Audit contest
- Severity: medium
- Program: Superfluid
- Found by: 0rpse
- Disclosed: 2025-06-02
- Write-up quality: 7/10
- Original: https://github.com/sherlock-audit/2025-06-superfluid-locker-system-judging/issues/245
- Library page: https://bugbountylibrary.com/r/sherlock%3A2025-06-superfluid-locker-system%3AM-6
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:sherlock sev:medium tech:evm tech:solidity technique:chained vuln:business-logic vuln:flash-loan vuln:oracle-manipulation

**Target:** FluidLocker.sol withdrawLiquidity / Uniswap v3 pool
**Root cause:** withdrawLiquidity pays out ETH based on current pool price without any manipulation check or TWAP, so a locker owner can skew the pool to mostly ETH before withdrawing.
**Steps:**
1. Pool has 25 ETH / 50,000 SUP at 1 ETH = 2000 SUP, full-range liquidity.
2. Locker owner matches with 25 ETH / 50,000 SUP.
3. Flashloan and swap 1500 ETH for 96,764 SUP; reserves become 1550 ETH / 3235 SUP.
4. Call `withdrawLiquidity`, receiving 775 ETH and 1617.5 SUP back in locker.
5. Swap 46,764 SUP back for 749 ETH, repay flashloan (~0.09% fee).
**How found:** Observed that withdrawLiquidity transfers ETH without considering price manipulation, and reasoned that a low-liquidity pool could be skewed so liquidity is mostly ETH at withdrawal time.
**Exploitation:** Attacker flashloans large ETH, dumps into the low-liquidity pool to push price, withdraws liquidity that now pays out predominantly in ETH, then swaps remaining SUP back to recover ETH and repays the flashloan, netting ~22.65 ETH plus 50K SUP while avoiding the exit tax.
**Insight:** When a contract pays out a proportional share based on spot pool price, check whether an attacker can cheaply skew that price right before withdrawal; low-liquidity full-range pools are the cheapest to manipulate.

