In DOCS is stated that mintRamNFT - Allows the Dussehra contract to mint Ram NFTs.
However, that is not true, because there is not modifier.
If we take a look at mintRamNFT
function:
We can see that there is not modifier and anyone can call that function. This means that users can bypass paying entrance fee.
Users minting RamNfts without paying fee.
Create the following test case:
Run forge test --match-test test_anyoneCanMintNft
The results are the following:
Manual Review
Consider adding variable and modifier that will check if msg.sender is Dussehra contract.
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.