Malicious user can collect present many times if he transfers his NFT to other address
If a user can collect present, he collected present. Then he transfer his NFT to other address, then he can bypass balanceOf(msg.sender) > 0
. He can collect present again.
Malicious user can collect present many times.
foundry
add an mapping to record someone has already collected present
Relying on balanceOf > 0 in collectPresent() allows the msg.sender to send their present to another address and then collect again.
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.