Eggstravaganza

First Flight #37
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: low
Invalid

Lack of Safe Transfer for Withdrawals

Summary

The contract uses transferFrom() for NFT withdrawals, which does not handle ERC721 safety checks.

Vulnerability Details

  • If the receiving address is a contract and does not support ERC721, the NFT might get stuck.

Impact

  • NFTs could become unrecoverable if withdrawn to a non-ERC721-compliant contract.

Tools Used

  • Manual review.

Recommendations

  • Use safeTransferFrom() instead of transferFrom():

    eggNFT.safeTransferFrom(address(this), msg.sender, tokenId);
Updates

Lead Judging Commences

m3dython Lead Judge about 2 months ago
Submission Judgement Published
Invalidated
Reason: Too generic

Support

FAQs

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