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

REENTRANCY_IN_REFUND

Summary

Reentrancy in refund function before the state variable update allows to withdraw funds from the contract

Vulnerability Details

In refund function calls msg.sender back with no gas limits. Reentrancy occurred before state variable players changed. This allows attacker to call refund function back again and withdraw all the funds from the contract

Impact

Funds withdrawing possibility

Tools Used

Recommendations

Transfer ether back after all the state variables updated

Updates

Lead Judging Commences

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

reentrancy-in-refund

reentrancy in refund() function

Support

FAQs

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