Santa's List

AI First Flight #3
Beginner FriendlyFoundry
EXP
View results
Submission Details
Impact: high
Likelihood: medium
Invalid

Reentrancy vulnerability in collectPresent violates Checks-Effects-Interactions pattern

In the collectPresent function, users with EXTRA_NICE status receive both an NFT and SantaTokens. However, the contract calls _mintAndIncrement() (which triggers the _safeMint external callback onERC721Received) before calling i_santaToken.mint(msg.sender). A malicious receiver contract can hijack this callback to reenter the protocol or manipulate state before the SantaToken minting is finalized, violating the Checks-Effects-Interactions (CEI) pattern.

Updates

Lead Judging Commences

ai-first-flight-judge Lead Judge 4 days ago
Submission Judgement Published
Invalidated
Reason: Incorrect statement

Support

FAQs

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

Give us feedback!