Re:Glibc getaddrinfo stack-based buffer overflow
by 0x0 on Tuesday February 16, 2016 @10:46AM
(#11110583)
It's worse than that. According to https://sourceware.org/ml/libc-alpha/2016-02/msg00416.html any system that performs a DNS lookup may be hit. And it's not hard to cause DNS lookups to happen (think reverse DNS lookups when logging login attempts, hovering a link in an email or webpage, etc):
- A back of the envelope analysis
shows that it should be possible
to write correctly formed DNS
responses with attacker controlled
payloads that will penetrate a
DNS cache hierarchy and therefore
allow attackers to exploit machines
behind such caches.
So even if you trust your local ISP and DNS servers, any random domain on the internet may be resolving to an exploit.Also, this vulnerability has apparently been around since 2008, and sitting in public view on the bugtracker for many months. Who knows who else has been sitting quietly on this for however long? :-/
Re:Glibc getaddrinfo stack-based buffer overflow
by peterwwillis on Tuesday February 16, 2016 @10:39AM
(#11110516)
If you request a network connection to an attacker-controlled host, your network software may try to resolve the attacker's host name. The DNS NS record of their domain may then specify your resolver directly look up the record using the attacker's own name server, meaning you are directly doing DNS queries against the attacker's NS.
So in theory, all you need to be exploited is to connect to a compromised host and resolve its hostname.
Re:Glibc getaddrinfo stack-based buffer overflow
by thrownaway2424 on Tuesday February 16, 2016 @10:51AM
(#11110620)
It could be even worse than that. If the attacker tries to connect to you, your server may try to reverse their IP for logging, and the attacker can control the PTR record. Or the attacker could send you an email that's guaranteed to bounce, and they control the return path that your mailer has to resolve.
Re:Glibc getaddrinfo stack-based buffer overflow
by mschuster91 on Tuesday February 16, 2016 @10:38AM
(#11110509)
> Which is serious but not so easily exploitable (I think).
Oh it is. All you need is an open wifi with a router only dealing IPv4 addresses... start up radvd and serve your machine as authoritative IPv6 DNS server, and profit.
Re:Glibc getaddrinfo stack-based buffer overflow
by tremon on Tuesday February 16, 2016 @11:27AM
(#11110931)
That requires local area access. So maybe easily exploitable, not easy to do mass infections.
Besides, how many distro's are actually configured for dhcpv6 stateful configuration out of the box?
Re:Glibc getaddrinfo stack-based buffer overflow
by mschuster91 on Tuesday February 16, 2016 @07:32PM
(#11114236)
Windows and OS X AFAIK, as well as the Debian installer... not sure about mainstream distros though.
From what I'm reading this should only affect systems that use a compromised DNS server or in a MitM attack scenario. Which is serious but not so easily exploitable (I think).