The StabilityBranch::initiateSwap
function processes multiple swaps in a batch without cumulative slippage checks, enabling MEV on individual swaps.
Affected Code:
Exploit Scenario:
User submits 10 swaps of 100 USD each with 5% slippage.
Keeper front-runs each swap, extracting 1% per trade.
Total 10% profit from the batch.
User Fund Loss: Up to slippage tolerance per swap.
Severity: Medium (CVSS 6.9).
Manual review
Foundry
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.