The lack of a modifier in the mintRamNFT
function allows anyone to mint a Ram NFT.
There is no check on who is calling the mintRamNFT
function.
https://github.com/Cyfrin/2024-06-Dussehra/blob/main/src/RamNFT.sol#L49
The mintRamNFT
is public and hence, can be called by anyone. There is no restriction on who can call this function. Therefore, users can directly mint a Ram NFT without paying the entry fee to join this event.
Attackers can directly mint a Ram NFT without paying any entry fee.
Manual Review
Add a modifier to this function that ensures only the authorized users can call this function.
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.