The FeeDistributionBranch::convertAccumulatedFeesToWeth
contract is vulnerable to slippage exploitation during fee conversion due to the lack of minimum output checks in DEX swaps.
The vulnerable function:
When converting fees to WETH, the contract uses either a custom swap path or a single swap via a DEX adapter. In both cases, the swap functions (executeSwapExactInputSingle or executeSwapExactInput) don't include parameters for minimum output. This means the swap could receive significantly less WETH than the current market rate if the price moves unfavorably between the time the transaction is submitted and when it's executed.
Protocol's collected fees, which should be distributed to stakeholders, are reduced because of these unfavorable swaps.
Manual Review
Update DexSwapStrategy to ensure adapters require amountOutMin and revert if not met:
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.