If Across Bridging fails, all funds intended for bridging will become locked
When the Across bridge deposit fails, refunded funds are sent to the Rebalancer contract, which has no way to recover or forward them, so they become permanently locked. An attacker cannot directly trigger this, but any bridging failure results in lost funds.
0xapple Follow with 10ap17, ExtraCaterpillar and 3 others
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2025-07-malda-judging/issues/1309
Found by
0xapple, 10ap17, ExtraCaterpillar, SafetyBytes, ZeroTrust, cergyk
Summary
If the Across bridging process fails, funds intended for bridging become locked in the Rebalancer contract, making them inaccessible.
Root Cause
When the Across bridge calls the depositV3Now function, the depositor is set as the Rebalancer. According to the Across documentation, if a deposit expires or a fill fails, funds are refunded to the depositor on the origin chain. When the bridging process using Across fails, the refunded assets are returned to the Rebalancer, making them completely locked and inaccessible. From Across docs:
In cases where a slow fill can't or does not happen and a relayer does not fill the intent, the intent expires. Like a slow fill, this expiry must be optimistically verified, which takes a few hours. Once this verification is done, the user is then refunded their money on the origin chain.
As seen bellow, Rebalancer is set as depositor:
function _depositV3Now(bytes memory _message, address _token, uint32 _dstChainId, address _market) private {
DecodedMessage memory msgData = _decodeMessage(_message);
// approve and send with Across
SafeApprove.safeApprove(_token, address(acrossSpokePool), msgData.inputAmount);
IAcrossSpokePoolV3(acrossSpokePool).depositV3Now( // no need for `msg.value`; fee is taken from amount
msg.sender, //depositor
address(this), //recipient
_token,
address(0), //outputToken is automatically resolved to the same token on destination
msgData.inputAmount,
msgData.outputAmount, //outputAmount should be set as the inputAmount - relay fees; use Across API
uint256(_dstChainId),
msgData.relayer, //exclusiveRelayer
msgData.deadline, //fillDeadline
msgData.exclusivityDeadline, //can use Across API/suggested-fees or 0 to disable
abi.encode(_market)
);
}
Internal Pre-conditions
/
External Pre-conditions
/
Attack Path
- The Rebalancer initiates the bridging process using AcrossBridge.
- The depositV3Now function is called with the Rebalancer set as the depositor.
- The bridging process fails.
- Funds are refunded to the Rebalancer(depositor) on the origin chain.
- The funds are now locked, as there is no mechanism for the Rebalancer to use them or return them to the market.
Impact
Funds become completely locked inside the Rebalancer contract and are effectively lost.
PoC
No response
Mitigation
Consider adding helper function in Rebalancer contract, that could rescue returned tokens to the intended market.
Discussion
sherlock-admin2
The protocol team fixed this issue in the following PRs/commits: https://github.com/malda-protocol/malda-lending/pull/126
CergyK
Fix looks good
Barnadrot
Added the suggested changes, good to merge now?
CergyK
Added the suggested changes, good to merge now?
Yes good to merge
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
The Rebalancer contract sets itself as the depositor when calling the bridge, so refunds go to it, but it lacks any mechanism to handle or recover those refunded tokens.
Impact
Funds become completely locked inside the Rebalancer contract and are effectively lost.
What the attacker needed
Bridging via Across fails
The fix
The protocol team fixed this issue by adding a helper function in the Rebalancer contract to rescue returned tokens to the intended market.
How it was found
- The Rebalancer initiates the bridging process using AcrossBridge.
- The depositV3Now function is called with the Rebalancer set as the depositor.
- The bridging process fails.
- Funds are refunded to the Rebalancer (depositor) on the origin chain.
- The funds are now locked, as there is no mechanism for the Rebalancer to use them or return them to the market.
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.
This is about a contract that moves funds between blockchains using a bridge. If the bridge fails, the money is sent back to the contract, but the contract has no function to send it out again, so it gets stuck forever.
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.