MorpheusAI

MorpheusAI
Foundry
22,500 USDC
View results
Submission Details
Severity: medium
Invalid

Using `ERC721::_mint()` can be dangerous

Vulnerability Details

Using ERC721::_mint() can mint ERC721 tokens to addresses that don't support ERC721 tokens.

Found in contracts/MOR.sol Line: 25

    ```_mint(account_, amount_);```

Found in contracts/mock/tokens/WStETHMock.sol Line: 16

   ``` _mint(account_, amount_);```

Found in contracts/mock/tokens/WStETHMock.sol Line: 24

    ```_mint(msg.sender, stETHAmount_);```

Impact

ERC721::_mint() can mint ERC721 tokens to addresses which don't support ERC721 tokens

Recommendations

Use _safeMint() instead of _mint() for ERC721.

Updates

Lead Judging Commences

inallhonesty Lead Judge
over 1 year ago
inallhonesty Lead Judge over 1 year ago
Submission Judgement Published
Invalidated
Reason: Lack of quality

Support

FAQs

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