Beginner FriendlyFoundry
100 EXP
View results
Submission Details
Severity: high
Invalid

No reentrancy protection for _sendEth

Summary

_sendEth function does not protect against reentrancy attacks.

Vulnerability Details

If the destination address is a contract that implements a malicious fallback function, it could call back into the sending contract before the original call is finished (i.e., before the require statement is executed), potentially leading to unexpected behavior.

Impact

All Eth could be maliciously drained from the contract.

Tools Used

Recommendations

It's recommended to use established patterns for sending Ether, such as the withdrawal pattern, and to use tools like the OpenZeppelin contracts library that have been thoroughly reviewed and tested.

Updates

Lead Judging Commences

0xnevi Lead Judge
almost 2 years ago
0xnevi Lead Judge almost 2 years ago
Submission Judgement Published
Invalidated
Reason: Other

Support

FAQs

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