after Buying the NFT the state should update before any externall call should follow Checks-Effects-Interactions pattern
The state updated after the NFT was send to the buyer allow reentrancy
Likelihood:
Reason 1: Any attacker can deploy a malicious contract implementing onERC721Received.
Reason 2: Reentrancy is easy to exploit when state updates happen after external calls.
Impact:
Impact 1 Attacker can buy the same NFT multiple times in a single transaction (reentrancy loop)
Impact 2: Attacker can buy the same NFT multiple times in a single transaction
follow Checks-Effects-Interactions apttern
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.
The contest is complete and the rewards are being distributed.