Slashdot Log In
Running BIND 4 or 8? Upgrade!
Posted by
jamie
on Tue Jan 30, 2001 03:00 AM
from the someone-was-bound-to-find-these dept.
from the someone-was-bound-to-find-these dept.
The Dev
was the first of several zillion to point out that security holes were found
in BIND. The
detailed table
of known vulnerabilities will help clarify (and it has tarball links too), but the short version is, if you're running BIND 4 or BIND 8, set aside some time today to upgrade to 4.9.8 or 8.2.3 (not beta, betas of 8.2.3 are vulnerable). And now's a good time to reconsider version 9, too.
SecurityFocus warns
that the last time a BIND hole of this magnitude was found, it was followed by a "cyber-crime wave." Exploits for these holes were successfully created by
COVERT Labs,
but nobody seems to know whether they're in the wild yet. Obviously, they soon will be. Post your questions and answers about upgrading below.
This discussion has been archived.
No new comments can be posted.
Running BIND 4 or 8? Upgrade!
|
Log In/Create an Account
| Top
| 237 comments
(Spill at 50!) | Index Only
| Search Discussion
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.

Re:Who needs BIND? (Score:3)
Or rather, track record of having known security related bugs, because it is so widely used and hence so widely scrutinized. Whatever it is that you think has less bugs because of less known security issues, ask yourself if it is as widely deployed and as widely scrutinized as bind.
Maybe we should be more forgiving to Microsoft security issues then?
As long as the patch is released in a timely fashion (which means a day or two tops), and they don't attempt to cover up the "issue", then yes we should be. Unfortunately, neither of these things describes Microsoft behavior in most cases.
Debian update instructions (Score:3)
deb http://security.debian.org/ potato/updates main
Then do a:
apt-get update
followed by a:
apt-get upgrade
DONE.
Who needs BIND? (Score:3)
---------------------------
"The people. Could you patent the sun?"
A couple of important points (Score:3)
Second, and more importantly, DO NOT RUN A NAMESERVER AS ROOT. There are -u and -g flags when starting named that allow you to set which user the nameserver will run as, much in the same way that IRC servers are run as unpriveleged users. Then if the server is compromised, you've only lost an account and not the whole system, assuming no one will be able to hit you with a local exploit.
Ok (Score:3)
--
Re:aka "named" (Score:3)
Bind 9 not related to bind 8/BSD nto safe if..... (Score:3)
BSD users are still screwed if they downloaded the source and compiled from source. The changes to BSD's BIND 4 are only for those people that used open BSD's implementation of BIND4.
There are severl alternatives, and having used them all, we had to switch back to bind because of interoperative problems or performance issues. Some solutions are.....
Maybe one of these solutions will work for you.
Re:djbdns is the way to go! (Score:3)
Qmail appears abandoned. Many people are making patches, but what a pain in the ass, get the source then apply the 3 patches you need and hope they work together. Qmail is a great program, BUT if the author isn't going to keep improving it, then he should turn it loose to those that are.
aka "named" (Score:3)
It's probably worth mentioning that the program "named" (as seen in the service control activity panel of LinuxConf) is "bind".
djbdns is the way to go! (Score:4)
http://cr.yp.to/djbdns.html [cr.yp.to]
Re:Chroot jail with bind 9? - answer (Score:4)
I built bind 9 it barfed a little, but all I
really needed to do was make the
under the chroot directory world writable. And
bind 9 complained about not having a $TTL
directive in my zone files. Once I fixed those
things, I was up and running without having to
change named.conf.
I found the following things helpful:
named -g -u <user> -t <chroot_dir>
this runs named in the foreground without
writing to log files and lets you see what's
going on with it for troubleshooting. I
also used ktrace to good effect: use truss
on Solaris, strace on Linux and ktrace on
BSDs and you'll see what named is trying to
do (in particular, which files it's trying to
open).
I'm running OpenBSD and (now) BIND 9.1
Red Hat Releases updated RPMs (Score:4)
Re:OpenBSD Immune (Score:4)
OpenBSD 2.8 http://www.openbsd.org/errata.html [openbsd.org]
OpenBSD 2.7 http://www.openbsd.org/errata27.html [openbsd.org]
The rebuild and install is trivial.
--
Re:What's it take to go from BIND 8.2.x to 9.1 ?? (Score:4)
It's all in the docs/misc/migrating file in the 9.1.0 tarball...
Re:In the wild (Score:4)
Because this announcement is on slashdot does NOT imply there are exploits available in the wild for these security holes.
An exploit "in the wild" implies it is generally available to any script k1d that wants to download it, and as yet there are no "known" attack exploits available on the popular crack download sites.
This does not mean there are no exploits available. A very skilled cracker (or hacker doing it on a theoretical basis) may already have worked out what code he can get by the BIND signiture parser buffer overflow, and thus what he can get the CPU to run.
I hasten to add though that because of the way BIND parses it's input to this buffer, the attacker cannot actually run arbitrary code, but only use code containing characters which can get through the parsing routine.
Excellent description at The Register [theregister.co.uk].
Re:In the wild (Score:5)
The BIND 4 hole(s) is/are going to be a BITCH to exploit, certainly not impossible; but hard enough that it won't be suprising if such never sees wide distribution. Quoth the original advisory [pgp.com]:
Re:Who needs BIND? (Score:5)
Re:Debian update instructions (Score:5)
When making security updates, verify first the debs really are the ones announced on:
http://lists.debian.org/debian-security-announc
A mailing list you should be subscribed to, if you run public services with debian. Relying on
Re:Avoiding This Altogether (Score:5)
The other is accepting unchecked amounts of input from untrusted users. Remember that C (unlike, for example, Pascal, Java or LISP) does no bounds checking, so you have to implement bounds checking yourself.
If you do the equivalent of:
char buffer[ BUFFLEN];int i = 0;
while( ! feof( stdin))
{
buffer[ i++] = getchar();
}
buffer[ i] = '\0';
That's going to lead to a buffer overrun which someone can exploit. If you do the equivalent of:
char buffer[ BUFFLEN];int i = 0;
int maxinput = BUFFLEN - 1;
while( ! feof( stdin) && i < maxinput)
{
buffer[ i++] = getchar();
}
buffer[ i] = '\0';
Then you're reasonably safe. But to be safer still, don't use C to write daemons which take input from untrusted third parties, and don't run daemons as root - give each it's own separate role account.
A quote seems appropriate... (Score:5)
One Ring to find them,
One Ring to bring them all
and in the darkness BIND them.
Hmmm... Interesting.
Re:Avoiding This Altogether (Score:5)
Sure. There is a mailing list over at SecurityFocus called SECPROG that discusses secure programming practises. The idea is to produce a white paper that describes how to write secure code. The draft can be seen here [securityfocus.com] and is probably the definitive how-to in existence at the moment.
Hope that helps.