in Fees.sol, sellProfits function, there is no minimum output applied, thus open for a large slipage from sandwich attack
The sellProfits
function sets the amountOutMinimum
to 0, allowing any return from the swap to be considered valid. However, this approach can be problematic as it leaves the transaction vulnerable to slippage, especially susceptible to sandwich attacks.
An attacker can exploit this vulnerability by monitoring the mempool for instances of the sellProfits
function being called. They can then execute a sandwich attack, taking advantage of the unfavorable slippage that occurs during the function's execution. This can result in significant losses or profits for the attacker at the expense of the transaction's initiator.
Swap will fulfilled in undesirable price, losing asset
Manual analysis
Protocol need to provide a slippage parameter or minimum amount expected to ensure that the amount of token they receive back is in line with what they expect.
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.