Hacker News new | ask | show | jobs
by kevg123 21 days ago
NextCloud isn't too bad
1 comments

These days I just don't trust Nextcloud exposed to the public internet. You basically need to be a full time dev ops / security engineer to keep on top of things like PHP2Shell fast enough.

My setup is Nextcloud behind tailscale and if I need to share something I just put it on google drive temporarily.

With a reverse proxy, your only public endpoint is port 443 and nginx or whatever webserver you choose. Sure, the web server might also have zero days but the attack surface is relatively small.
Which was enough exposure to get a shell on your server via the recent php exploit. If you run a public facing nextcloud server you need to be ready to update at least within an hour of patches releasing.
NextCloud AIO runs in Docker containers, so it'd be a jump to break out of that, but, yes, they could exfiltrate your data, though the PHP2Shell PoCs I've seen aren't trivial (unlike the Alpine ssh vulnerability).

I guess it's choose your poison. What are?

P(companies&governments spying on you)

P(hacker stealing your files)

The impacts of the latter are probably more dangerous but unless you're a juicy target, I'd imagine most hackers are going to go for rich grandmas (sadly). So my gut feelings are ~0.95 and ~0.04, respectively.

For me I don't share that many files with others and the ones I do share are usually less confidential than the rest. So I run Nextcloud behind tailscale and put just the share files on google drive.

I might eventually look in to an automatic updates setup for nextcloud to keep up on patches faster than I could do it manually.