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

CONTRACT_BLOKAGE_BY_CONTRACTS_WITH_REVERT_IN_FALLBACK

Summary

Attacker can create lottery with accounts that can't be called that will stop contract

Vulnerability Details

In selectWinner it's required that call to winner needs to be successful: (bool success,) = winner.call{value: prizePool}("");. If attacker creates round with contracts have revert in their fallbacks, call to winner always will fail. So new nft can't be minted

Impact

Contract blockage

Tools Used

Recommendations

Do not require success of the call to the winner

Updates

Lead Judging Commences

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

smart contract wallet without fallback/receive will halt the raffle

Support

FAQs

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