This repository has been archived by the owner on Nov 26, 2023. It is now read-only.
ctf_sec - Certain ERC20 token does not return bool from approve and transfer and transaction revert #14
Labels
Has Duplicates
A valid issue with 1+ other issues describing the same vulnerability
Medium
A valid Medium severity issue
Reward
A payout will be made for this issue
Sponsor Confirmed
The sponsor acknowledged this issue is valid
ctf_sec
medium
Certain ERC20 token does not return bool from approve and transfer and transaction revert
Summary
Certain ERC20 token does not return bool from approve and transfer and transaction revert
Vulnerability Detail
According to
https://github.com/d-xo/weird-erc20#missing-return-values
Some tokens do not return a bool on ERC20 methods and use IERC20 token interface will revert transaction
Certain ERC20 token does not return bool from approve and transfer and transaction revert
and
the transfer / approve can fail slienlty
Impact
Some tokens do not return a bool on ERC20 methods and use IERC20 token interface will revert transaction
Code Snippet
https://github.com/sherlock-audit/2023-04-footium/blob/11736f3f7f7efa88cb99ee98b04b85a46621347c/footium-eth-shareable/contracts/FootiumEscrow.sol#L80
https://github.com/sherlock-audit/2023-04-footium/blob/11736f3f7f7efa88cb99ee98b04b85a46621347c/footium-eth-shareable/contracts/FootiumEscrow.sol#L95
Tool used
Manual Review
Recommendation
Use Openzeppelin SafeTransfer / SafeApprove
The text was updated successfully, but these errors were encountered: