After calling refund, the player’s address becomes zero and he continues to participate in the lottery.
After calling refund()
the player's address becomes address(0)
and he continues to participate in the lottery. If the player with address(0) wins, the money is sent to address zero and burned.
Money is sent to zero address and burns.
Manual review
After calling a refund()
, need remove player from array. Replace players[playerIndex] = address(0);
with delete players[playerIndex];
.
Funds are locked to no one. If someone gets the refund issue, they also got this issue. IMPACT: High Likelihood: High
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.