Throughout MembershipERC1155 it is assumed that DAOConfig::TierConfig[] contains structures in a certain order(Index 0 1 2 3 4 5 6 = Tier 1 2 3 4 5 6 7).
Users can create a DAO that will not match the template:
tierIndex 0 (Tier 1 in website) is at the highest level, tierIndex 6 (Tier 7 in website) is lowest.
The description of the createNewDAOMembership function does not specify that the tierConfigs parameter must correspond to a certain order.
The function does not check the order of the tierConfigs array
The same issue affects MembershipFactory::updateDAOMembership function.
DAOs with disordered tiers can confuse and cause issues for users or third-party integrations.
Manual review
Consider adding a check or sort for TierConfig[]
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.