buyPresent is wrongly implemented
There is no check if the person calling has Santa Tokens, it will burn from the provided address instead of msg.sender
It will mint the NFT to the caller instead of the presentReceiver
Wrongly implemented function
Foundry/Manual Review
add a balance check if caller has Santa Tokens,
burn from msg.sender (buying the present for presentReceiver)
mint to the presentReceiver address
Current implementation allows a malicious actor to burn someone else's tokens as the burn function doesn't actually check for approvals.
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.