MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: medium
Invalid

Use `safeTransferFrom()` instead of `transferFrom()` to transfer NFTs

Summary

Using transferFrom() can cause the NFT to be permanently lost. The safeTransferFrom() can check that the contract recipients are aware of the ERC721 protocol to prevent tokens from being locked forever.

Vulnerability Details

15 IERC20(_token).transferFrom(msg.sender, _to, _amount);
9 IERC20(params_.tokenIn).transferFrom(msg.sender, address(this), params_.amountIn);
25 stETH.transferFrom(msg.sender, address(this), stETHAmount_);

Tools Used

vs code

Recommendations

To use safeTransferFrom()

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.