Closed code423n4 closed 1 year ago
Not anyone. Only the NFT owner can make a new draw because the NFT ownership is checked on initialization. And I believe it's the intended business logic to allow anyone to be able to create a raffle as long as he owns NFT.
gzeon-c4 marked the issue as unsatisfactory: Invalid
Lines of code
https://github.com/code-423n4/2022-12-forgeries/blob/main/src/VRFNFTRandomDrawFactory.sol#L38
Vulnerability details
Impact
Anyone can call makeNewDraw and become admin.
src/VRFNFTRandomDrawFactory.sol
Recommended Mitigation Steps
Protect access to all sensitive information.