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.
The Executor contract's failure handler sends funds to a recovery address and marks the transfer ID as used when an arbitrary call fails, preventing retries. In an NFT bridge, this could permanently lock NFTs on the source chain if the destination call fails.
The bridge's transaction handler does not correctly account for fee-on-transfer tokens, applying the fee twice and attempting to transfer the full amount when only a reduced amount is available. This causes the failure handler to revert, potentially locking funds permanently.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
A third-party SponsorVault contract on Optimism could revert when its reimbursement functions are called, causing the entire execute transaction to revert. This would break all cross-chain communication between Optimism and other domains, resulting in a denial of service.
The process() function in PromiseRouter calls a user-supplied callback contract without catching reverts, so if that callback reverts the whole transaction reverts. An attacker could set up a callback that reverts to grief relayers who call process(), causing them to lose gas and not receive the callback fee.
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.
The bridge contract assumed that a full withdrawal from Aave always succeeded, but Aave can return less than requested when liquidity is short. This could leave the bridge with a deficit of underlying tokens, making bridge functionality unavailable.
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.
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.
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.
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.
The withdrawAdminFees function does not reset the adminFees balance after transferring tokens, allowing the admin to withdraw the same fees multiple times. This can slowly drain funds from liquidity providers.
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.
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.
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.
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.
CA
Connext Amarok contest
Medium
Instant results are busy. Press Enter to search every report.
No direct matches. Search every report above, or try a bug class like IDOR or SSRF.