By setting amountOutMin to 0, the swapRouter is vulnerable to being sandwiched, causing profits to be lost.
lack of a slippage check opens up swaps to sandwich attacks, leading to unprofitable swaps.
Profits lost due to sandwich attacks.
manual review
Do not use 0 for the slippage parameter. Either calculate the amountOutMin off chain using the UniswapV3Quoter contract or use a price oracle to calculate a minimum value on chain. Alternatively, allow users to designate their slippage parameter when initiating a liquidation and pass this in as an argument.
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.