Live data from Hacker News

RCE via ND6 Router Advertisements in FreeBSD

freebsd.org

11–20 of 85 posts

Re: RCE via ND6 Router Advertisements in FreeBSD

#11
post #5

vulnerable to remote code execution from systems on the same network segment Isn't almost every laptop these days autoconnecting to known network names like "Starbucks" etc, because the user used it once in the past? That would mean that every FreeBSD laptop in proximity of an attacker is vulnerable, right? Since the attacker could just create a hotspot with the SSID "Starbucks" on their laptop and the victim's lapto…

dozens of people will be affected

Re: RCE via ND6 Router Advertisements in FreeBSD

#12
post #9

IPv6 is a prerequisite for the bug to be exploited, it won't affect anyone.

Why, is IPv6 activation manual in FreeBSD?

It's enabled by default, I was mostly talking about being in a lan with active ipv6, imo that's not that common.

Re: RCE via ND6 Router Advertisements in FreeBSD

#13
post #9

Earlier quoted context omitted.

Why, is IPv6 activation manual in FreeBSD?

It's enabled by default, I was mostly talking about being in a lan with active ipv6, imo that's not that common.

That's pretty standard where I am. Every Telstra router comes with IPv6 enabled.

Re: RCE via ND6 Router Advertisements in FreeBSD

#14
post #4

Oh that's a nasty one, embedded FreeBSD users will have a hard time mitigating this.

Free jailbreaks for everyone though!

We had a soccer player in NL that was wildly popular and he had these funny remarks every now and then which got him nicknamed the most well known dutch philosopher. One of these was 'every advantage has its disadvantage', I guess this is one of those.

Re: RCE via ND6 Router Advertisements in FreeBSD

#15
post #9

Earlier quoted context omitted.

Why, is IPv6 activation manual in FreeBSD?

It's enabled by default, I was mostly talking about being in a lan with active ipv6, imo that's not that common.

IMHO you do not need "active" IPv6. Most LANs (unless you have some switch-level filtering that blocks router advertisements from "unauthorized" nodes) can transport such IPv6 packets. Then it just takes being connected to the LAN and being able to send an arbitrary ICMP6 packet (which probably means being root on the attacker machine, not a very high barrier I'd say).

Re: RCE via ND6 Router Advertisements in FreeBSD

#16
post #5

vulnerable to remote code execution from systems on the same network segment Isn't almost every laptop these days autoconnecting to known network names like "Starbucks" etc, because the user used it once in the past? That would mean that every FreeBSD laptop in proximity of an attacker is vulnerable, right? Since the attacker could just create a hotspot with the SSID "Starbucks" on their laptop and the victim's lapto…

If you run FreeBSD on your laptop you don't auto connect to public WiFi. Joking, but not that much :)

Your wifi chip probably isn’t supported tbh.

Re: RCE via ND6 Router Advertisements in FreeBSD

#17
Can we be done with the house of cards that are shell scripts everywhere?

Anyways, this feels like a big issue for "hidden" FreeBSD installs, like pfSense or TrueNAS (if they are still based on it though). Or for servers on hosting providers where they share a LAN with their neighbors in the same rack.

And it's a big win for jailbreaking routers :D

Re: RCE via ND6 Router Advertisements in FreeBSD

#18
post #13

Earlier quoted context omitted.

It's enabled by default, I was mostly talking about being in a lan with active ipv6, imo that's not that common.

That's pretty standard where I am. Every Telstra router comes with IPv6 enabled.

As it should be. If your ISP isn't giving you ipv6, they're not giving you internet access and you should sue for your money back.

Re: RCE via ND6 Router Advertisements in FreeBSD

#19

Can we be done with the house of cards that are shell scripts everywhere? Anyways, this feels like a big issue for "hidden" FreeBSD installs, like pfSense or TrueNAS (if they are still based on it though). Or for servers on hosting providers where they share a LAN with their neighbors in the same rack. And it's a big win for jailbreaking routers :D

Sure, as long as the solution isn't to just bolt on another distinct DNS monolith. The root of the problem IMO is that no libc, AFAIK, exports an API for parsing, let alone composing or manipulating, resolv.conf formatted data. The solutions have either been the same as FreeBSD (openresolv, a portable implementation of Debian's resolvconf tool), or just freezing resolv.conf (notwithstanding occassional new libc features) and bolting atop (i.e. keeping in place) the existing infrastructure a monolithic resolver service with their own bespoke configs, such as macOS and Linux/systemd have done. But resolv.conf can never go away, because it's the only sane and portable way for your average userland program to load DNS configuration, especially async resolver libraries.

It's a coordination problem. Note that the original notion of resolvconf, IIUC, was it was only stitching together trusted configuration data. That's no excuse, of course, for not rigorously isolating data from execution, which is more difficult in shell scripts--at least, if you're not treating the data as untrusted from the get go. It's not that difficult to write shell code to handle untrusted data, you just can't hack it together without keeping this is mind. And it would be much easier if the resolver infrastructure in libc had a proper API for dealing with resolv.conf (and others), which could be exported by a small utility which in turn could be used to slice and dice configurations from shell scripts.

The problem with the new, alternative monoliths is they very quickly run off into the weeds with their crazy features and configuration in ways that create barriers for userland applications and libraries to rely upon, beyond bootstrapping them to query 127.0.0.1:53. At the end of the day, resolv.conf can never really go away. So the proper solution, IMO, is to begin to carefully build layers around the one part that we know for a fact won't go away, rather than walking away with your ball to build a new playground. But that requires some motivated coordination and cooperation with libc developers.

Post reply on HN