contracts/dao/MembershipFactory.sol#L137-L150
Cyfrin report states under 7.3.4
that:
The tiers.minted member should be decremented for the original tier and incremented for the upgraded tier, validating that tier.amount is not exceeded.
However, it doesn't elaborate in the worse impact possible.
An attacker can weaponize this to make tiers unusable by minting a tier to its full amount of tokens then upgrading all of them.
Even if the tier is empty now, it will still be unusable by the DAO because of the previous check in joinDAO
:
This vulnerability can lead to specific tiers being unusable, preventing legitimate users from joining the DAO or upgrading their tokens to those tiers.
Manual review.
We recommend tiers.minted
as advised by Cyfrin's report.
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.