Skip to content

Code4rena

Connext Amarok contest

Every publicly disclosed report for Connext Amarok contest and what kind of bugs they were.

disclosed reports
33
most reported class
Business logic
bug classes found
5
first disclosure
2021
Find Connext Amarok contest on bugbounty.fyi Current scope, rewards and status, if it runs a public program.

Disclosed reports

Newest first. Only what Connext Amarok contest chose to make public.

Business logic

In execute() the amount routers pay is what user signed, but in _reconcile() the amount routers get is what nomad sends and these two amounts are not necessary equal because of slippage in original domain

The bridge contract calculates the transfer ID using the user-signed amount, but the actual bridged amount can differ due to slippage or deflationary tokens. This mismatch allows an attacker to make routers provide more liquidity than they will be credited for, potentially draining routers on low-liquidity tokens.

Connext Amarok contest

High
Business logic

Did Not Approve To Zero First Causing Certain Token Transfer To Fail

The smart contract functions _reconcileProcessPortal and _swapAssetOut call safeIncreaseAllowance or safeApprove without first resetting the allowance to zero. For tokens like USDT that require a zero allowance before changing it, these calls revert, disrupting the AAVE repayment process and potentially causing token transfers to fail.

Connext Amarok contest

Medium
Business logic

Malicious relayer could exploit sponsor vaults

The SponsorVault reimburses relayers for fees they pay, but a malicious relayer could relay many transactions at the maximum reimbursable fee and receive both the reimbursement and the fee they paid themselves, draining the vault. The text claims this could leak sponsors' funds, though the team disputed it and the judge downgraded it to medium.

Connext Amarok contest

Medium
Business logic

Relayer Will Not Receive Any Fee If execute Reverts

The BridgeFacet.execute function sets the relayer address before performing a token swap that can revert due to slippage, so if the swap fails the relayer receives no fee despite paying gas. An attacker could cause slippage to change while a relayer's transaction is pending, making the relayer lose funds.

Connext Amarok contest

Medium
Business logic

In reimburseLiquidityFees() of SponserVault contract swaps tokens without slippage limit so its possible to perform sandwich attack and it create MEV

The reimburseLiquidityFees function in the SponsorVault contract calls tokenExchange.swapExactIn without specifying a minimum output amount (slippage limit). An attacker could sandwich the swap to manipulate the exchange rate and cause the contract to receive fewer tokens, profiting at the contract's expense.

Connext Amarok contest

Medium
Business logic

Repaying AAVE Loan in _local rather than adopted asset

The repayAavePortal function uses the local asset instead of the adopted asset when repaying an Aave loan, because the swapped adopted asset is ignored. This could break the liquidity portal if routers repay with a token of different denomination, potentially making the protocol insolvent.

Connext Amarok contest

Medium
Smart contracts

PortcalFacet.repayAavePortal() can trigger an underflow of routerBalances

The repayAavePortal function subtracts a user-controlled amount from the caller's router balance inside an unchecked block, so a caller can make the balance wrap around and become arbitrarily large. An attacker could then use that inflated balance to draw funds from the protocol.

Connext Amarok contest

High
Business logic

Malicious Relayer can Replay Execute Calldata on Different Chains Causing Double-Spend Issue

A malicious relayer could take a fast-transfer execute calldata intended for one chain and replay it on another chain where the same canonical token is registered, because the destination domain was not validated against the current chain. This allowed the attacker to receive the bridged funds on multiple chains, draining router liquidity.

Connext Amarok contest

High
Business logic

LibDiamond.diamondCut() should check diamondStorage().acceptanceTimes[keccak256(abi.encode(_diamondCut))] != 0

The diamondCut function checks that the acceptance time is less than the current block timestamp, but a rescinded cut sets the acceptance time to zero, which passes the check. Also, if no proposal was ever made, the acceptance time is zero and the check passes. This allows a malicious or compromised governance to bypass the delay and execute arbitrary cuts immediately.

Connext Amarok contest

Medium
Access control

Diamond upgrade proposition can be falsified

The proposal ID for a Diamond upgrade was computed only from facet changes, ignoring the initialisation function and its calldata. A malicious or compromised admin could therefore execute arbitrary code via delegatecall while the proposal appeared to match the approved changes.

Connext Amarok contest

Medium
Business logic

Incorrect Adopted mapping on updating wrapper token

When an admin replaces a wrapper token via setWrapper, the canonicalToAdopted mapping for existing assets still points to the old wrapper. This could cause compatibility issues and prevent correct updates to the adopted mapping.

Connext Amarok contest

Medium
Access control

Router Owner Could Be Rugged By Admin

When the Connext admin removes a router, the contract erases the router's owner information, so the owner can no longer withdraw their liquidity because the ownership check fails. This locks the router owner's funds in the contract.

Connext Amarok contest

Medium
Business logic

Malicious Relayer Could Cause A Router To Provide More Liquidity Than It Should

A malicious relayer could rearrange the list of routers in a transfer request so that one router is forced to provide more liquidity than the sequencer intended, while still passing signature checks. This could overwrite the sequencer's decision and grief other routers.

Connext Amarok contest

Medium
Business logic

division rounding error in _handleExecuteLiquidity() and _reconcile() make routerBalances and contract fund balance to get out of sync and cause fund lose

A division rounding error in the liquidity handling and reconciliation functions causes the sum of router balances to drift from the contract's actual token balance. An attacker could exploit this to cause small fund losses or temporary bad debt, especially with low-precision tokens.

Connext Amarok contest

Medium
Business logic

Swaps done internally will be not be possible

The internal swap path in the bridge contract passed the wrong arguments to the internal swap function, so the token ownership check could never pass. As a result, swaps that relied on an internal pool would always fail rather than execute.

Connext Amarok contest

Medium
Business logic

Missing whenNotPaused modifier

Two functions in StableSwapFacet, swapExactOut and addSwapLiquidity, lack the whenNotPaused modifier that other swap functions have. An attacker could still swap or add liquidity while the contract is paused, defeating the emergency stop.

Connext Amarok contest

Medium
Business logic

Router Owner Could Steal All The Funds Within SponsorVault

A router owner could exploit the sponsor vault's fee reimbursement by making large transfers between their own wallets, ensuring only their router provides liquidity and then claiming the subsidy. This allows them to siphon funds from the SponsorVault.

Connext Amarok contest

High
Business logic

Tokens with decimals larger than 18 are not supported

The code assumes all tokens have 18 decimals, so tokens with more than 18 decimals cause underflow and reverts in price and swap functions. An attacker could not directly exploit this, but it breaks functionality for such tokens.

Connext Amarok contest

Medium
Business logic

Malicious Relayers Could Favor Their Routers

A malicious relayer could replace the routers and signatures in the execute calldata with its own router, allowing it to earn liquidity fees instead of the originally selected router. The sanity check only verifies that the router matches the signature, not that the router was the one chosen by the sequencer.

Connext Amarok contest

Medium
Business logic

Router liquidity on receiving chain can be double-dipped by the user

During cross-chain fulfilment, if a user's contract at the callTo address causes both addFunds and execute to revert, the fallback transfer to the receiving address happens twice, letting the user receive double the intended amount and draining router liquidity.

Connext Amarok contest

High
Business logic

Expired transfers will lock user funds on the sending chain

The cancelling relayer is paid in the wrong asset on the sending chain, so if that asset is not present, the cancel transaction reverts and user funds remain locked. An attacker could exploit this to lock funds permanently if the user relies on a relayer.

Connext Amarok contest

High
Access control

Anyone can arbitrarily add router liquidity

The addLiquidity function allows anyone to add liquidity on behalf of a router by transferring ERC20 tokens from the router's address, assuming the router has approved the contract. This could arbitrarily increase the router's exposure to protocol risk without authorization.

Connext Amarok contest

High
Business logic

Malicious router can block cross-chain-transfers

A router could agree off-chain to a cross-chain transfer, causing the user to lock funds on the sending chain, but then fail to respond or respond with a zero-amount transaction. This locks the user's funds for the entire expiry period while the router risks nothing.

Connext Amarok contest

Medium