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.
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
- Report ID: #47351
- Report Type: Smart Contract
- Report severity: Low
- Target: https://github.com/tradeparadex/audit-competition-may-2025/tree/main/paraclear
- Impacts:
- Permanent freezing of funds
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
Proof of Concept
Proof of Concept
- User deposits to L1 bridge with destination an operator, sub-operator or auxiliary account
- L2 bridge fails to complete the deposit
- Funds are stuck in L1 bridge
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
- A user deposits to the L1 bridge with an operator, sub-operator or auxiliary account as the destination
- The L2 bridge fails to complete the deposit
- 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.