Zero amount tiers possible in DAO creation and updates
The contract allows the creation and updating of tiers with zero member capacity.
https://github.com/Cyfrin/2024-11-one-world/blob/1e872c7ab393c380010a507398d4b4caca1ae32b/contracts/dao/MembershipFactory.sol#L55
https://github.com/Cyfrin/2024-11-one-world/blob/1e872c7ab393c380010a507398d4b4caca1ae32b/contracts/dao/MembershipFactory.sol#L155C1-L162C1
The TierConfig struct includes an 'amount' parameter defining how many members can join each tier, but the code never validates that this amount is greater than zero.
Tiers can be created with zero capacity. Membership tracking becomes unclear. And DAOs can have non-functional tiers.
Manual review
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.