Stories
Slash Boxes
Comments
typodupeerror delete not in

Comments: 197 +-   New DoS Vulnerability In All Versions of BIND 9 on Tuesday July 28, @09:02PM

Posted by kdawson on Tuesday July 28, @09:02PM
from the binding-with-briars-my-joys-and-desires dept.
security
internet
Icemaann writes "ISC is reporting that a new, remotely exploitable vulnerability has been found in all versions of BIND 9. A specially crafted dynamic update packet will make BIND die with an assertion error. There is an exploit in the wild and there are no access control workarounds. Red Hat claims that the exploit does not affect BIND servers that do not allow dynamic updates, but the ISC post refutes that. This is a high-priority vulnerability and DNS operators will want to upgrade BIND to the latest patch level."
story

Related Stories

This discussion has been archived. No new comments can be posted.
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More
Loading... please wait.
  • This is very interesting. I'm sure the people behind BIND will scramble to get things sorted out ASAP, but I wonder how long it will take other vendors (Apple, I'm looking at you!) to release a patch.

    I do have to wonder about exploits like this that seem initially incredibly serious, yet nothing much comes from them and they don't seem to get exploited to the extent that you might expect they would - this one reminds me of l0pht's famous claim that they can bring down the internet in 30 minutes. If this vul

  • Use Unbound or NSD (Score:5, Informative)

    by nwmcsween (1589419) on Tuesday July 28, @09:13PM (#28861589)
    I don't want to bash BIND but it has had a fair amount of sec issues (well a lot), try unbound or nsd instead http://unbound.nlnetlabs.nl/ [nlnetlabs.nl] http://www.nlnetlabs.nl/projects/nsd/ [nlnetlabs.nl]
    • by medlefsen (995255) on Tuesday July 28, @09:54PM (#28861789)
      or djbdns. We use it where I work and other than a slight adjustment to djb-land it has been wonderful. I know people appreciate how powerful BIND is and maybe some people need that. I suspect though that most people just need their DNS servers to serve their DNS records or provide a caching DNS server for local lookups and for that BIND seems to be bloated and insecure.
    • Re: (Score:3, Interesting)

      PowerDns for the win. Plus it reads legacy BIND zone files.

  • Well DNS operators do appear to be in a bit of a bind don't they?

  • by mcrbids (148650) on Tuesday July 28, @09:17PM (#28861609) Journal

    Was once the day whe a notice like this would kick off a flurry of migrationn plans, compiler scripting, compiling, and restarting servers in the dead of night. (and bonuses to match!)

    But now?

    # yum -y update && shutdown - r now

    Sometimes I pine for the 'good old days'. A little. (ok, hardly at all)

    • You seem to be just taking all changes and rebooting. I do that all the time on my ubuntu laptops but I wouldn't manage my servers that way.

      Having said that patching in netbsd will require a compilation at my end. It would be nice if I could just update a package. The infrastructure is right there for it...
      • by secolactico (519805) on Tuesday July 28, @11:44PM (#28862369) Journal

        You seem to be just taking all changes and rebooting. I do that all the time on my ubuntu laptops but I wouldn't manage my servers that way.

        More so because some package managers (such as CentOS) tend to replace customized init.d files with the stock ones (renaming the ones you had). This is not really a big deal, but it sometimes breaks some services.

        • Re: (Score:3, Insightful)

          More so because some package managers (such as CentOS) tend to replace customized init.d files with the stock ones (renaming the ones you had). This is not really a big deal, but it sometimes breaks some services.

          If you are modifying packaged files that aren't marked as %config in the RPM spec then you're doing it wrong. 99% of the time you don't need to modify those files anyway, the other 1% of the time you really should be building a custom package and adding it to yum's exclude list.

    • I'm just hoping that CentOS pushes out the update before 10:00 PM MST today.

      Why?

      So I'll get my daily e-mail status update, telling me to do just that: run yum, and then restart (just bind) -- as opposed to seeing it tomorrow.

      As a footnote, it is generally a good thing to subscribe to whichever vendor's security-announce list that you use. It is really nice getting e-mail notifications of security-related package updates. CentOS has one, right here: http://lists.centos.org/mailman/listinfo/centos-announce [centos.org]

    • by lordkuri (514498) on Tuesday July 28, @09:23PM (#28861629)

      Why in the holy hell would you reboot a server to put a new install of BIND into service?

      • Because modern-day admins don't know how to restart a service?

        Oh, wait, these are fellow Linux "admins" we're talking about...
      • by ZeekWatson (188017) on Tuesday July 28, @10:50PM (#28862089)

        If you're running a serious server you should always do a reboot test after installing any software. I've been burned many times by someone doing a "harmless" installation only to find out 6 months later a critical library was upgraded with an incompatible one (a recent example is expat 2.0) and the server doesn't boot like it should.

        Always reboot! Even with the super slow bios you get in servers nowadays it should only take 2 minutes to be back up and running.

          • Re: (Score:3, Interesting)

            Why? You're DNS servers are clustered and load balanced right? rrright? Those of us that need our infrastructure up don't think twice about rebooting even during the day! A golden age we live in indeed when I can just take the server out of the load balancer rotation, apply updates, perform reboot rest, and then put it back into rotation repeating the steps for all servers in the cluster.
      • Because you may have a stack of other pending updates, particularly kernels, and this has been the first "gotta switch" update in quite some time for those core servers? Also because without the occasional reboot under scheduled maintenance, it's hard to be sure your machines will come up in a disaster. (I've had some gross screwups in init scripts and kernels cause that.)

    • And hope to hell you've got some sort of LOM for when your server doesn't come back up.
  • by Yvan256 (722131) on Tuesday July 28, @09:24PM (#28861631) Homepage Journal

    Good thing I'm using FreeDOS!

  • According to this document [ripe.net], BIND 9 has issues including being monolithic, having a "Bad Process Model", Hard to Administer and Hard to Hack. That's not a good reputation to have.

    To some extent, these issues apply to everything Linux save for the last point. I am waiting for the time these points will not apply to Linux and its associated software.

    I must say that understanding BIND's configuration file was not that easy for me at first but after trying several times, I can say I am almost an expert. Things can be made simpler though. A text based interactive system could be of a lot of help. Tools like Webmin come in handy too though they require that a system be running initially.

      • Recent versions of BIND (8+) are not terrible to administer, and have much more reasonable data files. Older version were *really* nasty, and had a data file format so complicated that we invented a dedicated zone-transfer mechanism just so people could send DNS data to each other.

        And while djbdns uses an unconventional admin system with lots of environmental variables, that's a one-time setup (that is probably done in large part by your package manager) and the actual data files are dead-simple -- plain text, one record per line, can do DNS lookups at build time, can concatenate files, etc. There are valid complaints to be made about djbdns, but I don't think "difficult to wrangle" is one of them.

        • Re: (Score:3, Informative)

          " Older version were *really* nasty, and had a data file format so complicated... "

          Rememeber that this was a product of the early 1980s; Brian Reid, Director of Digital Equipment Corporation's Network Systems Laboratory ("decwrl.uucp") hired a kid, Paul Vixie, to take the buggy Berkley B-tree code and turn it into something resembling professional software. At the time even C was not even close to ubiquitous, Assembler was though and in fact the great majority of code written for the early microprocessor ba

  • by Olmy's Jart (156233) on Tuesday July 28, @09:28PM (#28861653)

    From the advisory: "Receipt of a specially-crafted dynamic update message to a zone for which the server is the master may cause BIND 9 servers to exit. Testing indicates that the attack packet has to be formulated against a zone for which that machine is a master. Launching the attack against slave zones does not trigger the assert."...

    So an obvious workaround is to only expose your slave DNS servers and to not expose your master server to the Internet. That's part of "best common practices" isn't it? You have one master and multiple slaves and you protect that master. Come on, this is pretty simple stuff. Just simple secure DNS practices should mitigate this. Yeah, if you haven't done it that way to begin with, you've got a mess on your hands converting and it's easier to patch. But patch AND fix your configuration.

        • by raddan (519638) * on Tuesday July 28, @11:01PM (#28862151)
          Because lots of people don't want intruders being able to affect the actual zone data in case an outward-facing DNS server gets compromised. Using SSH to transfer zone data is much easier and more secure than BIND's own zone transfer mechanisms (e.g., you can automate and schedule them), and you don't have to worry about zone transfers through firewalls. Troubleshooting all the weird crap that can happen between different DNS daemons all supposedly doing regular AXFRs is a real pain in the ass. SSH makes life easier.

          If having a DNS machine on the Internet that thinks it is a master really is a mistake, when then, BIND9 is a piece of shit. This is the most straightforward thing a DNS daemon should be asked to do.

          Nowhere in BIND's manual does it say people have to use BIND in a master/slave setup.
          • Re: (Score:3, Informative)

            So I'm responding not because I disagree with your conclusions, but I disagree with the logic you're using to justify them:

            Because lots of people don't want intruders being able to affect the actual zone data in case an outward-facing DNS server gets compromised. ...
            If having a DNS machine on the Internet that thinks it is a master really is a mistake, when then, BIND9 is a piece of shit. This is the most straightforward thing a DNS daemon should be asked to do.

            You start off with a reasonable statement (th

            • As kju responded, you can reload on particular zones if you want. The logs seem to suggest that bind itself only actually reloads the zones which have changed (i.e. mtime is newer than the last time it was loaded). I only get messages that it's loading every zone if I actually restart bind (stop and start), telling it to reload I only get messages about zones that have actually been changed.

              I haven't noticed any performance hit from doing a simple reload, but I only have 120 zones.

              If we were supplying secon

  • by syousef (465911) on Tuesday July 28, @09:30PM (#28861669) Journal

    ...to Windows! DOS is just so 80's and 90's it's not funny.

    (Suggested mod: +1 funny)

  • djb (Score:5, Funny)

    by dickens (31040) on Tuesday July 28, @09:40PM (#28861721) Homepage

    Somewhere I think djb [cr.yp.to] is managing to both smile and raise his eyebrows simultaneously.

  • This is a reason why I want to be able to do LDAP based zone updates.

  • by Bilbo (7015) on Tuesday July 28, @10:02PM (#28861831) Homepage
    It's unlikely that, if you're running a DNS server inside of your private network, someone on the outside is going to be able to hit it. But then, like all other vulnerabilities, you combine this one with a couple of other attacks (such as a non-privileged login), and all of the sudden you've got something really dangerous. :-(
    • Re: (Score:3, Insightful)

      A server behind a firewall does not imply a server on a private network. You can have firewalls in front of a DMZ on a public address providing services. Firewalls are used for much more than merely "private networks". Those are two orthogonal issues.

      OTOH... A master on a private network providing zone feeds to slaves on various other networks (firewalled or not) on public addresses would be a very good idea.

  • OMG... (Score:5, Interesting)

    by Garion911 (10618) on Tuesday July 28, @10:56PM (#28862119) Homepage

    I reported a bug *very* similar to this back in Oct, and only now its coming to light? WTF? I submitted this back in january and it was rejected. Ah well. Here's my page on it: http://garion.tzo.com/resume/page2/bind.html [tzo.com]

  • by kju (327) * on Wednesday July 29, @12:02AM (#28862459)

    For a quick "fix":

    iptables -A INPUT -p udp --dport 53 -j DROP -m u32 --u32 '30>>27&0xF=5'

    Will block (all) dnsupdate requests.

  • Poor coding (Score:3, Interesting)

    by julesh (229690) on Wednesday July 29, @03:34AM (#28863463)

    Why on earth is BIND shipping with assertions that cause the entire server to exit when they fail? They should just cause processing of the current request to exit.

Genius is one percent inspiration and ninety-nine percent perspiration. -- Thomas Alva Edison