How to validate the origin of a web service invokation

前端 未结 6 1520
猫巷女王i
猫巷女王i 2021-01-01 18:06

Suppose you have a mobile application (Windows Phone or Android) that connects yo your back-end using SOAP.

For making it easy, let\'s say that we have a Web Service

6条回答
  •  北海茫月
    2021-01-01 18:06

    Since your originating app is going to be Android or Windows Phone apps, either one of them will be relatively easy for the wanna be hacker to debug. in any case you're going to be running the code on a machine that you have no control over so no ssl tricks or checking signing will solve your fundamental problem.

    the only way you can combat threat from it is to NOT TRUST THE CLIENT. verify that the input coming from the clients is valid before acting on it if you're making a game - that it's accompanied by a valid security token etc.

    in essence build your service so that it doesn't matter if the user is using an unofficial client.

提交回复
热议问题