In the Distribution.sol
contract the createPool
function has a onlyOwner
access modifier but in DistributionV2.sol
there is no onlyOwner
access modifier for the createPool
function.
https://github.com/Cyfrin/2024-01-Morpheus/blob/76898177fbedcbbf4b78b513d9fa151bbf3388de/contracts/mock/DistributionV2.sol#L18
Anybody will be able to create their own pool, with their own custom parameters.
Manual Review
Add the onlyOwner
modifier to the createPool
function.
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.