WeatherNft
contract does not validate the logical alignment between the weathers
array and the weatherURIs
array, allowing incorrect mappings to be stored.weathers
and weatherURIs
arrays are equal, but it does not validate that the weather types correspond to the correct URIs.Weather.Rainy
mapped to a sunny image URI.Step 1: The constructor iterates through the arrays and stores the mappings in s_weatherToTokenURI
without verifying their correctness.
Outcome: Incorrect mappings are stored in the contract, leading to NFTs with misleading metadata.
Implications: This can result in user confusion, loss of trust in the NFT project, and reputational damage for the project team.
Impact:Affected Parties: NFT buyers and the project team.
Buyers receive NFTs with incorrect metadata, and the project team faces reputational damage.
weathers
array corresponds to the correct URI in the weatherURIs
arrayThe 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.