User can mint RamNFT without paying entrance fee.
User can participate in Dussehra without paying. There are a few implications:
The organiser received amount is half of WantToBeLikeRam.length * entranceFee
. The number of users that minted the RamNFT should equal WantToBeLikeRam.length
. Now users can mint RamNFT
by directly calling mintRamNFT
function on RamNFT
contract, causing WantToBeLikeRam.length
to be potentially less than the number of ramNFT
s minted. The organiser may receive less than they should, down to potentially zero.
Since users can mint RamNFT
without paying fee, this creates a spam vector where users generate a large amount of NFTs to race towards Ram selection. In the event where no Ram was selected until the end of event, those who spam the network has a disproportionate chance to be selected as Ram to withdraw the remaining fund.
Manual Review
Add proper access control to the mintRamNFT
function, allow only those who payed the entranceFee to mint.
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.