Skip to content
Smart contracts Audit finding Beginner

Silent ETH transfer failure in Dispatcher.sol leads to permament freezing of funds

The Dispatcher contract performs a low-level ETH transfer for the TRANSFER_NATIVE command but never checks whether the call succeeded. If the transfer fails, the ETH stays stuck in the contract with no revert or notification, so funds can be permanently frozen.

DSbeX Follow

Originally disclosed on Immunefi

  • Disclosed after under an hour

#43659 [SC-Low] Silent ETH transfer failure in `Dispatcher.sol` leads to permament freezing of funds

Submitted on Apr 9th 2025 at 16:08:11 UTC by @DSbeX for Audit Comp | Spectra Finance

Description

Brief/Intro

The Dispatcher.sol contract doesn't check for success after transferring ETH using the TRANSFER_NATIVE command. This issue causes ETH sent to the contract to become locked if the transfer to the recipient fails, without any notification or error handling. The funds are effectively "stuck" in the contract, which could lead to a poor user experience and the permanent freezing of funds if not detected and addressed.

Vulnerability Details

The issue arises from the lack of success checking after the contract attempts to transfer ETH to the recipient. Specifically, the contract uses a low-level call to transfer ETH via:

JavaScript
(bool success, ) = payable(recipient).call{value: amount}("");

However, the success variable is not checked. If the transfer fails (for example, if the recipient's address is invalid, the contract cannot process the transfer, reverting fallback, gas griefing, etc.), the funds are not returned or reattempted, and no feedback is provided to the user. This results in the ETH being "locked" in the contract, and the transaction silently fails.

This vulnerability occurs in the _dispatch function when handling the TRANSFER_NATIVE command, and can be reproduced when a user sends ETH to the contract and the transfer to the recipient fails without any indication of the failure.

Impact Details

Permanent Freezing of Funds: If a user sends ETH to the Router.sol and the TRANSFER_NATIVE fails silently, the ETH will remain locked in the contract. Since the failure is not detected and there is no mechanism to recover or return the funds, they are permanently frozen unless manually addressed.

User Inconvenience: Affected users may not realize that their funds are locked, leading to confusion and unsatisfaction. This issue could potentially cause users to lose trust in the protocol, especially if they are unaware of the failure and are unable to retrieve their funds.

Reputation Damage: If this issue is not addressed, it could negatively impact the reputation of the Spectra protocol. Users may perceive the platform as unreliable, especially in cases where significant ETH is involved and the failure to transfer goes unnoticed.

References

The missing check - https://github.com/immunefi-team/Spectra-Audit-Competition/blob/1cebdc67a9276fd87105d13f302fd77d000d0c0b/src/router/Dispatcher.sol#L485

Proof of Concept

Proof of Concept

  1. User Attempts to Send ETH to the Router Contract via the TRANSFER_NATIVE Command
  • The user initiates a transaction to send ETH from their wallet to the contract with the intention of transferring the ETH to another address (via the TRANSFER_NATIVE function). However, the recipient address provided is either invalid (e.g., a non-contract address or an address that cannot accept ETH) or some other condition occurs causing the transfer to fail. At this point: 1.1. The user is under the impression that the transaction will successfully transfer 10 ETH to the specified recipient. 1.2. The TRANSFER_NATIVE command is triggered in the Router contract to transfer the specified amount of ETH.
  1. The TRANSFER_NATIVE command in the Dispatcher.sol executes the ETH transfer without checking success. Since no success check is done, the success variable is not evaluated, and the transaction doesn't revert or throw an error, even if the transfer fails.
  2. Silent Failure of the ETH Transfer The transfer attempt fails, but the lack of error handling means the failure is never reported to the user. The user assumes the transaction was successful because there is no notification or revert to indicate any issue. The funds (ETH) are now "stuck" in the Router contract, as there is no fail-safe mechanism, and no further steps in the code are taken to recover or notify the user about the failure.

The original report as published on Immunefi, by DSbeX. Images and videos are our own copies; raw HTML is shown as text. View it on Immunefi.

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 ETH call is ignored, so a failed transfer does not revert the transaction.

Impact

ETH from a failed transfer could remain locked in the contract, causing permanent freezing of funds and griefing of users.

What the attacker needed

User sends ETH via TRANSFER_NATIVE; recipient rejects or cannot accept ETH

The fix

The contract should check the success value of the ETH transfer and revert if it fails, so funds are never silently left behind.

How it was found

  1. A user sends ETH to the router contract using the TRANSFER_NATIVE command.
  2. The Dispatcher executes the ETH transfer to the recipient without checking success.
  3. The transfer fails, but no error is raised and the ETH remains in the contract.

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 someone, the send can fail, for example if the recipient refuses the money. Good code checks the result and undoes the whole transaction if it failed. Here that check is missing, so the money can be left sitting in the contract with nobody told about it.

What is Smart contracts?

Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.

More by DSbeX

View all

11 more disclosed reports, best first.

More from Spectra Finance

View all

The newest disclosed reports for this program.

Similar reports

View all

Same bug class and techniques, clearest first.

Smart contract vulnerabilities

The lesson behind this report.

Flaws in on-chain code that let an attacker drain funds, freeze them or break the protocol's accounting.