`EverclearBridge` does not pull tokens from the Rebalancer, causing all rebalancing operations to fail
The EverclearBridge contract does not transfer tokens from the Rebalancer before attempting to bridge them, so it lacks the tokens needed for bridging. As a result, all rebalancing operations that use this bridge fail.
0xDemon Follow with 0xmechanic, 0xsai and 18 others
Originally disclosed on Sherlock
Source: https://github.com/sherlock-audit/2025-07-malda-judging/issues/177
Found by
0xDemon, 0xmechanic, 0xsai, 10ap17, Angry_Mustache_Man, BusinessShotgun, Cybrid, ExtraCaterpillar, IvanFitro, Sa1ntRobi, SafetyBytes, ZanyBonzy, ZeroTrust, Ziusz, bube, bulgari, dan__vinci, davies0212, maigadoh, oxelmiguel, vangrim
Summary
The EverclearBridge contract does not transfer tokens from the Rebalancer contract before attempting to perform bridging operations. It assumes custody of tokens without actually calling safeTransferFrom to pull tokens from the Rebalancer. As a result, the bridge contract does not have the required tokens, causing all rebalancing attempts to fail.
Root Cause
In EverclearBridge.sol, the sendMsg function does not call IERC20(_token).safeTransferFrom(msg.sender, address(this), params.amount) to transfer tokens from the Rebalancer to itself. Without this transfer, the bridge cannot perform any bridging logic that requires token custody.
Internal Pre-conditions
- The Rebalancer approves the bridge contract to spend tokens.
- The Rebalancer calls
sendMsgon the bridge contract without transferring tokens.
External Pre-conditions
None.
Attack Path
- The Rebalancer approves the bridge contract.
- The bridge contract attempts to perform bridging logic but fails due to lack of token custody.
- No tokens are bridged and rebalancing fails.
Impact
All rebalancing operations using the bridge contract will fail, resulting in a complete denial of service for cross-chain liquidity movement. This can halt protocol operations that depend on rebalancing and may lead to liquidity fragmentation or loss of protocol functionality.
PoC
No response
Mitigation
Update the EverclearBridge contract to call safeTransferFrom and pull the required tokens from the Rebalancer before proceeding with bridging logic.
Discussion
sherlock-admin2
The protocol team fixed this issue in the following PRs/commits: https://github.com/malda-protocol/malda-lending/pull/105
CergyK
Fix looks good. Tokens are now pulled from Rebalancer into EverclearBridge
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
Impact
All rebalancing operations using the bridge contract will fail, causing a complete denial of service for cross-chain liquidity movement and potentially halting protocol operations that depend on rebalancing.
What the attacker needed
Rebalancer approves bridge to spend tokens; Rebalancer calls sendMsg on bridge
The fix
The EverclearBridge contract was updated to call `safeTransferFrom` and pull the required tokens from the Rebalancer before proceeding with bridging logic.
How it was found
- The Rebalancer approves the bridge contract to spend tokens.
- The Rebalancer calls `sendMsg` on the bridge contract without transferring tokens.
- The bridge contract attempts to perform bridging logic but fails due to lack of token custody.
- No tokens are bridged and rebalancing fails.
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 contract is supposed to move tokens between blockchains. Here, the bridge never actually takes the tokens from the contract that asks it to bridge, so it has nothing to send. Every attempt to move tokens therefore fails.
What is DoS?
A request that exhausts resources or crashes a component. Many programs forbid testing it; reports usually show it from code, not by attacking.