Lack of ETH Success Transfer Checks in Dispatcher.sol
The Dispatcher contract's native ETH transfer command uses a low-level call but ignores the returned success flag. A transfer that fails (for example because the recipient rejects ETH) would go unnoticed, so the router continues as if payment succeeded while the recipient receives nothing.
Originally disclosed on Immunefi
- Disclosed after under an hour
#43912 [SC-Low] Lack of ETH Success Transfer Checks in Dispatcher.sol
Submitted on Apr 14th 2025 at 07:17:05 UTC by @Allen_George08 for Audit Comp | Spectra Finance
- Report ID: #43912
- Report Type: Smart Contract
- Report severity: Low
- Target: https://github.com/immunefi-team/Spectra-Audit-Competition/blob/main/src/router/Dispatcher.sol
- Impacts:
- Contract fails to deliver promised returns, but doesn't lose value
Description
Brief/Intro
The Dispatcher.sol has a command TRANSFER_NATIVE which is transferring native eth using a low-level call which returns a value. After the call the contract doesn't have a succcess check which will lead to un-noticed failed transfer.
Vulnerability Details
Here's a snippet from the Dispatcher.sol contract.
else if (command == Commands.TRANSFER_NATIVE) {
(address recipient, uint256 amount) = abi.decode(_inputs, (address, uint256));
(bool success,) = payable(recipient).call{value: amount}("");
//@audit lacks success checks
} else {
revert InvalidCommandType(command);
}
This low-level call can fail silently for a number of reasons:
- The recipient contract reverts in its fallback/receive function.
- Insufficient gas provided for execution.
- Transfers to smart contracts that do not accept ETH.
- Transfer limits or blocked addresses enforced by recipient logic.
Because the return value (success) is ignored, such failures would go unnoticed and create inconsistencies in user expectations vs. actual contract state.
Impact Details
- Silent reverting of calls.
- The vulnerability doesn't cause a damage to users or protocol but fails to deliver promised returns i.e It falls under the
Lowseverity category of Immunefi.
Proof of Concept
Proof of Concept
- A transfer native eth via
Router::execute()is executed and sends commands and funds in. - The recipient is a contract that rejects ETH transfers (e.g., has no receive() or fallback() and doesn't implement payable).
- The call fails internally, but since success isn’t checked, the router logic continues as if the transfer succeeded.
- The recipient receives nothing, yet the system may assume payment has occurred.
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 return value of the low-level ETH transfer call is ignored, so a failed transfer does not revert or get handled.
Impact
Failed ETH transfers are silently ignored, so the protocol may fail to deliver promised returns, though the report states no funds are lost.
What the attacker needed
Recipient rejects ETH (e.g. no receive function)
The fix
The transfer should be fixed by checking the returned success value and reverting when the call fails.
How it was found
- A user calls the router's execute function with a native ETH transfer command and funds.
- The recipient is a contract that rejects ETH transfers.
- The internal call fails but the missing success check lets the router continue.
- The recipient receives nothing while the system may assume payment occurred.
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.
When a contract sends ETH to another address, the send can fail, for example if the receiver is a contract that refuses money. The code here asks whether the send worked but never looks at the answer, so a failed payment is treated as a success. Nothing is stolen, but the system can believe money was paid when it was not.
What is Smart contracts?
Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.