The Distribution::claim
function allows users to claim rewards for other users which makes them lose funds.
The problem is that the function is payable and msg.value
will be sent to L1Sender. Therefore, if one user decides to claim rewards, but inputs the wrong address will essentially lose msg.value, since they don't claim the rewards for themselves.
I understand that it can be invalidated cause it's just a user input validation.
Users will lose some funds, but not much.
Manual Review
Add a check that msg.sender == user
:
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.