# TokenBalance limit could be bypassed by deploying TokenManager

Compromised chain can deploy a TokenManager for an attacker-controlled fake token on another chain, creating untracked balance to bridge unlimited tokens into the hub.

- Payout: Audit contest
- Severity: medium
- Program: Axelar Network
- Found by: 0x007
- Disclosed: 2025-01-27
- Write-up quality: 6/10
- Original: https://github.com/code-423n4/2024-08-axelar-network-findings/issues/76
- Library page: https://bugbountylibrary.com/r/c4%3A2024-08-axelar-network%3AM-02
- Tags: area:web3 domain:web3 impact:funds-loss impact:integrity kind:contest platform:code4rena sev:medium tech:evm technique:chained vuln:access-control vuln:business-logic

**Target:** Interchain Token Service (ITS) hub / TokenManager deployment
**Root cause:** Token hub tracks per-chain balances but does not record each tokenId's original chain, so a remote chain can deploy a TokenManager for a token it doesn't originate, making that balance untracked.
**Steps:**
1. Set up chains Ethereum, BNB, WoofChain; TokenA is ITS on Ethereum (origin, untracked) and WoofChain (tracked balance 1000), not on BNB.
2. Compromise WoofChain.
3. Deploy FAKE TokenA on BNB fully owned by attacker (mint UINT256_MAX).
4. From WoofChain deploy a TokenManager to BNB pointing at the FAKE token address.
5. TokenA balance on BNB is now untracked.
6. Bridge a billion TokenA from BNB to WoofChain, raising tracked balance to 1,000,000,1000.
7. Bridge the billion TokenA to Ethereum; hub sees amount under balance and Ethereum mints the billion TokenA.
**How found:** Reasoned about the hub's purpose of limiting damage from a compromised chain and noticed balance tracking only applies to chains where the token isn't the origin, so a rogue TokenManager on a non-origin chain yields untracked balance.
**Exploitation:** Attacker with a compromised connected chain deploys a TokenManager for a self-controlled fake token on another chain, inflating untracked balance, then bridges the inflated amount to the origin chain where the hub mints real tokens.
**Escalation:** Could skip the intermediate chain and bridge directly from BNB to origin Ethereum if an ITS connection exists; also exploitable via specifying attacker minter address once hub stops tracking balances for specified minters.
**Insight:** When a bridge caps per-chain balances to contain compromise, check whether the origin/issuance chain of each asset is pinned; any path letting a non-origin chain register a token manager or minter creates untracked balance that bypasses the cap.

