arbitraryCall
allow inherited governance to steal incentives
#200
Labels
3 (High Risk)
Assets can be stolen/lost/compromised directly
bug
Something isn't working
duplicate
This issue or pull request already exists
Handle
gzeon
Vulnerability details
Impact
arbitraryCall
did not check the balances of incentives, which allow inherited governance to steal the incentives.Proof of Concept
https://github.com/code-423n4/2021-11-streaming/blob/56d81204a00fc949d29ddd277169690318b36821/Streaming/src/Locke.sol#L733
Recommended Mitigation Steps
Keep track of incentive token addresses in
createIncentive
and check the balance of each token before and after the arbitrary call to ensure trustlessnessThe text was updated successfully, but these errors were encountered: