Skip to content
Smart contracts Audit finding Intermediate

Unchecked return value of low-level call()/delegatecall()

The smart contracts use low-level call() and delegatecall() to send Ether but do not check the returned success boolean. If a call fails, the transaction continues without reverting, so the intended recipient may not receive funds while the contract's state still records the payment as complete.

Hound Follow

Originally disclosed on Code4rena

Submitted by Hound

Note: this finding was reported via the winning Automated Findings report. It was declared out of scope for the audit, but is being included here for completeness.

The call/delegatecall function returns a boolean value indicating whether the call was successful. However, it is important to note that this return value is not being checked in the current implementation.

As a result, there is a possibility that the call wasn’t successful, while the transaction continues without reverting.

There are 11 instances of this issue.

File: smart-contracts/AuctionDemo.sol

113: 		                (bool success, ) = payable(owner()).call{value: highestBid}("");

116: 		                (bool success, ) = payable(auctionInfoData[_tokenid][i].bidder).call{value: auctionInfoData[_tokenid][i].bid}("");

128: 		        (bool success, ) = payable(auctionInfoData[_tokenid][index].bidder).call{value: auctionInfoData[_tokenid][index].bid}("");

139: 		                (bool success, ) = payable(auctionInfoData[_tokenid][i].bidder).call{value: auctionInfoData[_tokenid][i].bid}("");

[113, 116, 128, 139]

File: smart-contracts/MinterContract.sol

434: 		        (bool success1, ) = payable(collectionArtistPrimaryAddresses[colId].primaryAdd1).call{value: artistRoyalties1}("");

435: 		        (bool success2, ) = payable(collectionArtistPrimaryAddresses[colId].primaryAdd2).call{value: artistRoyalties2}("");

436: 		        (bool success3, ) = payable(collectionArtistPrimaryAddresses[colId].primaryAdd3).call{value: artistRoyalties3}("");

437: 		        (bool success4, ) = payable(tm1).call{value: teamRoyalties1}("");

438: 		        (bool success5, ) = payable(tm2).call{value: teamRoyalties2}("");

464: 		        (bool success, ) = payable(admin).call{value: balance}("");

[434, 435, 436, 437, 438, 464]

File: smart-contracts/RandomizerRNG.sol

82: 		        (bool success, ) = payable(admin).call{value: balance}("");

[82]

a2rocket (NextGen) confirmed

0xsomeone (judge) commented:

Important and valid.


The original report as published on Code4rena, by Hound. 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 code does not check the boolean success value returned by low-level call() and delegatecall() before continuing execution.

What the attacker needed

A smart contract using low-level calls; a call that fails (e.g., recipient rejects Ether)

The fix

The contract should check the success boolean returned by each low-level call and revert the transaction if the call fails.

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.

In Ethereum smart contracts, a low-level call is like sending a payment and getting a receipt that says 'success' or 'failure'. This code ignores that receipt, so if the payment fails, the contract still acts as if it worked. That means someone might not get their money even though the contract thinks it paid them.

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 Hound

View all

2 more disclosed reports, best first.

More from NextGen

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.