# If Across Bridging fails, all funds intended for bridging will become locked

Across bridge refunds failed deposits to the Rebalancer contract, which lacks a rescue function, locking the funds permanently.

- Payout: Audit contest
- Severity: medium
- Program: Malda
- Found by: 0xapple
- Disclosed: 2025-07-22
- Write-up quality: 6/10
- Original: https://github.com/sherlock-audit/2025-07-malda-judging/issues/1309
- Library page: https://bugbountylibrary.com/r/sherlock%3A2025-07-malda%3AM-15
- Tags: area:web3 domain:web3 impact:funds-loss kind:contest platform:sherlock sev:medium tech:solidity technique:source-review vuln:business-logic

**Target:** AcrossBridge.sol depositV3Now in Rebalancer contract
**Root cause:** The Rebalancer sets itself as the depositor in depositV3Now; on bridge failure, Across refunds funds to the depositor (Rebalancer), but the contract has no function to recover or forward these tokens.
**Steps:**
1. Rebalancer calls `_depositV3Now` which invokes `acrossSpokePool.depositV3Now` with `msg.sender` as depositor and `address(this)` as recipient.
2. The Across deposit fails or expires without a fill.
3. Across refunds the input tokens to the depositor, i.e., the Rebalancer contract.
4. The refunded tokens remain stuck in the Rebalancer because no rescue or sweep function exists.
**How found:** Code review of the AcrossBridge integration revealed that the depositor is set to the Rebalancer, and cross-referencing Across documentation showed refunds go to the depositor on failure; the absence of a recovery function confirmed the lock.
**Exploitation:** No attacker action needed; the flaw triggers automatically when an Across bridge deposit fails, causing permanent lock of the refunded amount.
**Insight:** When integrating with bridges that refund to the depositor on failure, ensure the depositor is an address capable of handling refunds (e.g., the original user or a contract with a rescue mechanism).

