https://github.com/Cyfrin/2024-11-one-world/blob/main/contracts/dao/MembershipFactory.sol#L140
Summary- The joinDAO function lacks adequate protection against unauthorized token minting, allowing users to potentially bypass restrictions and mint additional DAO tokens, which could compromise the DAO’s membership structure and security.
Vulnerability Details- The joinDAO function is vulnerable to manipulation, as it lacks protections against repeated calls
Impact - By repeatedly calling joinDAO, an attacker could mint multiple tokens within a tier, potentially bypassing the maxMembers limit and tier restrictions. For instance, if the attacker identifies an unchecked loop or limited validation of tierIndex, they can continuously call the function to accumulate unauthorized tokens.
Tools Used- manual review
Recommendations-
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.