Implement and use _safeMint
rather than _mint
#462
Labels
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
duplicate
This issue or pull request already exists
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
responded
The Holograph team has reviewed and responded
sponsor disputed
Sponsor cannot duplicate the issue, or otherwise disagrees this is an issue
Lines of code
https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/enforcer/HolographERC721.sol#L814-L822
https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/enforcer/HolographERC721.sol#L399-L411
https://github.com/code-423n4/2022-10-holograph/blob/f8c2eae866280a1acfdc8a8352401ed031be1373/contracts/enforcer/HolographERC721.sol#L508-L515
Vulnerability details
Impact
The custom implementation of a ERC721 it's not implement the function
_safeMint
For example: The
safeTransferFrom
send and check theonERC721Received
fallbackProof of Concept
If the beneficiary of the mint it's a contract this asset could be stuck on it, if the contract not be prepare to receive assets
Tools Used
Review
Recommended Mitigation Steps
Implement the function
_safeMint
and use it like in OZ contractsThe text was updated successfully, but these errors were encountered: