Skip to content
Business logic Audit finding Intermediate

Funds get stuck in the bridge if attempted to be deposited into a restricted address

Bridge deposits that target an operator, sub-operator or auxiliary account are rejected by the registry's transfer restriction check, so the L2 deposit reverts. The deposited tokens then remain stuck in the L1 bridge with no way to complete the transfer.

Kalogerone Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

#47351 [SC-Low] Funds get stuck in the bridge if attempted to be deposited into a restricted address

Submitted on Jun 12th 2025 at 22:29:48 UTC by @Kalogerone for IOP | Paradex

Description

Brief/Intro

When depositing from the bridge to an operator, sub-operator or auxiliary account, the transaction will revert and funds will remain stuck in the L1 bridge.

Vulnerability Details

During bridge deposits, the registry gets called to check for restrictions:

        fn _deposit_from_bridge(
            ref self: ComponentState<TContractState>,
            recipient: ContractAddress,
            token_address: ContractAddress,
            amount_u256: u256,
        ) {
            let token_dispatcher = ERC20ABIDispatcher { contract_address: token_address };
            let decimals = token_dispatcher.decimals();

            // Sender is 0 (unknown) for bridge deposits
            self._detect_transfer_restriction(Zero::zero(), recipient, token_address, amount_u256);

However, according to registry, transfers from others going towards operators, sub-operators or auxiliary accounts is restricted and the transaction will revert:

            // Restricted:
            //   8. others -> operator
            //   9. others -> auxiliary
            //   10. others -> sub-operator

Impact Details

Any tokens deposited through the bridge to such accounts will not succeed and tokens will stay locked in L1 bridge.

References

https://github.com/tradeparadex/audit-competition-may-2025/blob/main/paraclear/src/paraclear/paraclear.cairo#L1248

Proof of Concept

Proof of Concept

  1. User deposits to L1 bridge with destination an operator, sub-operator or auxiliary account
  2. L2 bridge fails to complete the deposit
  3. Funds are stuck in L1 bridge

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

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

Likely the bridge deposit path calls the transfer restriction check with a zero sender address, which the registry treats as an untrusted 'other' sender, so deposits to operator, sub-operator and auxiliary accounts are always rejected.

Impact

Tokens sent through the bridge to these restricted account types cannot be delivered and stay locked in the L1 bridge, causing permanent freezing of funds.

What the attacker needed

Bridge deposit to a restricted account type

The fix

The bridge deposit path should be exempted from the sender-based restriction check, or the restriction should be adjusted so bridge deposits to these account types are allowed.

How it was found

  1. A user deposits to the L1 bridge with an operator, sub-operator or auxiliary account as the destination
  2. The L2 bridge fails to complete the deposit
  3. The funds remain stuck in the L1 bridge

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.

A bridge moves tokens from one network to another. Here, the receiving side checks a list of rules before accepting a deposit, and that list forbids sending tokens to certain special accounts. Because the bridge always looks like an unknown sender, every deposit to those accounts is refused, and the tokens are left sitting in the first network's bridge contract.

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 Kalogerone

View all

9 more disclosed reports, best first.

More from Paradex

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.