Thankfully no one assumed NFS secure for the public internet anyway so this should be minimally impactful. Also looks like it was patched upstream months ago.
Still, just another example of why C code can’t be exposed to the internet.
Well... I've seen enough examples in the past years of how trivial it is to get into bigger enterprise networks.Often solely with social engineering. NFS is in use at various places internally in my experience. So this can end up worse than anticipated if taken too lightly imo. Defense in depth...
NFS in particular is an old protocol and authentication was bolted on later in its long history. It's pretty common to configure it in a way that you trust the client when they say they're root. This adds to the perception that nobody would assume it's safe to expose.
NFSv3 assumes that uid/gid synchronization is in place, and maps root activity on the shared volume to some kind of nobody (unless the volume is exported nosquash). The username is irrelevant; the uid controls access (AFAIK).
NFSv4 needs idmapd, which is a different beast altogether.
I assume you mean "all Ubuntu installs of NFS" here. Your statement could be misread by those who don't know as "all Ubuntu installs", but NFS is not installed or turned on by default. I would expect very few installs do overall (but of course all of them will in specific environments).
It's really not the most shocking thing in the world. I've never heard of anyone exposing the NFS port to the public internet intentionally, because people who run NFS servers know this is not expected to be secure.
Not public internet, no, but open to internal networks.
For example: University networks. Many installation with NFS shared home. Can people now get root on the server? I'm not sure you need mounting rights on the server (i.e. a /etc/exports entry) to exploit this.
Uh, I think part of the motivation for NFSv4 was the poor performance of NFSv3 over long distances (long fat pipes) across the Internet. But that was 20 years ago, before cloud computing / cloud storage became a thing.
Still, just another example of why C code can’t be exposed to the internet.
Replies (6)
Replies (1)
Replies (2)
NFSv4 needs idmapd, which is a different beast altogether.
Replies (2)
Still, getting root on your internal fileserver isn't great.
Replies (1)
This is how you can tell you’re reading a post from a Real Old Time hacker. Hasn’t been that way for a long time.
Replies (2)
Replies (2)
Replies (1)
If someone sets up an NFS server, they know what kind of risk they open themselves up to.
Replies (2)
I don't think preauth RCE is an expected risk of setting up NFS, actually.
Replies (2)
Replies (3)
Continue this thread (1 replies) →
Continue this thread (1 replies) →
Then, you need to add volumes to /etc/exports with allowed hostnames (with lots of parameters for access control).
I'm assuming that anything disallowed by /etc/exports is not allowed, this exploit included.
Replies (1)
Replies (1)
https://www.linuxjournal.com/content/encrypting-nfsv4-stunne...
How little have we learnt since then.