Closed code423n4 closed 2 years ago
https://github.com/Badger-Finance/vested-aura/blob/d504684e4f9b56660a9e6c6dfb839dcebac3c174/contracts/MyStrategy.sol#L65 https://github.com/Badger-Finance/vested-aura/blob/d504684e4f9b56660a9e6c6dfb839dcebac3c174/contracts/MyStrategy.sol#L67 https://github.com/Badger-Finance/vested-aura/blob/d504684e4f9b56660a9e6c6dfb839dcebac3c174/contracts/MyStrategy.sol#L68
Approval must be set to zero and after that increased to the amount you need. Some of the tokens such as USDT require that. Please read more information here: https://adrianhetman.com/unboxing-erc20-approve-issues
Affected code:
Not on initialization which means the approval is already 0
Disputed
Lines of code
https://github.com/Badger-Finance/vested-aura/blob/d504684e4f9b56660a9e6c6dfb839dcebac3c174/contracts/MyStrategy.sol#L65 https://github.com/Badger-Finance/vested-aura/blob/d504684e4f9b56660a9e6c6dfb839dcebac3c174/contracts/MyStrategy.sol#L67 https://github.com/Badger-Finance/vested-aura/blob/d504684e4f9b56660a9e6c6dfb839dcebac3c174/contracts/MyStrategy.sol#L68
Vulnerability details
Impact
Approval must be set to zero and after that increased to the amount you need. Some of the tokens such as USDT require that. Please read more information here: https://adrianhetman.com/unboxing-erc20-approve-issues
Affected code:
Proof of Concept
Tools Used
Recommended Mitigation Steps