r/MultiplayerGameDevs • easel.games • 14d ago

Have you been affected by nginx2root, php2shell, node2shell, java4shell or any other server-side security vulnerability recently, r/MultiplayerGameDevs?

So many security vulnerabilities found within the past month, perhaps more than I've ever seen ever. Just today I learned of nginx2root, which affects nginx configurations that have HTTP/2 enabled, and had to quickly scramble to patch it. I was really glad to remember that I setup nginx to run in docker (using docker compose), so it was a super easy update. The official docker image for nginx was updated quite quickly, whereas I think the debian package is still behind.

I've been watching my nginx traffic and there is a constant stream throughout the day of people probing for vulnerabilities, so when I saw nginx2root I felt like I really had to get on top of that.

I've had nginx running on docker for a while, but with host networking enabled and also all the cached data is writing through to mounted storage. This means all the slow parts of docker are avoided, while still making it easy to update. So very thankful to past-me for setting this up!

For the other vulnerabilities, I'm writing my sever in Rust which so far has avoided the recent wave of vulnerabilities (and hopefully will for a long time, since it is Rust after all). But I am running some third-party services - Umami analytics is Node, and PgAdmin is PHP (I think) - so have had to keep those updated. Thankfully they were also docker images too so very easy to update.

How have you all been going with the recent wave of security vulnerabilities?

3 Upvotes

1 comment sorted by

2

u/sessamekesh 14d ago

Most of the things that have hit me have been more in the auxiliaries, and even those I've tried to keep a pretty good security posture to minimize the damage.

For the most part... just try to keep everything up to date, follow the principle of least knowledge and the principle of least power, and design everything network-facing with an understanding of what a compromise in the service looks like.

I'm writing my server in Rust which so far has avoided the recent wave of vulnerabilities (and hopefully will for a long time, since it is Rust after all).

That's a good start and will protect you from a large category of issues, but you should definitely be framing threat vectors against a more "Swiss Cheese" model. Rust will not protect you from all types of security bug. I have seen no evidence specifically with the nginx2root bug that writing nginx in Rust would have meaningfully prevented this bug, for example.