In the first deposit operation, contract should mint a few shares to 0 address to protect the protocol.
When the pool is empty, and first depositor wants to mint some LP shares, the contract will mint the related share amount to the depositor directly. The hacker may make use of this to control this pool.
Possible attack vector is like as below:
Hacker find one empty pool.
Make use of the deposit()/withdraw() operation to make only 1 wei LP share in the pool.
Donation weth & pool tokens to increase LP share's price rapidly.
Most common investors don't have enough funds to mint 1 wei share.
This will block other investors' participation for this pool.
Common investors cannot become the LP holders.
Manual
Mint a few LP shares to address(0) in the first mint.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.