The sellProfits() in Fees.sol is vulnerable to frontrun sandwich attack as amountOutMinimum parameter in ISwapRouter is set to 0 value.
As amountOutMinimum parameter is hardcoded to zero value the ISwapRouter call would be vulnerable for frontrun sandwich attack which will lead to getting an unusually bad price for a trade due to a front running sandwich attack.
In official documentation it is mentioned that it should be set to zero and should be set using SDK or an onchain price oracle .
(https://docs.uniswap.org/contracts/v3/guides/swaps/single-swaps)
Getting an unusually bad price for a trade due to a front running sandwich
Manual Review
Always calculate an estimate return value for amountOutMinimum and not set to 0.
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.