Skip to content
Smart contracts Audit finding Intermediate

Low-level transfer via call() can fail silently

The TimelockController's _call function uses a low-level call and only checks the success flag, which returns true even if the target account does not exist. An attacker could cause a transfer to a non-existent address to appear successful while no funds are actually sent.

0xDjango Follow

Originally disclosed on Code4rena

Submitted by 0xDjango

TimelockController.sol#L414-L415

In the _call() function in TimelockController.sol, a call is executed with the following code:

function _call(
        bytes32 id,
        uint256 index,
        address target,
        uint256 value,
        bytes memory data
    ) private {
        // solhint-disable-next-line avoid-low-level-calls
        (bool success, ) = target.call{value: value}(data);
        require(success, "TimelockController: underlying transaction reverted");

        emit CallExecuted(id, index, target, value, data);
    }

Per the Solidity docs:

“The low-level functions call, delegatecall and staticcall return true as their first return value if the account called is non-existent, as part of the design of the EVM. Account existence must be checked prior to calling if needed.”

Therefore, transfers may fail silently.

Proof of Concept

Please find the documentation here.

Recommended Mitigation Steps

Check for the account’s existence prior to transferring.

0xca11 (Rolla) confirmed, resolved, and commented:

The TimelockController contract was removed from the protocol.

RollaProject/quant-protocol#90


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

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 contract does not check that the target address exists before making a low-level call, and the EVM returns success for calls to non-existent accounts.

Impact

Transfers may fail silently, meaning funds could be sent to a non-existent address without the contract detecting the failure.

What the attacker needed

None

The fix

The contract should check for the account's existence prior to transferring, but the TimelockController was removed from the protocol.

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 funds using a low-level call. The call reports success even if the recipient address has no code, so the contract thinks the transfer worked when it did not. This means money could be lost or stuck.

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 0xDjango

View all

23 more disclosed reports, best first.

More from Rolla contest

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.