Closed sherlock-admin closed 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
kaysoft
medium
use _safeMint(...) instead of _mint(...)
Summary
The ERC721
_mint(...)
function is used in theBoostNFT.sol#mint(...)
function.Vulnerability Detail
The ERC721
_mint(...)
function is used in theBoostNFT.sol#mint(...)
function. this function does not check if the receipient can receive NFT making the sent NFT stuck in the contract forever.https://github.com/sherlock-audit/2023-10-aloe/blob/main/aloe-ii/periphery/src/boost/BoostNFT.sol#L65
Impact
Loss of NFT when sent to a smart contract that cannot handle NFT
Code Snippet
Tool used
Manual Review
Recommendation
use _safeMint(...) instead of _mint(...)