code-423n4 / 2021-11-streaming-findings

0 stars 0 forks source link

governor can steal funds of user from all created streams using `arbitraryCall` #229

Closed code423n4 closed 2 years ago

code423n4 commented 2 years ago

Handle

hack3r-0m

Vulnerability details

Impact

https://github.com/code-423n4/2021-11-streaming/blob/main/Streaming/src/Locke.sol#L733-L751

max approval is very common since one does not want to approve many times due to high gas fees.

Tools Used

Manual Review

Recommended Mitigation Steps

add a mapping to keep track of whether incentive of particular token was claimed by creator and set it to true. In arbitraryCall, that mapping[who] should be false proving nobody has incentivised that token before.

0xean commented 2 years ago

dupe of #258