Security concerns for Online Support

It was already possible to implement support for web requests in previous iterations of the maker (several scripters have released frameworks and toolkits for it), but it might be easier to do so in MV.


As a result, games are no longer strictly confined to whichever machine their running on, and may be communicating with another server (owned by you, whether it's in the cloud or not).


Because of this, someone with malicious intents could potentially go ahead and try to attack your server by sending requests that you wouldn't like.


What are some potential security issues that scripters and gamedevs will need to consider?


For example, they may have to deal with suspicious requests that were constructed specifically with some purpose in mind.


Or maybe someone's generating their own requests after sniffing packets and figuring out how the requests/responses look, and are using that to cheat the system or access data that they should not be able to.
There is so much ground to cover here. Many that start out with making server applications never seem to do this kind of research before they are faced with an exploit and have to apologize to someone for it. I can recommend the OWASP wiki to get a good overview. For example, the top 10 types of security exploits of 2013 is a good place to start. Scroll a bit down for the list.
Security is a state of mind.

As long as you are online you should keep that in mind.

Best practice in my opinion is the server not keeping personal data of users. No reason to hack you, no reason to encryp anything. Of course it has limited utility that way.

Also functionality of the server should not encourage any hack. For example hackers trend to hack games that have goods that can be sold. If there is not an in game market, why hack you?

Denial of Service Attacks must be prevented, you can have a threshold of requests per ip per second, the server will serve before blocking an ip for a minute, 5 minutes, 25 minutes 125 minutes, 600 minutes....

Finally keep in mind back end insider attack. If you collaborate with a moderator or an admin, this person can of course cause damage. You should give priviledge only on trusted people.
Most "hacks" occur by automated systems sniffing about after weaknesses, thereafter attempting to infect your server with malicious software to use it for anything like a botnet to a mail bouncer, DDOS node or whatever else. It doesn't matter whether you've got sensitive info on it or not or whether there's a reason for a human to go after it or not. Of course if you do have personal info on it it does make any breach worse.

While it's pretty hard--if not impossible--to guard against all possible attacks, guarding against the top list of exploits should be a bare minimum if you want to run a server for any purpose. Because you should assume that the most common exploits will be tested on your server by automated systems and botnets.

Things like the server's PHP configuration, if you use it, is one of the most common things I see foreign random systems sniffing after on the servers I maintain, for instance.
Well, the rpg maker has really nothing in common with the security model of your server.

Probably web servers may need to connect via websockets in rm to be faster, and to have as much security as they can.

Of course, you can have DDoS Attacks wich any silly person may want to do and blah blah blah.

Don't worry too much about that kind of problems, the service you make a deal with has to provide you the security by itself, unless you are hosting on your own, if you are, you may want to use something like nginx, have a moderate decent pc (servers don't need more power than desktop, unless they are doing tons of heavy computations wich usually aren't) and followe the practics the same people developing the server suggest you to follow.

Security of course is a big concern, but there are many tools to overcome the most common types of fails.

We should also look for security holes in the maker and report them to degica/enterbrain/the libraries they are using (the always use some).

But don't worry too much, if you are planning a free game it won't do anything, if you are having a paid game you may avoid using the web version, unless you also create a platform like 'online steam'

Original thread: https://forums.rpgmakerweb.com/threads/security-concerns-for-online-support.44482/