Eggstravaganza

First Flight #37
Beginner FriendlySolidity
100 EXP
View results
Submission Details
Severity: medium
Valid

Not Following SafeMint

Summary

We are not checking whether the receiver contract handles the NFTs or not when minting

Vulnerability Details

EggstravaganzaNFT::mintEgg function is using _mint and for a better safety check we need to use IERC721::_safeMint from openzeppelin

Impact - High

LikelyHood - High

Tools Used

Manul Review

Recommendations

Use ERC721::_safeMint instead of ERC721::_mint

And need to add IERC721Receiver in both EggHuntGame and EggVault contracts

Updates

Lead Judging Commences

m3dython Lead Judge 10 months ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Appeal created

lucky2892000 Submitter
10 months ago
m3dython Lead Judge
10 months ago
m3dython Lead Judge
10 months ago
m3dython Lead Judge 10 months ago
Submission Judgement Published
Validated
Assigned finding tags:

Unsafe ERC721 Minting

Protocol doesn't check if recipient contracts can handle ERC721 tokens

Support

FAQs

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

Give us feedback!