the function setRouter(address _router) external
is called by the manager to set the router address
The previously approved tokens are not automatically revoked if the router address is updated. This creates a risk where, if the old router contract is vulnerable or is controlled by a malicious actor, it could still access and transfer the underlying tokens due to the existing approval.
changing routers does not revoke the tokens approved.
leaving the changed router with token approval creates the risk of underlying token theft.
Manual audit.
consider revoking the approved tokens when the router is changed
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.