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

L-6: withdrawFees function is callable by anyone

Summary

LOW-6: The withdrawFees function is marked as external with no restrictions on the caller.

Vulnerability Details

Violation of the "minimum access" policy. The owner may want to change the withdrawal address before calling the function but may be unable to do so if another user calls the function before that.

Impact

Possibility to restrict the access to functions that should be callable only by the deployer

Tools Used

Static analysis

Recommendations

Mark the withdrawFees function as onlyOwner to grant only the owner the right to call the "withdrawFunds" function

Updates

Lead Judging Commences

Hamiltonite Lead Judge over 1 year 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.