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.
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.
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.