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
transferERC20 function in FootiumEscrow contract may not work as expected.
Summary
footium escrow contract uses erc20 transfer method for transferring tokens which may not work for weird erc20 implementations that are standard compliant but work bit different.
Vulnerability Detail
Consider a token like ZRX that do not revert on failed transfer but rather returns a boolean as false so it needs to be checked to confirm the transaction. Such tokens can cause unexpected behavious in escrow contract.
Impact
transaction will proceed without transferring the tokens.
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
0xnirlin
medium
transferERC20 function in
FootiumEscrow
contract may not work as expected.Summary
footium escrow contract uses erc20 transfer method for transferring tokens which may not work for weird erc20 implementations that are standard compliant but work bit different.
Vulnerability Detail
Consider a token like
ZRX
that do not revert on failed transfer but rather returns a boolean as false so it needs to be checked to confirm the transaction. Such tokens can cause unexpected behavious in escrow contract.Impact
transaction will proceed without transferring the tokens.
Code Snippet
https://github.com/sherlock-audit/2023-04-footium/blob/main/footium-eth-shareable/contracts/FootiumEscrow.sol#L105-L111
Tool used
Manual Review
Recommendation
use openzeppelin safe transfer library.
Duplicate of #86
The text was updated successfully, but these errors were encountered: