The constructor of the WeatherNft.sol contract maps weather types to their corresponding image URIs without validating that the URIs are non-empty strings. The code only checks that the arrays have matching lengths but doesn't verify the content quality.
If the contract is deployed with empty strings in the weatherURIs array, NFTs will be created with missing image references.
This allows initialization with empty URIs, which will break NFT metadata resolution
Impact:
NFTs could be minted with missing image URIs, resulting in broken metadata. This would lead to NFTs that don't properly display in wallets, reducing their utility and value. Once deployed, there's no mechanism to update the URIs for weather types.
Add validation to ensure that each URI is non-empty:
This ensures that all weather states have valid image references when the contract is deployed.
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.