Alper Kanat
Alper Kanat

Reputation: 396

Facebook signed_request data and some security concearns

We've just developed a small Facebook puzzle that people win some gifts from our customer. I'd like to ask a few questions since I'm pretty stuck despite tried lots of things. First I'd like to write what we have and then will explain our problems.

What we did so far:

Problems:

I hope that I made our problem clear. Gaming time is calculated by Flash (game is programmed in AS3) and it's sent via JavaScript methods to server side. We could have done it in Flash but that only prevents our problem from becoming trivial. Afterall we'd have the same problem if we had implemented the game in HTML5.

Any thoughts, suggestions are really welcome and thanks for your feedback!

Upvotes: 0

Views: 362

Answers (1)

Christian Engel
Christian Engel

Reputation: 3778

This is a bug by design. You are calculating the scores on client side and then send them to the server. The server has no way to validate if the score is correct. This can ALWAYS be faked by clever users.

Never ever ever calculate things that could give users advantage on clientside. Clientside is evil. Everything on clientside can be manipulated - no matter how hard you try.

Calculate your scores on the server and use the client side only to display them. Every other solution is crackable.

Upvotes: 3

Related Questions