Closed code423n4 closed 3 years ago
cmichel
BadgerYieldSource.redeemToken: no usage of SafeMath can lead to overflows here as the amount parameter is chosen by the attacker.
BadgerYieldSource.redeemToken
SafeMath
amount
amount.mul(totalShares) + totalShares
It does most likely not have an impact, we still recommend using SafeMath.
Use SafeMath.
Duplicate of https://github.com/code-423n4/2021-06-pooltogether-findings/issues/114
duplicate of #114
Handle
cmichel
Vulnerability details
BadgerYieldSource.redeemToken
: no usage ofSafeMath
can lead to overflows here as theamount
parameter is chosen by the attacker.Impact
It does most likely not have an impact, we still recommend using SafeMath.
Recommended Mitigation Steps
Use SafeMath.