Whenever `swapExactTokensForTokens` is called on a router, a deadline is supposed to be set but the deadline set there is block.timestamp. But this is not a valid deadline because it offers no protection.
There are two instances of this bug in StrategyOp
and StrategyArb
looking at StrategyOp
and StrategyArb
they both have _swapUnderlyingToAsset()
which helps in swapping from WETH to ALETH, however whenever this function is called it makes a call to a router with specific params set.
But the issue here is the deadline in the params provided to the router is set to block.timestamp
which offers no real protections as we can see below from StrategyArb
The deadline set offers no protection
manual review
allow sender to provide a real deadline
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.