RamNFT::mintRamNFT
is not protected, allowing any user to mint new NFTs without restriction.
The RamNFT::mintRamNFT
function is publicly accessible, allowing anyone to call it and mint new NFTs. This lack of access control means that a malicious user can exploit this vulnerability to mint a large number of NFTs. This can be particularly problematic in scenarios where the selection of the Ram is influenced by the number of NFTs held, as it allows the malicious user to disproportionately increase their chances of being selected as the Ram.
Manipulation of Selection Process: A malicious user can mint numerous NFTs to unfairly increase their chances of being selected as the Ram, thereby gaining an undue advantage in the selection process.
Resource Drain: Unrestricted minting can lead to resource exhaustion, as the contract may be overwhelmed with a large number of NFTs, potentially impacting its performance and increasing gas costs.
Economic Disruption: The value and integrity of the NFTs and the associated rewards can be undermined if users perceive the system as being manipulable or unfair.
Manual code review
Add onlyChoosingRamContract
modifier
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.