Axelar Network - qpzm's results

Decentralized interoperability network.

General Information

Platform: Code4rena

Start Date: 12/07/2023

Pot Size: $80,000 USDC

Total HM: 11

Participants: 47

Period: 9 days

Judge: berndartmueller

Total Solo HM: 1

Id: 260

League: ETH

Axelar Network

Findings Distribution

Researcher Performance

Rank: 29/47

Findings: 1

Award: $94.77

🌟 Selected for report: 0

🚀 Solo Findings: 0

Findings Information

Labels

bug
2 (Med Risk)
satisfactory
duplicate-319

Awards

94.7708 USDC - $94.77

External Links

Lines of code

https://github.com/code-423n4/2023-07-axelar/blob/1e2acdbd9aa992d10e68f35647db9f080a169252/contracts/interchain-governance-executor/InterchainProposalExecutor.sol#L76

Vulnerability details

Impact

_executeProposal cannot send ether if call.value is not zero.

(bool success, bytes memory result) = call.target.call{ value: call.value }(call.callData);

https://github.com/code-423n4/2023-07-axelar/blob/1e2acdbd9aa992d10e68f35647db9f080a169252/contracts/interchain-governance-executor/InterchainProposalExecutor.sol#L76

Proof of Concept

I add one it block after test/interchain-governance-executor/InterchainProposalExecutor.js#26.

describe('_execute', function () {
  it('cannot receive ether to send in _executeProposal', async function () {
    await signer.sendTransaction({
      to: executor.address,
      value: ethers.utils.parseEther('1')
    });
  });
$ yarn hardhat test --grep "cannot receive ether to send in _executeProposal"
1) Interchain Proposal Executor
       _execute
         cannot receive ether to send in _executeProposal:
     Error: cannot estimate gas; transaction may fail or may require manual gas limit [ See: https://links.ethers.org/v5-errors-UNPREDICTABLE_GAS_LIMIT ] (reason="Transaction reverted: function selector was not recognized and there's no fallback nor receive function",

Tools Used

Manual review.

Add receive() in InterchainProposalExecutor.sol.

+ receive() external payable {}

Assessed type

ETH-Transfer

#0 - c4-pre-sort

2023-07-29T00:04:46Z

0xSorryNotSorry marked the issue as duplicate of #319

#1 - c4-judge

2023-09-08T11:00:24Z

berndartmueller marked the issue as satisfactory

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax © 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter