Return value of low level call not checked can cause silent Reverts
The Dispatcher contract's native transfer function ignores the boolean return value of a low-level call, so a failed transfer does not revert the transaction. An attacker could cause the recipient to not receive ether while the transaction still succeeds, leading to lost funds or inconsistent state.
Originally disclosed on Immunefi
- Disclosed after under an hour
#43469 [SC-Low] Return value of low level call not checked can cause silent Reverts
Submitted on Apr 6th 2025 at 21:06:47 UTC by @ZestfulHedgehog609 for Audit Comp | Spectra Finance
- Report ID: #43469
- 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
In the Dispatcher.sol contract ,Return value of low level call not checked
Vulnerability Details
In the Dispatcher.sol contract , in the _dispatch(bytes1 _commandType, bytes calldata _inputs) function , if the command is Commands.TRANSFER_NATIVE, the function does a low level call to the recipient address.The problem is however, after the call is done , its returned boolean value is not checked to see if the transfer went seccessfully or not.If the transfer was not successful, this will cause a silent revert and the transaction is marked a successful even though the recipient did not receive any ether.
Impact Details
If the call fails (e.g., recipient is a contract that reverts or runs out of gas) or (if it is a smart contract wallet that doesn't accept native ether) ,success will be false, but the transaction continues without reverting. This can lead to:
- Lost ETH: The transfer fails, but the rest of the function executes.
- Inconsistent state: The contract assumes the transfer succeeded when it didn’t.
References
Proof of Concept
Proof of Concept
because the competition is not requiring to submit a mandatory Poc rule, iam not submitting a runnable Poc but if the judges require a Poc after validation ,I can definitely submit it.
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 contract does not check the success boolean returned by a low-level call when transferring native ether.
Impact
A failed native transfer could go unnoticed, causing lost ether or inconsistent contract state, though the report rates this as low severity.
What the attacker needed
Recipient rejects ether or call fails
The fix
The contract should check the return value of the low-level call and revert if it is false.
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 smart contract sends ether to another address, it uses a low-level call that returns a true or false to say if it worked. This contract forgets to check that true/false, so even if the send fails, the rest of the transaction carries on as if it succeeded. That means someone could think they sent money but the recipient never gets it.
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.