No length cap exists on name or profileImage. A user can mint with a multi-kilobyte string, bloating the on-chain storage and the tokenURI() output beyond what most RPC nodes, indexers, or frontends will handle gracefully.
Likelihood:
Low. Self-inflicted and economically disincentivised by gas cost. More likely accidental than malicious.
Impact:
Low. Caller pays their own inflated gas — no direct fund loss to others. However extremely large strings can cause tokenURI() to exceed RPC response limits, breaking frontend/indexer reads for that token permanently.
Applying this function at the end of /test/TestSnowmanAirdrop.t.sol to know what the correct and wrong digest output HASH.
Ran with command: forge test --match-test testFrontendSignatureVerification -vvvv
Add a constant max length and enforce it in the same mintProfile entry point.
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.