In Fees.sol
, sellProfits
function is vulnerable for sandwich attack.
sellProfits
function can be called by anyone, and also it doesn't require any minimum output amount, so the attacker can try sandwich attack.
Profits will be sold at lower price.
Manual Review
Update sellProfits
to be callable only by admin or owner, also add a new parameter minOutputAmount
which will be passed to the SwapRouter.
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.