sherlock-audit / 2023-10-aloe-judging

9 stars 6 forks source link

kaysoft - use _safeMint(...) instead of _mint(...) #88

Closed sherlock-admin closed 1 year ago

sherlock-admin commented 1 year ago

kaysoft

medium

use _safeMint(...) instead of _mint(...)

Summary

The ERC721 _mint(...) function is used in the BoostNFT.sol#mint(...) function.

Vulnerability Detail

The ERC721 _mint(...) function is used in the BoostNFT.sol#mint(...) function. this function does not check if the receipient can receive NFT making the sent NFT stuck in the contract forever.

Code Snippet

Tool used

Manual Review

Recommendation

use _safeMint(...) instead of _mint(...)

sherlock-admin2 commented 1 year ago

3 comment(s) were left on this issue during the judging contest.

panprog commented:

invalid, because BoostNFT.sol is out of scope

tsvetanovv commented:

Invalid. See Sherlock docs

MohammedRizwan commented:

invalid as boostNFT.sol is not in scope also invalid per sherlock rule