The updateDAOMembership function does not enforce a restriction to ensure that minted does not exceed the new amount for each tier.
In the updateDAOMembership function, the DAO’s tiers array is updated by first preserving the minted value of each existing tier and then replacing the array with new TierConfig data:
Currently, there is no check to verify that the minted value of each tier does not exceed the new amount set in TierConfig. Consequently, if the amount is set to a value smaller than the current minted value, this will violate the design restriction on mint limits.
This issue could lead to an unintended configuration where the minted count exceeds the specified amount for a tier, undermining DAO membership restrictions and potentially allowing more NFTs than intended to remain valid under a given tier.
Manual
Add a restriction in updateDAOMembership to ensure that TierConfig.amount is always greater than or equal to the preserved minted count.
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.