Beginner FriendlyFoundryNFT
100 EXP
View results
Submission Details
Severity: high
Valid

`refund` can be called right before `selectWinner`

Summary

refund function can be called right before selectWinner

Vulnerability Details

A player can watch the mempool for the selectWinner function call, frontrun the tx and call refund to get back the entry fee and reduce the reward for the winner.

Impact

Owner gets less fee and winner gets less reward.

Tools Used

Manual

Recommendations

Don't allow players to call refund function once the raffle round has ended.

Updates

Lead Judging Commences

Hamiltonite Lead Judge almost 2 years ago
Submission Judgement Published
Validated
Assigned finding tags:

selectWinner can be frontran

Support

FAQs

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