When profits are swapped for WETH in Fees.sol, no slippage protection is applied whatsoever when executing the swap.
In Fees.sol#L38, the swap is executed with amountOutMinimum: 0 which opens the door for a front-running attack.
Protocol can incur a loss when selling tokens with no slippage protection.
Manual review
Pass amountOutMin as an argument to sellProfits().
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.