Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: medium
Invalid

function selectWinner() and withdrawFees() don't have onlyOwner modifier - Access control vulnerability

Summary

The selectWinner() function should have onlyOnwer modifier

Vulnerability Details

Only owner should be able to select a winner otherwise it seems illogical and also opens the door to the randomness vulnerability

Impact

Anyone can call the selectWinner() function, which is not what you'd like to happen

Tools Used

hardhat

Recommendations

-function selectWinner() external {
+function selectWinner() external onlyOwner{
Updates

Lead Judging Commences

Hamiltonite Lead Judge about 2 years ago
Submission Judgement Published
Invalidated
Reason: User experience and design improvement

Support

FAQs

Can't find an answer? Chat with us on Discord, Twitter or Linkedin.

Give us feedback!