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.
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}("");
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]
Important and valid.
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.