entranceFee and participate in the event without paying.Description: According to the sponsor the RamNFT::mintRamNFT function should be callable by the Dussehra contract. This is not the case though. The function is public, has no access control, and anyone can call it directly.
Impact: A malicious user is able to participate in the event, and bypassing paying the entranceFee. They can mint an NFT directly from the RamNFT contract and then call the ChoosingRam::increaseValuesOfParticipants, Dussehra::killRavana and Dussehra::withdraw functions just like any other user.
Proof of Concepts: Input the test below in the Dussehra.t.sol file.
Test output
Recommended mitigation: Add an onlyDussehra modifier on the RamNFT::mintRamNFT function so that it can be called only by the Dussehra contract address.
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.