Pools can be created without initial liquidity
The protocol intended to prevent public pool creation without initial liquidity, but an attacker could use a flash loan to temporarily provide the required liquidity, create the pool, receive LP tokens, and then withdraw the liquidity. This allowed bypassing the intended restriction.
Submitted by cmichel
The protocol differentiates between public pool creations and private ones (starting without liquidity). However, this is not effective as anyone can just flashloan the required initial pool liquidity, call PoolFactory.createPoolADD, receive the LP tokens in addForMember and withdraw liquidity again.
Recommend considering burning some initial LP tokens or taking a pool creation fee instead.
SamusElderg (Spartan) confirmed:
Whilst we were aware of this (more of a deterrent than prevention) contributors have discussed some methods of locking this liquidity in and making it at least flash loan resistant. For instance, a withdraw-lock (global by pool) for 7 days after the pool’s genesis so that no user can withdraw liquidity until 7 days have passed. There are other ideas floating around too; but regardless this issue will be addressed in some way prior to launch
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 pool creation process only checked that liquidity was present at the moment of creation, without preventing its immediate withdrawal, so a flash loan could satisfy the requirement temporarily.
What the attacker needed
Ability to take a flash loan; access to the pool creation function
The fix
The report recommends burning some initial LP tokens or charging a pool creation fee; the project acknowledged the issue and planned to address it before launch.
How it was found
- Obtain the required initial pool liquidity via a flash loan.
- Call PoolFactory.createPoolADD to create the pool.
- Receive the LP tokens in addForMember.
- Withdraw the liquidity again.
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 flash loan is a loan that must be borrowed and repaid within the same transaction. The protocol wanted to stop people from creating pools without putting up their own money, but someone could borrow the needed funds temporarily, create the pool, get the pool's tokens, and then take the money back. This meant the rule was not actually enforced.
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.