Skip to content

Latest commit

 

History

History
25 lines (20 loc) · 1002 Bytes

072.md

File metadata and controls

25 lines (20 loc) · 1002 Bytes

IceBear

medium

Use safeTransferFrom instead of transferFrom for ERC721 transfers

Summary

Use safeTransferFrom to prevent loss.

Vulnerability Detail

Transferfrom doesn't ensure that the receiver is capable of receiving the token, which can lead to permanently loosing the token. similar findings:

Impact

According to the openzeppelin-contracts usage of {safeTransferFrom} prevents loss.

Code Snippet

https://github.com/sherlock-audit/2023-03-teller/blob/main/teller-protocol-v2/packages/contracts/contracts/CollateralManager.sol#L343

Tool used

Manual Review

Recommendation

Consider changing transferFrom to safeTransferFrom at L343.