Description:
The Token.sol test contract exposes mint() and burn() functions as public without any access control. While this may be intentional for testing, if used as a base for production contracts, it represents a critical vulnerability where anyone can arbitrarily mint or burn tokens.
Impact:
Unlimited Token Creation: Any address can mint unlimited tokens, destroying the token's economic value.
Unauthorized Token Destruction: Any address can burn tokens from any account, stealing value from users.
Complete Loss of Token Economics: The token becomes worthless and unusable for any serious application.
Proof of Concept:
Mitigation:
Implement proper access control using OpenZeppelin's Ownable or AccessControl:
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.
The contest is complete and the rewards are being distributed.