RamNft
Due to Lack of Access ControlDescription:
The RamNft
contract allows any user to mint new NFTs directly through the mintRamNFT
function without any restrictions or payment requirements. This bypasses the intended flow where participants should enter through the Dussehra::enterPeopleWhoLikeRam
function, undermining the game's integrity and fairness.
Impact:
This vulnerability enables malicious users to mint an unlimited number of NFTs for free, significantly increasing their chances of winning while diluting the odds for legitimate participants. It disrupts the economic model of the game and can lead to unfair advantages.
Proof of Concept:
The following test case demonstrates how anyone can mint NFTs without going through the proper channels:
Tools Used:
Manual Review
Recommended Mitigation:
To prevent unauthorized minting, implement an onlyDussehra
modifier in the RamNft
contract. This modifier restricts the mintRamNFT
function so that only the Dussehra
contract can call it, ensuring that NFTs can only be minted through the designated entry point.
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.