The getDealerCards
function allows anyone to view the dealer's cards at any time:
This exposure includes the dealer's hidden cards, which should remain concealed until the game concludes.
Unfair Advantage: Players can make decisions with full knowledge of the dealer's hand, violating the game's rules.
Game Integrity Issues: The fundamental uncertainty of the game is compromised, leading to unfair outcomes.
Financial Implications: Players may win more frequently than intended, resulting in financial losses for the contract.
Restrict Access to Dealer's Cards: Modify the getDealerCards
function to only reveal the dealer's cards after the game has ended.
Access Control: Implement access control mechanisms to ensure only authorized views are allowed, possibly by using a game state variable.
Partial Disclosure: If desired, only reveal one of the dealer's cards during the game, mimicking real blackjack.
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.