Several functions in the contract lack proper input validation, allowing potentially problematic values to be set.
Location: src/TrickOrTreat.sol:addTreat()
, src/TrickOrTreat.sol:setTreatCost()
Proof of Concept:
This could lead to treats with empty names, zero costs, or invalid URIs being added to the contract, potentially causing unexpected behavior or confusion for users.
Forge
Implement proper input validation for all user-supplied inputs.
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.