question

hulosowanie7 avatar image
hulosowanie7 asked

PlayFab is not safe

Hey guys.

I really need a help, someone was able to set their currency using external software.

I was looking for this software and I found, his name is: Burp Suite

By this software I am able to add currency on Client and Server by myself.

Please how can I add some authentication?

I thought that this issue is caused because I was using PlayFab.Client.AddCurrency but I changed it into PlayFab.Server.AddCurrency and I am also able too add currency by myself...

Please help it is really huge issue!

I am able to add by myself on every PlayFab game some currencies/items etc

apis
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Ruben Pascual Blanco avatar image
Ruben Pascual Blanco answered

you have to dissable client ability to add and substract currency under Tittle settings>API features

4 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

hulosowanie7 avatar image hulosowanie7 commented ·

bro, even If i disable client API and make these functions using Server API - I am still able to Repeat this CALL and do it unlimited times, it doesn't matter is it Client API or Server API

0 Likes 0 ·
Ruben Pascual Blanco avatar image Ruben Pascual Blanco hulosowanie7 commented ·

In our case the client of the game doesn't include the server api at all, only official dedicated servers have it enabled. It's a basic safety tip, as server api not only can modify currency but all kinds of data in inventory and stats. Also to be able to use Server API, an user must have the secret key, which you should never ship with the client, so it's impossible to create a hack that uses Server API if you never share said secret key.

If someone got a hold of any of your secret keys, just drop it and generate a new one.

1 Like 1 ·
HitRock Games avatar image HitRock Games hulosowanie7 commented ·

In CloudScript you can check the timestamp and set a limit. Store the timestamp and number of attempts in the player's internal data.

0 Likes 0 ·
hulosowanie7 avatar image hulosowanie7 HitRock Games commented ·

Yeah I am making now something like "code authentication" and if this code equals request then Player is able to call function via CloudScript

0 Likes 0 ·
medanogames avatar image
medanogames answered

Use a cloudscript.

3 comments
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

hulosowanie7 avatar image hulosowanie7 commented ·

It nothing change, I can also CloudScript function via this software. Is there any authentication?...

0 Likes 0 ·
medanogames avatar image medanogames hulosowanie7 commented ·

Cloudscript will only return you data if you pass nothing trough it (meaning nothing you send is of any use to the hacker). Make a cloud script that gives you 500 ST (your currency) hardcoded. Try calling it and it should be semi-safe. Now to make it fully safe you'll need some sort of check if the player did something to get that currency. If you happen to get a request for currency but the player did nothing to earn it then BAN THEM.

0 Likes 0 ·
hulosowanie7 avatar image hulosowanie7 medanogames commented ·

This is not how PlayFab should works. It is not safe too because it doesn't matter is it hardcoded or not. I can call each function (so each "if" in game doesn't matter me).

PlayFab is not safe. Please make PlayFab safe because it is 100% hackable!!!

-1 Like -1 ·
hulosowanie7 avatar image
hulosowanie7 answered

It looks like I found the solution. I have to call each functions through CloudScript and add there some "if" and it is safe

1 comment
10 |1200

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

medanogames avatar image medanogames commented ·

Glad I could help ^^

1 Like 1 ·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.