The function buyPresent
burn the tokens of the presentReceiver
instead the caller's tokens and mint the gift for the caller.
This means that anyone can steal other users' tokens to claim gift for himself
An attacker can claim gift burning other users' tokens.
Burn the token of the msg.sender
and mint the token to the presentReceiver
, modifying the function like this:
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.