Skip to content
Business logic Audit finding Intermediate

InterchainProposalExecutor.sol doesn’t support non-evm address as caller or sender

The InterchainProposalExecutor contract stores whitelisted callers and senders as EVM addresses, so non-EVM addresses cannot be whitelisted. This prevents proposals from non-EVM chains from being executed on the EVM chain.

T1MOH Follow with Chom and UniversalCrypto

Originally disclosed on Code4rena

Submitted by T1MOH, also found by Chom and UniversalCrypto

Axelar is supposed to support different chains, not only EVM. And these chains can have a different address standard like Polkadot or Tron. These addresses can’t be whitelisted in InterchainProposalExecutor.sol to execute proposal. Thus, InterchainProposalSender implementation from non-EMV chain can’t interact with InterchainProposalExecutor.sol on the EVM chain.

Proof of Concept

Here, you can see that sourceAddress is represented as address, not string:

    // Whitelisted proposal callers. The proposal caller is the contract that calls the `InterchainProposalSender` at the source chain.
    mapping(string => mapping(address => bool)) public whitelistedCallers;

    // Whitelisted proposal senders. The proposal sender is the `InterchainProposalSender` contract address at the source chain.
    mapping(string => mapping(address => bool)) public whitelistedSenders;

    ...

    /**
     * @dev Set the proposal caller whitelist status
     * @param sourceChain The source chain
     * @param sourceCaller The source caller
     * @param whitelisted The whitelist status
     */
    function setWhitelistedProposalCaller(
        string calldata sourceChain,
        address sourceCaller,
        bool whitelisted
    ) external override onlyOwner {
        whitelistedCallers[sourceChain][sourceCaller] = whitelisted;
        emit WhitelistedProposalCallerSet(sourceChain, sourceCaller, whitelisted);
    }

    /**
     * @dev Set the proposal sender whitelist status
     * @param sourceChain The source chain
     * @param sourceSender The source sender
     * @param whitelisted The whitelist status
     */
    function setWhitelistedProposalSender(
        string calldata sourceChain,
        address sourceSender,
        bool whitelisted
    ) external override onlyOwner {
        whitelistedSenders[sourceChain][sourceSender] = whitelisted;
        emit WhitelistedProposalSenderSet(sourceChain, sourceSender, whitelisted);
    }

Recommended Mitigation Steps

Don’t convert sourceAddress to address, use string instead.

    // Whitelisted proposal callers. The proposal caller is the contract that calls the `InterchainProposalSender` at the source chain.
-   mapping(string => mapping(address => bool)) public whitelistedCallers;
+   mapping(string => mapping(string => bool)) public whitelistedCallers;

    // Whitelisted proposal senders. The proposal sender is the `InterchainProposalSender` contract address at the source chain.
-    mapping(string => mapping(address => bool)) public whitelistedSenders;
+    mapping(string => mapping(string => bool)) public whitelistedSenders;

Assessed type

Invalid Validation

deanamiel (Axelar) confirmed and commented:

Support has been added for non-EVM addresses.

Public PR links: https://github.com/axelarnetwork/interchain-governance-executor/pull/21 https://github.com/axelarnetwork/interchain-governance-executor/pull/33


The original report as published on Code4rena, by T1MOH. Images and videos are our own copies; raw HTML is shown as text. View it on Code4rena.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

How it worked

Root cause

The whitelist mappings use the fixed-size `address` type instead of a flexible `string` type, so non-EVM address formats cannot be stored.

Impact

Proposals originating from non-EVM chains cannot be executed on the EVM chain because their senders cannot be whitelisted.

What the attacker needed

Non-EVM source chain; owner sets whitelist

The fix

The whitelist mappings should store addresses as strings instead of the fixed `address` type; the project confirmed support for non-EVM addresses was added.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this report has not been written yet. The Original tab links to the source.

This contract is meant to let different blockchains talk to each other. Some blockchains use addresses that are not the same format as Ethereum addresses. The contract only accepts Ethereum-style addresses, so it cannot recognise senders from those other chains.

What is Business logic?

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.

More by T1MOH

View all

11 more disclosed reports, best first.

More from Axelar Network

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Business logic flaws

The lesson behind this report.

The application works as coded but not as intended: a negative price, a skipped payment step, a limit that can be crossed.