The Snowman.sol contract lacks a maximum supply limit for NFT minting. Combined with the missing access control vulnerability, an attacker can mint an unlimited number of NFTs, completely destroying the scarcity and value of the collection.
The Snowman contract is designed to distribute a fixed number of NFTs through an airdrop mechanism. However, there is no MAX_SUPPLY constant or check in the mintSnowman function to limit the total number of NFTs that can be minted.
File: src/Snowman.sol (lines 38-45)
Severity: Low
Likelihood: Medium
Impact: Low
❌ No limit on total NFT supply
❌ Combined with access control bug, allows unlimited minting
❌ Destroys NFT scarcity and value
✅ Requires access control vulnerability to be exploited first
Scenario: Attacker exploits missing access control to mint unlimited NFTs.
Expected Behavior: There should be a maximum supply limit that prevents excessive minting.
Actual Behavior: Attacker can mint millions of NFTs in a single transaction.
Test Output:
What This Proves:
✅ No maximum supply limit exists
✅ Unlimited NFTs can be minted
✅ Destroys collection scarcity
Add a maximum supply constant and check:
Why This Fixes It:
✅ Enforces maximum NFT supply
✅ Prevents unlimited minting
✅ Maintains collection scarcity
The contest is live. Earn rewards by submitting a finding.
Submissions are being reviewed by our AI judge. Results will be available in a few minutes.
View all submissionsThe contest is complete and the rewards are being distributed.