Use of transferFrom()
instead of safeTransferFrom()
#14
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
duplicate
This issue or pull request already exists
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Lines of code
https://github.com/code-423n4/2022-05-cally/blob/main/contracts/src/Cally.sol#L199
Vulnerability details
Impact
In
Cally.sol
thecreateVault()
function callstransferFrom()
on a ERC721 token. This does not ensure that the ERC721 token is not sent to an address that is not able to properly support it which could result in the loss of the token.Proof of Concept
https://github.com/code-423n4/2022-05-cally/blob/main/contracts/src/Cally.sol#L199.
Tools Used
Manual code review
Recommended Mitigation Steps
Making use of the
safeTransferFrom()
function will ensure that whoever receives the ERC721 token is able to properly support it. This protects users from losing tokens.The text was updated successfully, but these errors were encountered: