Skip to content
Business logic Audit finding Advanced

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

Locker owners can manipulate the price of a low-liquidity Uniswap v3 pool to withdraw their liquidity mostly in ETH, bypassing the tax on SUP token withdrawals. This allows them to avoid a tax that can reach 80%.

0rpse Follow with 0x73696d616f

Originally disclosed on Sherlock

Source: https://github.com/sherlock-audit/2025-06-superfluid-locker-system-judging/issues/245

This issue has been acknowledged by the team but won't be fixed at this time.

Found by

0rpse, 0x73696d616f

Summary

Locker owners can match their SUP tokens with ETH and deploy liquidity into uniswapv3 pools, after doing this for 6 months they will get their SUP without paying tax, otherwise this tax can get up to 80%. The problem is that FluidLocker.sol::withdrawLiquidity transfers ETH to locker owners without considering price manipulations, because of this a locker owner can manipulate a pool's price such that liquidity will mostly consist of ETH and withdraw their liquidity in ETH, without paying taxes.

Root Cause

In FluidLocker.sol::withdrawLiquidity there is no check against price manipulations https://github.com/sherlock-audit/2025-06-superfluid-locker-system/blob/main/fluid/packages/contracts/src/FluidLocker.sol#L447-L485

Internal Pre-conditions

N/A

External Pre-conditions

  1. Pool's liquidity is "low"

Attack Path

Assuming 1 ETH = 2000 SUP, and the initial liquidity is spread across the whole range, since this would be more resistant to price manipulation:

  1. Pool's reserves consist of 25 ETH and 50_000 SUP
  2. Locker owner matches this with 25 ETH and 50_000 SUP
  3. Locker owner flashloans and swaps 1500 ETH for 96764 SUP, pool reserves are 1550 ETH - 3235 SUP
  4. Locker owner withdraws liquidity, getting 775 ETH paid to his address and 1617.5 SUP back in the locker
  5. Locker owner swaps 46764 SUP of the 96764 SUP he had in the first swap, getting 749 ETH back

In the end locker owner walks away with 22.65 ETH after paying the flashloan back with 0.09% fees, and 50K SUP in his address and 1617 SUP locked.

Impact

Depending on the liquidity present in the pools, a locker owner can bypass the tax mechanism with miniscule amounts lost compared to the normal exits present in the protocol.

Mitigation

Either make sure there is enough liquidity in the pools or use TWAP oracle to see if the price has been pushed to extreme while withdrawing liquidity.

The original report as published on Sherlock, by 0rpse. Images and videos are our own copies; raw HTML is shown as text. View it on Sherlock.

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 withdrawLiquidity function does not check whether the pool's price has been manipulated before allowing liquidity withdrawal.

Impact

Depending on pool liquidity, a locker owner could bypass the tax mechanism with minimal losses compared to normal exits.

What the attacker needed

Low liquidity in the pool; locker owner has SUP tokens and ETH; access to flashloan

The fix

The protocol should ensure sufficient liquidity in pools or use a TWAP oracle to detect extreme price manipulation during withdrawals.

How it was found

  1. The pool has low liquidity, e.g., 25 ETH and 50,000 SUP.
  2. The locker owner adds matching liquidity of 25 ETH and 50,000 SUP.
  3. The locker owner flashloans a large amount of ETH and swaps it for SUP, drastically changing the pool's reserves.
  4. The locker owner withdraws their liquidity, receiving mostly ETH and some SUP.
  5. The locker owner swaps some of the acquired SUP back to ETH to repay the flashloan, keeping a profit.

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.

When you add money to a trading pool, you get a share of the pool's tokens back when you withdraw. If the pool has very little money in it, someone can temporarily trade a huge amount to change the ratio of tokens, then withdraw and get mostly one type of token. This report shows a way to use that trick to avoid a tax on a special token.

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.

More by 0rpse

View all

23 more disclosed reports, best first.

More from Superfluid Locker System

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.