You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.
sherlock-admin opened this issue
May 5, 2023
· 0 comments
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
Use safeTransfer() instead of transfer() for ERC20 tokens
Summary
Project explicitly aims to be used with arbitrary ERC20 tokens, hence must use safeTransfer() instead of transfer(). Also doesn't check the return of transfer() either which could be problematic!
Vulnerability Detail
Using transfer() will have problems with non-standard ERC20 tokens.
Impact
Potential issues with non-standard ERC20 tokens and not checking the return of transfer() could be problematic if transfer() fails but doesn't revert & code continues executing as if it had succeeded.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Labels
DuplicateA valid issue that is a duplicate of an issue with `Has Duplicates` labelMediumA valid Medium severity issueRewardA payout will be made for this issue
dacian
medium
Use safeTransfer() instead of transfer() for ERC20 tokens
Summary
Project explicitly aims to be used with arbitrary ERC20 tokens, hence must use safeTransfer() instead of transfer(). Also doesn't check the return of transfer() either which could be problematic!
Vulnerability Detail
Using transfer() will have problems with non-standard ERC20 tokens.
Impact
Potential issues with non-standard ERC20 tokens and not checking the return of transfer() could be problematic if transfer() fails but doesn't revert & code continues executing as if it had succeeded.
Code Snippet
FootiumEscrow.transferERC20() L110
FootiumPrizeDistributor.claimERC20Prize() L130
Tool used
Manual Review
Recommendation
Use safeTransfer
Duplicate of #86
The text was updated successfully, but these errors were encountered: