distributeByOwner
function doesnot check if given proxy matches given organizer and contestID . if any mistake happens by the owner here then rewards will be sent to wrong addresses .
The distributeByOwner
function looks like this :
This arises a issue .
Consider this scenario :
Two proxy's are there: ProxyA(ok) , ProxyB (expired)
Owner calls distributeByOwner
function but mistekenly inputs ProxyA as proxy and contestID & organizer of ProxyB . Also data for ProxyB .
As the function doesnot validates it so the txn succesfully gets executed and rewards are sent to wrong addresses !!
Likelihood -low
Impact -high
Rewards may be sent to wrong addresses .
VS code
Consider validating the input by calling getProxyAddress
function providing the calculated salt .
Revert if it mismatches .
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.