Skip to content
Access control Audit finding Intermediate

Fluid (SUP) can be withdrawn from the Locker while the unlock flag is false

The unlock flag is meant to control when users can unlock SUP from their Locker, but the provideLiquidity() and withdrawLiquidity() functions lack the unlockAvailable modifier. This allows users to withdraw SUP even when the unlock flag is false.

0x73696d616f Follow with algiz and illoy_sci

Originally disclosed on Sherlock

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

Found by

0x73696d616f, algiz, illoy_sci

Summary

The unlock flag is meant to signal that users can unlock SUP from their Locker. However, provideLiquidity() and withdrawLiquidity() are missing this flag, so users can unlock the SUP even with the unlock flag set to false.

Root Cause

https://github.com/sherlock-audit/2025-06-superfluid-locker-system/blob/main/fluid/packages/contracts/src/FluidLocker.sol#L420 https://github.com/sherlock-audit/2025-06-superfluid-locker-system/blob/main/fluid/packages/contracts/src/FluidLocker.sol#L447 Provide liquidity and withdraw liquidity are missing the unlockAvailable modifier.

Internal Pre-conditions

None

External Pre-conditions

None

Attack Path

  1. Locker has the unlock flag set to false.
  2. User can provide liquidity, wait the tax free period and withdraw liquidity, while the unlock flag is still false.

Impact

Users break key functionality.

PoC

None

Mitigation

Add the unlockAvailable modifier to these functions.

Discussion

sherlock-admin2

The protocol team fixed this issue in the following PRs/commits: https://github.com/superfluid-finance/fluid/pull/30

The original report as published on Sherlock, by 0x73696d616f. 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

Impact

Users can break key functionality by unlocking SUP when the unlock flag is false.

What the attacker needed

None

The fix

The protocol team fixed this issue by adding the unlockAvailable modifier to these functions.

How it was found

  1. Locker has the unlock flag set to false.
  2. User can provide liquidity, wait the tax free period and withdraw liquidity, while the unlock flag is still false.

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 has a flag that is supposed to prevent users from taking out a special token (SUP) until a certain condition is met. However, two functions that let users add and remove liquidity do not check this flag, so users can bypass the restriction and take out the token early.

What is Access control?

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.

More by 0x73696d616f

View all

172 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.

Broken access control

The lesson behind this report.

A user can do something their role should not allow: reach an admin function, act on a feature they have not paid for, or skip a permission check. IDOR is the special case where the object belongs to someone else.