Submitted by 0xRajeev
setRewards() is missing input validation on parameters start and end to check if end > start. If accidentally set incorrectly, this will allow resetting new rewards while there is an ongoing one (ERC20Rewards.sol#L74 L88).
Recommend adding a require() to check that end > start.
alcueca (Yield) confirmed:
alcueca (Yield) patched:
