You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Vulnerability Details:
The deposit function does not check if the msg.sender is the zero address (address(0)). Although it is unlikely in practice, if this occurs, the contract would mint an NFT to the zero address, potentially leading to issues in tracking ownership.
Proof of Code:
_mint(msg.sender, newTokenId);
Impact:
The contract would mint an NFT to the zero address, potentially leading to issues in tracking ownership.
Recommendation
Add a check to ensure that msg.sender is not the zero address before minting the NFT.
Severity: Medium
Vulnerability Details:
The deposit function does not check if the msg.sender is the zero address (address(0)). Although it is unlikely in practice, if this occurs, the contract would mint an NFT to the zero address, potentially leading to issues in tracking ownership.
Proof of Code:
Impact:
The contract would mint an NFT to the zero address, potentially leading to issues in tracking ownership.
Recommendation
Add a check to ensure that msg.sender is not the zero address before minting the NFT.
The text was updated successfully, but these errors were encountered: