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

Reentrancy via address.call{}

Summary

It's possible to reenter selectWinner() function when funds are sent, thus draining any of the fees stored.

Vulnerability Details

If the caller of selectWinner() is a contract, it can be used to reenter the function. If there are any stored funds in the contract because the owner has not withdrawn their fees, these can be drained each time the user re-enters the contract.

Impact

Medium

Tools Used

Manual review

Recommendations

Add a non-reentrant modifier to the function to ensure this behavior is not possible.

Updates

Lead Judging Commences

Hamiltonite Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Vague generalities

Support

FAQs

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