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

The function `tokenURI` will return URI for non-existent tokens.

Summary

The function tokenURI will return URI for non-existent tokens.

Vulnerability Details

The tokenURI function uses tokenIdToRarity mapping to identify the rarity of an NFT and return the corresponding URI for the token. However, the default value for mapping is 0, which equals COMMON rarity.

Impact

Medium

Tools Used

Manual analysis

Recommendations

Add the require check for the existence of NFT to tokenURI function.

Updates

Lead Judging Commences

inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Non-acceptable severity

Support

FAQs

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