The setRouter function in the StrategyArb contract approves an unlimited allowance for the new router without revoking the previous router's allowance. This can lead to potential security risks if the previous router is compromised or maliciously used.
The previous router can still spend all the tokens when a new router has been setup, which can be exploited if the router is compromised.
If an old router is compromised, it can drained all the tokens.
manual review
implement a removal of the old router approval before granting approval to the new router
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.