Use safeTransferFrom() instead of transferFrom() for outgoing erc721 transfers #217
Labels
bug
Something isn't working
downgraded by judge
Judge downgraded the risk level of this issue
duplicate-220
grade-b
QA (Quality Assurance)
Assets are not at risk. State handling, function incorrect as to spec, issues with clarity, syntax
Lines of code
https://github.com/code-423n4/2022-12-forgeries/blob/main/src/VRFNFTRandomDraw.sol#L187
https://github.com/code-423n4/2022-12-forgeries/blob/main/src/VRFNFTRandomDraw.sol#L295
https://github.com/code-423n4/2022-12-forgeries/blob/main/src/VRFNFTRandomDraw.sol#L315
Vulnerability details
Impact
There is a potential loss of NFT where the recipient is a contract address and it is unable to handle the sent ERC721s.
Proof of Concept
The transferFrom() method is used instead of safeTransferFrom() isn’t recommended because:
Tools Used
Manual
Recommended Mitigation Steps
Replace transferFrom with safeTransferFrom
The text was updated successfully, but these errors were encountered: