Using the public modifier on the playersHand function allows anyone to freely view a player's hand total, which creates a risk of cheating. This transparency could be exploited by other players or malicious actors to gain an unfair advantage, as they can monitor the player's current hand value (i.e., the total of their cards) at any point in the game.
Using the public modifier allows players to pass in other players' addresses and view their hand card counts, which creates a cheating mechanism.
The game becomes unfair.
Manual review
The caller must be the same as the provided player address.
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.