# Bridge requests to remote chains where interchain tokens are not deployed can result in DoS attacks

Bridging to a chain without a deployed interchain token leaves ITSHub balance uninitialized, enabling front-running to create a balance mismatch and lock funds.

- Payout: Audit contest
- Severity: high
- Program: Axelar Network
- Found by: klau5
- Disclosed: 2025-01-27
- Write-up quality: 7/10
- Original: https://github.com/code-423n4/2024-08-axelar-network-findings/issues/43
- Library page: https://bugbountylibrary.com/r/c4%3A2024-08-axelar-network%3AH-01
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:code4rena sev:high tech:solidity technique:race-window vuln:accounting-error vuln:dos vuln:race-condition

**Target:** Interchain Token Service (ITSHub) smart contract
**Root cause:** update_token_balance silently ignores uninitialized token balances (None), allowing transfers to chains where the interchain token is not yet deployed without updating accounting.
**Steps:**
1. Token deployer requests remote interchain token deployment to chain B.
2. Front-running (1), a request is made to transfer 100 ether of tokens.
3. ITSHub processes InterchainTransfer; balance for chain B remains None (uninitialized).
4. ITSHub then processes DeployInterchainToken, initializing chain B balance to 0.
5. After the remote interchain token deployment is completed on chain B, the attacker executes `execute` to receive the bridged tokens.
6. ITSHub balance is 0 but 100 ether bridged tokens exist on chain B, causing mismatch.
7. If another user bridges tokens from chain A to B, increasing the ITSHub balance, the attacker can bridge back from B to A, reducing the ITSHub balance. If a user then tries to bridge from B to A again, they won't be able to due to insufficient balance in ITSHub.
**How found:** Code review of update_token_balance revealed that None balance is silently ignored, leading to hypothesis of front-running deployment to create accounting mismatch.
**Exploitation:** Attacker front-runs a legitimate remote token deployment with a transfer to the same chain, then after deployment receives tokens on the destination chain despite ITSHub not recording the transfer. Attacker bridges back, reducing ITSHub balance and locking other users' funds.
**Escalation:** Front-running the deployment request creates the uninitialized state; bridging back amplifies the imbalance to lock funds.
**Insight:** When accounting systems silently skip uninitialized states, look for race conditions where initialization can be front-run to create permanent mismatches.

