Anyone can call buyPresent()
function to buy SANTA(NFT)
for himself
in exchange of user's SantaTokens
without user's consent .
Below is test which shows that hawks is able to buy SANTA(NFT) for his account inexchange of user's SantaTokens without user's consent.
Below is the terminal
output of above test.
Below is the buyPresent()
function error position.
Anyone can use user's SantaTokens to buy SANTA(NFT) for himself without user's consent.
Manual Review
foundry
Below is the recommended code for buyPresent()
function.
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.