A user in the merkle tree should be able to claim a snowman nft
In claimSnowman
the receivers current snow token balance is used to verify the Merkle proof. This means that if the users snow balance differs from the amount specified when the merkle tree was first created, the proof will be invalid and the user cannot claim their snowman
Likelihood:
When the recipient tries to claimSnowman
but their snow balance differs from the amount specified in the merkle tree
Impact:
The user won't be able to claim their snowman nft
Add this poc to TestSnowmanAirdrop.t.sol
The user alice has 2 snow tokens in balance and when satoshi tries to claim on her behalf the proof is invalid because the token amount specified in the merkle tree for her was only 1 snow token.
One possible mitigation is to allow the user to specify the amount of tokens they want to claim.
Claims use snow balance of receiver to compute the merkle leaf, making proofs invalid if the user’s balance changes (e.g., via transfers). Attackers can manipulate balances or frontrun claims to match eligible amounts, disrupting the airdrop.
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.