Description:
The mintEgg() function in the EggstravaganzaNFT contract does not validate the uniqueness of the tokenId being minted or ensure that the recipient address is valid. This could lead to duplicate token IDs being minted or tokens being sent to the zero address, which would result in lost NFTs.
Impact:
High - Duplicate token IDs could compromise the integrity of the NFT collection, and minting to the zero address would result in irretrievable NFTs.
Proof of Concept:
Recommended Mitigation:
Update the mintEgg() function to include the following checks:
Ensure the recipient address is not the zero address.
Validate that the tokenId does not already exist.
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.