Missing acces control on the DistributionV2::createPool()
, anyone is allowed to add a poMissing acces control on the DistributionV2::createPool()
ol undesired rewards outcomes.
The creation of a Pool should be restricted to the owner of the contract. If not, malicious pool with extremely high rewards could be registered, decreasing the value of MOR token.
https://github.com/Cyfrin/2024-01-Morpheus/blob/76898177fbedcbbf4b78b513d9fa151bbf3388de/contracts/mock/DistributionV2.sol#L17-L21
MOR tokens can be rewarded in excess.
Manual review
I suggest to add proper access control such as :
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.