Closed code423n4 closed 2 years ago
JMukesh
return value from transfer() should be checked because ,it give the indication wether call is successful or not and different type of token handle the error differently so it is safe to use SafeTransfer()
https://consensys.net/diligence/audits/2021/01/fei-protocol/#unchecked-return-value-for-iweth-transfer-call
https://github.com/code-423n4/2021-09-defiProtocol/blob/52b74824c42acbcd64248f68c40128fe3a82caf6/contracts/contracts/Auction.sol#L101
https://github.com/code-423n4/2021-09-defiProtocol/blob/52b74824c42acbcd64248f68c40128fe3a82caf6/contracts/contracts/Auction.sol#L146
manual review
use safeTransfer()
duplicat of https://github.com/code-423n4/2021-09-defiprotocol-findings/issues/196
Duplicate of #196
Handle
JMukesh
Vulnerability details
Impact
return value from transfer() should be checked because ,it give the indication wether call is successful or not and different type of token handle the error differently so it is safe to use SafeTransfer()
https://consensys.net/diligence/audits/2021/01/fei-protocol/#unchecked-return-value-for-iweth-transfer-call
Proof of Concept
https://github.com/code-423n4/2021-09-defiProtocol/blob/52b74824c42acbcd64248f68c40128fe3a82caf6/contracts/contracts/Auction.sol#L101
https://github.com/code-423n4/2021-09-defiProtocol/blob/52b74824c42acbcd64248f68c40128fe3a82caf6/contracts/contracts/Auction.sol#L146
Tools Used
manual review
Recommended Mitigation Steps
use safeTransfer()