r/HomeServer • • 14d ago

vulnerability found in my home server setup

I recently discovered a vulnerability in my home server setup that I want to share. I was using an outdated version of Nextcloud for file storage, and turns out there was a security flaw that could let unauthorized access.

I immediately updated to the latest version and set up some extra security measures like two factor authentication and regular backups. Has anyone else run into this kind of issue? What steps did you take to secure your home server after finding a vulnerability?

0 Upvotes

10 comments sorted by

4

u/omlette_du_chomage 14d ago

TF is this post and these bot comments... 

2

u/zeblods 14d ago

Every services accessible from outside your local network is a potential point of entry because of vulnerabilities.

There's no magical solution: either keep the services private, or keep the services up-to-date at all time and hope there's no zero day. You can mitigate the risk by implementing some additional hardening such as a WAF, geo-blocker, etc. but it will never be 100% safe.

1

u/Atlas-D 14d ago

I update my server and all my containers weekly. All the containers run as non root with a dedicated user that only has access to the files it needs. No app is directly facing the internet, everything is behind a VPN.

1

u/mbround18 14d ago

Similar situation though mine was user error I thought I had watch dog updating my docker but I miss configured it. Had my next cloud hosed, reinstalled and restored a backup prehose, and took it off the public internet.

It sucks but I just got my wife to use a VPN to access on home net things. A lot of my once public stuff is going dark for only on the local net now.

1

u/Motor-Concentrate788 14d ago edited 14d ago

Never expose your nextcloud instance (or any service really) to the public internet unless you actually want to share it with the entire world. Keep it behind a vpn so only devices within your network can connect to it. The easiest way to do this is by using tailscale. If you're not comfortable using an external proprietary vpn then there are self-hosted options too such as wireguard, openvpn, headscale, and netbird.

On top of this, other security measures you can do are:

  1. set up daily automatic security updates and reboots
  2. disable ssh password authentication on your server
  3. set your firewall to block all incoming ports that you're not currently using
  4. Set up fail2ban to automatically ban scanner ip's

-2

u/ButterscotchFar1629 14d ago

Wow…. An AI generated response…

1

u/Motor-Concentrate788 14d ago

Huh? Which part of my response looks like its made by AI to you? Sorry if my writing is too AI-like i guess...

-1

u/ButterscotchFar1629 14d ago

It’s totally ChatGPT produced….

-1

u/autisticit 14d ago

To a bot post

1

u/ButterscotchFar1629 14d ago

Didn’t look like a bot post to me