Skip to content
This repository has been archived by the owner on Nov 26, 2023. It is now read-only.

0xnirlin - transferERC20 function in FootiumEscrow contract may not work as expected. #369

Closed
sherlock-admin opened this issue May 5, 2023 · 0 comments
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label Medium A valid Medium severity issue Reward A payout will be made for this issue

Comments

@sherlock-admin
Copy link
Contributor

sherlock-admin commented May 5, 2023

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

@github-actions github-actions bot added Medium A valid Medium severity issue Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label labels May 10, 2023
@sherlock-admin sherlock-admin added the Reward A payout will be made for this issue label May 22, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Duplicate A valid issue that is a duplicate of an issue with `Has Duplicates` label Medium A valid Medium severity issue Reward A payout will be made for this issue
Projects
None yet
Development

No branches or pull requests

1 participant