Closed code423n4 closed 2 years ago
I went and checked for the potential risk of claiming and then transferring bribes to someone else, however, this is not possible.
Anyone can claim the bribes, but only the strategy can receive them.
This is proven by the source code from HiddenHands' RewardsDistributor: https://etherscan.io/address/0x0b139682d5c9df3e735063f46fb98c689540cf3a#code#L1139
For this reason, I believe QA is acceptable for the random TODO, but no vulnerability has been identified by this finding
Lines of code
https://github.com/Badger-Finance/vested-aura/blob/d504684e4f9b56660a9e6c6dfb839dcebac3c174/contracts/MyStrategy.sol#L284-L343
Vulnerability details
Impact
Why you still has a TODO in the final code?
TODO: Hardcode claim.account = address(this)?
It is not implemented yet. claim.account may be any value, which may break the claiming process or let user steal fund that intended to be used in MyStrategy to their own wallet by set claim.account to their wallet.
Proof of Concept
Obviously state that there is a TODO not implemented yet.
Tools Used
Manual
Recommended Mitigation Steps
Implement this TODO, or choose not to implement it and remove TODO comment.