The upgradeTier function does not currently verify whether the caller owns the necessary NFT before allowing an upgrade. This oversight can lead to unauthorized or malicious upgrade attempts, potentially disrupting the DAO's membership structure.
The upgradeTier function assumes that the caller owns the NFT from the specified fromTierIndex without explicitly checking ownership.
Without verifying ownership, there is a risk that users could attempt to upgrade without actually holding the required NFT, leading to inconsistencies in membership records.
Unauthorized upgrades could allow users to access higher-tier benefits or governance rights without proper authorization, undermining the DAO's governance structure.
Manual Review
Use the balanceOf function to check that the caller owns at least one NFT from the specified fromTierIndex before proceeding with the upgrade.
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.