Description: Function MerkleAirdrop::claim
can be call by eligible user more than once. The intetion
of this function is to be used by user to claim money using merkle tree validation, but after sending money to
an user, same user can call it again and again until thera are no money left.
Impact: Money can be drained just by one eligible user.
Proof of Concept: Below you can see a test that you can add to the MerkleAirdropTest.t.sol
and run it.
This test is calling the claim function two times with the same user, expecting to have just one prize, but
both of claim calls were successful!
Add this test to test solidity file
Run this command
Recommend mitigation: Protect the claim
function to be called by one user just one time!
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.