Testers wanted to try and hack game

Game development with Board Game Arena Studio
Post Reply
User avatar
MikeIsHere
Posts: 137
Joined: 30 April 2020, 22:52

Testers wanted to try and hack game

Post by MikeIsHere »

The game is cribbage, the code is in the studio site along with a playable version

I am concern that users are able to pick out a specific cut card to benefit their hand. Maybe I am paranoid, but I have seen some strange plays pay off big.

I don't think it can be the basics is the user chooses a card which just returns a number from 1 to 40

Then the code just does a PickCard

$this->cards->pickCards( N, 'deck');
User avatar
ufm
Posts: 2039
Joined: 06 January 2017, 08:38

Re: Testers wanted to try and hack game

Post by ufm »

You are a premium member, so you may use hotseat mode to try it now :)
User avatar
RicardoRix
Posts: 2548
Joined: 29 April 2012, 23:43

Re: Testers wanted to try and hack game

Post by RicardoRix »

they can't hack the php server code.

but it's feasible that they can do anything client-side, so you have to protect against people calling your ajax action functions with their own (assume almost anything) arguments, and only allow plausible plays, like checking php side that the cards are in their hands, etc.

It's also possible that you could inadvertently pass valuable information to the client, like a face-down or an opponents card. You might pass the id which could infer the value/suit even though it's being displayed face down. Again worst case scenario, assume they can see and analyse all the gamedatas data.
Post Reply

Return to “Developers”