code-423n4 / 2022-09-party-findings

2 stars 0 forks source link

[NAZ-M3] Use `safeTransferFrom()` instead of `transferFrom()` for ERC721 transfers #283

Closed code423n4 closed 1 year ago

code423n4 commented 1 year ago

Lines of code

https://github.com/PartyDAO/party-contracts-c4/blob/main/contracts/crowdfund/Crowdfund.sol#L301

Vulnerability details

Impact

The transferFrom() method is used instead of safeTransferFrom(), presumably to save gas. I however argue that this isn’t recommended because:

Tools Used

Manual Review

Recommended Mitigation Steps

Consider the use of safeTransferFrom() method instead of transferFrom() for NFT transfers.

merklejerk commented 1 year ago

Duplicate of #20

HardlyDifficult commented 1 year ago

The rec is invalid for this line.