buyPresent function burns tokens that belong to presentReceiver
A malicious user can call the function and will burn the victim's tokens.
Than he will receive the NFT.
presentReceiver will get his tokens burned but will not receive the NFT
Manual review
Change function to:
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.