The buyPresent()
function burning the tokens of the receiver and minting the NFT to the msg.sender
The buyPresent()
function can be used to buy a present for someone, but it will try to burn that person's tokens.
The following test will fail as it tries to burn tokens of the receiver.
Users can loose funds.
The buyPresent()
function should be changed so that it burns the tokens of the msg.sender
.
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.