The mintRamNFT()
function in the RamNFT
contract lacks proper access control, allowing anyone to mint a RAM NFT for free outside of the contract's intended behavior.
This vulnerability enables attackers to mint RAM NFTs without authorization, potentially leading to manipulations of various functions within the protocol.
Execute the following code in Dussehra.t.sol
:
Output :
Implement access control for the mintRamNFT()
function using a modifier:
Apply this modifier to the mintRamNFT()
function to restrict minting privileges to authorized contracts or addresses only.
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.