Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: high
Invalid

Unstake can lead to loss of NFT

Summary

Streets.unstake() uses transferFrom which can lead to asset loss if the target address cannot receive ERC721.

Vulnerability Details

oneShotContract.transferFrom(address(this), msg.sender, tokenId);

Streets.unstake() uses transferFrom and does not check if the target address can receive ERC721. If it is such an address, then the asset is lost.

Impact

High - asset loss

Tools Used

Manual code inspection.

Recommendations

Use ERC721.safeTransferFrom()

Updates

Lead Judging Commences

inallhonesty Lead Judge about 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.