The protocol's setRouter function, accessible by the onlyManagement role, allows the management to update the router address and set an unlimited token approval (type(uint256).max) for the new router. If the management address is compromised or operated maliciously, it could approve a malicious router that drains all WETH.
The setRouter function enables management to change the router address and set an unlimited approval for that router to access the contract's assets WETH.
There are no checks or restrictions on the validity of the new router address.
Complete Loss of Funds: All WETH held by the Transmuter contract could be stolen, resulting in severe financial loss for the protocol and its users.
Limit Approvals:
Avoid setting unlimited approvals (type(uint256).max) to any address. Use minimal, transaction-specific approvals instead.
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.