Root Cause: The _createTokenURI function constructs metadata without validating or sanitizing inputs.
Impact: Attackers could manipulate inputs to include malicious data in the token metadata.
Potential Issues:
Injection of unexpected characters or scripts in metadata.
Malformed JSON leading to client-side parsing errors.
Validate and Sanitize Inputs:
Ensure all inputs are within expected ranges and formats.
Escape or encode characters that could disrupt JSON structure.
Use Structured Data Formats:
Consider using a JSON library to construct the metadata safely.
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.