20,000 USDC
View results
Submission Details
Severity: high
Valid

Selling fees is vulnerable for sandwich attack

Summary

In Fees.sol, sellProfits function is vulnerable for sandwich attack.

Vulnerability Details

sellProfits function can be called by anyone, and also it doesn't require any minimum output amount, so the attacker can try sandwich attack.

Impact

Profits will be sold at lower price.

Tools Used

Manual Review

Recommendations

Update sellProfits to be callable only by admin or owner, also add a new parameter minOutputAmount which will be passed to the SwapRouter.

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.