The function _performMultiDexSwap(...) repeatedly approves tokens without resetting allowances, which could lead to potential misuse by a malicious or compromised DEX adapter.
The function approves tokens for DEX adapters without resetting these allowances afterward.
A malicious adapter could potentially move more funds than intended if it is untrusted or if there is a bug allowing calls under different parameters.
javascript
If an adapter is compromised or untrusted, it could exploit the unrestricted approvals to transfer more tokens than intended. This could result in unauthorized token drains.
Manual code review
Implement a mechanism to reset token allowances after swaps.
Ensure that only trusted DEX adapters are used.
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.