Description:Description\
The campain owner is able to recover unclaimed or unclaimable rewards.
However the owner should only be able to claim those after the campain finishes. Otherwise users might be wrongfully incentivised on rewards that have been fully recovered by the campain owner.
Attack Scenario\
Campain owner wants launches an incentive to boost trades on his dex.
Campain owner doesn't decides that he wants to withdraw the incentives.
He does so while the campain is still on.
Potential claimers are unable to do so because rewards have been recovered.
Attachments
Proof of Concept (PoC) File
In the recoverRewards function we can see that rewards may be reclaimed at any time.
In _processRewardClaim the same applies rewards may be withdrawn at any time.
Which means the campain owner is always able to claim rewards.
Revised Code File (Optional)
Add a time restriction, only enabling the owner to withdraw funds when the campain is over.
Github username: @@giorgiodalla Twitter username: 0xAuditism Submission hash (on-chain): 0x7342e6241dd4449bf5af0021cb50ac7038451efa2f05be4d0ec0b6ba25d590b0 Severity: medium
Description: Description\ The campain owner is able to recover unclaimed or unclaimable rewards. However the owner should only be able to claim those after the campain finishes. Otherwise users might be wrongfully incentivised on rewards that have been fully recovered by the campain owner.
Attack Scenario\
Campain owner wants launches an incentive to boost trades on his dex. Campain owner doesn't decides that he wants to withdraw the incentives. He does so while the campain is still on. Potential claimers are unable to do so because rewards have been recovered.
Attachments
Proof of Concept (PoC) File In the recoverRewards function we can see that rewards may be reclaimed at any time. In _processRewardClaim the same applies rewards may be withdrawn at any time. Which means the campain owner is always able to claim rewards.
Revised Code File (Optional)
Add a time restriction, only enabling the owner to withdraw funds when the campain is over.