Closed code423n4 closed 1 year ago
0xSorryNotSorry marked the issue as primary issue
deanamiel marked the issue as sponsor disputed
This is intended behavior since callContractWithToken should do nothing at this point in time.
berndartmueller marked the issue as unsatisfactory: Invalid
Lines of code
https://github.com/code-423n4/2023-07-axelar/blob/2f9b234bb8222d5fbe934beafede56bfb4522641/contracts/its/interchain-token-service/InterchainTokenService.sol#L575 https://github.com/code-423n4/2023-07-axelar/blob/2f9b234bb8222d5fbe934beafede56bfb4522641/contracts/gmp-sdk/executable/AxelarExecutable.sol#L43
Vulnerability details
Impact
InterchainTokenService doesn‘t support executeWithToken, but the call succeeds silently. This will cause the user's funds to be stuck in the contract
Proof of Concept
In AxelarExecutable, there are two call methods: execute and executeWithToken. InterchainTokenService inherits AxelarExecutable. However, executeWithToken is not overwritten, resulting in a silent success call. The correct approach is to prohibit calls to executeWithToken, like InterchainGovernance:
The process is as follows:
Tools Used
Manual review
Recommended Mitigation Steps
Assessed type
Context