Lucene search
+L

5 matches found

Code423n4
Code423n4
added 2021/06/24 12:00 a.m.13 views

Return values of ERC20 transfer and transferFrom are unchecked

Handle shw Vulnerability details Impact In the contracts BadgerYieldSource and SushiYieldSource, the return values of ERC20 transfer and transferFrom are not checked to be true, which could be false if the transferred tokens are not ERC20-compliant e.g., BADGER. In that case, the transfer fails...

7.1AI score
SaveExploits0
Code423n4
Code423n4
added 2021/06/23 12:00 a.m.7 views

Use SafeTransfer/TransferHelper for BadgerYieldSource

Handle adelamo Vulnerability details Impact The Badger token will not throw an exception if transfer/transferFrom is unsuccessful. So we could use TransferHelper/SafeTransfer in order to run the validation everything went fine. //...

6.8AI score
SaveExploits0
Code423n4
Code423n4
added 2021/06/23 12:00 a.m.10 views

BadgerYieldSource ERC20 return values not checked

Handle cmichel Vulnerability details The ERC20.transfer and ERC20.transferFrom functions return a boolean value indicating success. This parameter needs to be checked for success. Some tokens do not revert if the transfer failed but return false instead. It is not checked in...

6.9AI score
SaveExploits0
Code423n4
Code423n4
added 2021/06/23 12:00 a.m.11 views

BadgerYieldSource SafeMath not used

Handle cmichel Vulnerability details BadgerYieldSource.redeemToken: no usage of SafeMath can lead to overflows here as the amount parameter is chosen by the attacker. amount.multotalShares + totalShares Impact It does most likely not have an impact, we still recommend using SafeMath. Recommended...

7AI score
SaveExploits0
Code423n4
Code423n4
added 2021/06/23 12:00 a.m.13 views

BadgerYieldSource balanceOfToken share calculation seems wrong

Handle cmichel Vulnerability details When suppling to the BadgerYieldSource, some amount of badger is deposited to badgerSett and one receives badgerSett share tokens in return which are stored in the balances mapping of the user. So far this is correct. The balanceOfToken function should then...

6.8AI score
SaveExploits0
Rows per page
Query Builder