Attacker can buy NFT token with other user's SantaToken
There is no validation for the presentReceiver
argument in SantasList#buyPresent()
.
Attacker can use address of any user who own SantaToken to mint NFT for himself.
Below is the PoC for the attack.
I added devMint()
function in SantaToken
contract for easily minting SantaToken for this PoC.
Attacker can mint any number of NFT as he want without having any SantaToken token.
Manual review.
Add validation for presentReceiver
input for SantasList#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.