Unchecked low-level ETH transfer in Dispatcher.sol may lead to undetected failures
The Dispatcher contract forwards ETH to a user-supplied recipient using a low-level call but never checks whether the call succeeded. If the recipient rejects the ETH, the transfer fails silently and the funds stay stuck in the router with no way to recover them.
- Disclosed after under an hour
#43987 [SC-Low] Unchecked low-level ETH transfer in `Dispatcher.sol` may lead to undetected failures
Submitted on Apr 15th 2025 at 11:22:17 UTC by @DSbeX for Audit Comp | Spectra Finance
- Report ID: #43987
- Report Type: Smart Contract
- Report severity: Low
- Target: https://github.com/immunefi-team/Spectra-Audit-Competition/blob/main/src/router/Dispatcher.sol
- Impacts:
Description
Brief/Intro
The TRANSFER_NATIVE command in the Dispatcher.sol allows users to forward ETH to any arbitrary address via a low-level .call{value: amount}(""). However, if the recipient address is a contract that does not support receiving ETH(or any other reason of which the transaction will revert), the call fails silently and user funds are locked in the contract. There is no validation of the recipient beforehand, nor is the failure communicated to the caller.
Vulnerability Details
In the _dispatch() function of the Dispatcher.sol , the following command is handled:
} else if (command == Commands.TRANSFER_NATIVE) {
(address recipient, uint256 amount) = abi.decode(_inputs, (address, uint256));
(bool success, ) = payable(recipient).call{value: amount}("");
// success is not checked
}
The failure of .call is not tracked or surfaced in any way. From the user’s perspective, ETH is sent into the Router.sol and expected to be delivered — but no indication is given if the transfer fails.
While this is considered a user input error, the contract does not enforce or warn about this scenario(so the user expects it to revert if the transaction doesn't execute) — leading to silent loss of funds, even if not truly frozen or maliciously mishandled.
Impact Details
This applies to any user sending ETH through a TRANSFER_NATIVE command to a recipient that rejects ETH or causes the .call to fail for some reason:
Unexpected behavior: ETH silently fails to deliver, but execution continues.
Poor user experience: users are not alerted and all their funds that were meant for this transaction are locked
No mechanism is provided for recovery or refund.
References
_dispatch() in Dispatcher.sol:
Proof of Concept
Proof of Concept
- User sends ETH via TRANSFER_NATIVE to a non-payable contract.
- ETH is accepted into the Router via msg.value.
- .call to the recipient fails silently. (because of the non-payable contract)
- Execution continues, user is unaware of failure.
- ETH remains in the Router with no recovery method.
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 return value of the low-level call is discarded, so a failed ETH transfer does not revert the transaction.
Impact
ETH meant for a recipient that rejects it could be silently left in the router, with no mechanism for recovery or refund.
What the attacker needed
User sends ETH via TRANSFER_NATIVE; recipient rejects ETH or call fails
The fix
The contract should check the success flag of the low-level call and revert when the transfer fails, so the user is alerted instead of losing funds silently.
How it was found
- User sends ETH via TRANSFER_NATIVE to a non-payable contract.
- ETH is accepted into the Router via msg.value.
- .call to the recipient fails silently. (because of the non-payable contract)
- Execution continues, user is unaware of failure.
- ETH remains in the Router with no recovery method.
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 smart contract can send ETH to another address with a low-level call, which reports back whether it worked. Here the code ignores that report, so when the recipient refuses the money the transaction still looks successful. The ETH is then left sitting in the router contract, and the user has no obvious way to get it back.
What is Smart contracts?
Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.