Slashdot Log In
"DNS Forgery Pharming" Attack Against BIND 9
Posted by
kdawson
on Tue Jul 24, 2007 01:02 PM
from the better-hope-sitekey-works dept.
from the better-hope-sitekey-works dept.
Monley writes "Help Net Security is running a story about a severe flaw in BIND's implementation that allows fraudsters to efficiently predict generated random numbers without the need to control the route between the user and the DNS server. (Here are HTML and PDF versions of the paper.) Using this vulnerability, fraudsters can remotely forge DNS responses and direct users to fraudulent websites, which can steal the user's sign-in credentials and do other mischief. The flaw was discovered by security researcher and Trusteer's CTO, Amit Klein." The ISC has released a patch to BIND 9.
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
Loading... please wait.
Come again? (Score:4, Insightful)
Troll? Y'all are NEWBS! (Score:2)
Re: (Score:2)
Re: (Score:2)
Re: (Score:3, Insightful)
Consider this: BIND is the only server that I've ever seen a distro package so as to be easily chrooted. Why do you suppose that is?
Because BIND is the only one that's easy to run in a chroot. OpenBSD also runs Apache in a chroot, but it means you lose features, like the ability to share everyone's ~/public_html. BIND is quite rare among servers in that it's non-trivial but has fairly meagre requirements when it comes to disk access. I can't think of any others off the top of my head that meet this requirement, with the exception of an ftpd that is only used for anonymous FTP, and these tend to support chroot too now.
Re: (Score:3, Insightful)
Unfortunately a lot of people seem stuck in the past and still judge BIND from the 4.x and 8.x days.
The flaw was discovered by... (Score:2)
IMHO, the story wouldn't garner any interest whatsoever if the summary did NOT include mentioning the CTO. Look at the grief your average employee get when they publish an exploit.
Our product not vulnerable to flaw we discovered.. (Score:4, Insightful)
The TFA recommends using Trusteer's product to defeat this attack:
So, to recap. Vendor discovers a flaw and recommends their product.Film at 11:00.
A flaw in BIND? (Score:2)
Isn't it part of the INSTALL doc to run it in a VM/Jail/Chroot?
Re: (Score:2)
Re: (Score:2)
Again.... (Score:4, Funny)
Re: (Score:2)
Re: (Score:2)
Re: (Score:2)
Well, I think the thing is that you can fit only so many bugs per line of code, and both are growing...
Re: (Score:2)
This particular one is - as others have pointed out - about 10 years old and really doesn't matter.
Don't Diss Bind (Score:4, Insightful)
In 2007, where 1000,s of "researchers" spend their lives trying to break the Internet.... This stuff happens. BIND, SendMail and classic solutions are attacked. Amazingly they hold up better than Windows!
Re: (Score:2)
Not quite, try about 10 years later.
Paul Vixie when at decwrl was funded by his boss, Brian Reid to take the Berkley B-Tree code and whip up a name daemon. This cost Dec quite a bit of money. This was in the mid to late 80s or so. Remember that the relevenat RFC for the domain name system only came out in 86.
Re: (Score:2, Informative)
What was that again?
Re: (Score:2, Insightful)
Since this is Slashdot the parent post will be modded up and I'll be modded down, but the truth of the matter is that the DNS server that ships with Windows has never has a single vulnerability.
Wow, you must have a VERY short memory. Try thinking back to just earlier this year, when Microsoft Security Advisory (935964) [microsoft.com] came out. And that is just one of MANY flaws over the years in MS DNS server! Hell, their DNS server for NT4 and earlier releases of Win2K (pre SP3) ran so sloppy th
djbdns (Score:2, Interesting)
Re:djbdns (Score:4, Interesting)
The functionality of clever tools like QMail and djbdns and daemontools has thus wound up sidelined and ignored by mainline developers. There are numerous lengthy and well-frounded rants on this, such as http://linuxmafia.com/~rick/faq/index.php?page=wa
Parent
Re: (Score:2, Interesting)
And, no, you can't fix these issues and distribute a "djbdns-fixed.0.1.tar.bz2" file with the fixes in place, because djbdns is not open source.
djbdns is dead and has been dead for years now.
Jeezus freaking A Christ (Score:4, Interesting)
-Matt
Re: (Score:3, Informative)
Re:Jeezus freaking A Christ (Score:4, Insightful)
Parent
Re: (Score:2)
So.. if BIND9 sucks.. what is an alternative? (Score:2, Insightful)
Re: (Score:2)
Re: (Score:3, Insightful)
djbdns is proprietary, source-available software. It's nowhere near BSD or GPL licensed.
Re: (Score:2, Interesting)
I've been using PowerDNS [powerdns.com] to manage several thousand domains for almost 3 years and its been the best thing I ever did. Besides being GPL it has an SQL backend so doing things like changing the TTL for 300 domains takes a few seconds instead of the slog or scripting nightmare with BIND. I use mysql replication to keep my slaves uptodate which is also flawless. Load average handling around 150 queries a second is less than 1%
There is a postgres backend
Just an idea (Score:3, Interesting)
The login sequence should be:
1) user submits his username.
2) site submits the back-password.
3) if back-password is correct, user submits his password.
By using bi-directional login, if the site is spoofed, the login process will fail, unless the spoofed site knows the back-password.
After login, communication should be encrypted so as that no 3rd party can eavesdrop on the communications.
Re: (Score:3, Insightful)
Re: (Score:2)
Re: (Score:2)
Re:New (Score:4, Insightful)
Oh wait, that isn't ethical
Parent
Re: (Score:2, Interesting)
"Existing desktop security solutions cannot protect against this type of attacks since DNS forgery pharming does not involve the user's computer or the DNS server but rather the cached data on the DNS server. Mutual authentication solutions, such as Trusteer's Rapport, which strongly authenticates the destination website and prevents access to unauthenticated websites, can defeat the attack.
Re: (Score:2)
Re:New (Score:5, Interesting)
If you read the PDF, you will see that a good history of this kind of attack (and previous responses to it) are detailed. Apparently there has been is history of research into this kind of attack, with various counter measures. But the new attack (which seems like it would apply to almost all versions of BIND9 takes a different approach at "cracking" the PRNG which looks like it could be run against real-world servers.
I don't pretend to understand everything (or even most things) in the PDF, but it looks like solid research to me.
Parent
Re: (Score:3, Informative)
http://www.openbsd.org/advisories/res_random.txt [openbsd.org] http://cr.yp.to/djbdns/forgery-cost.txt [cr.yp.to]
Re: (Score:3, Informative)
Re: (Score:3, Interesting)
Of course I could go ahead and run the recommended DJB configuring using rsync + openssh to propogate zone files. Then I would avoid the 10 vulnerabilities filed against BIND9 over it's seven year life span, but open myself to the 40 or so against OpenSSH, 30 or so against OpenSSL, and 10 or so against rsync.
Re: (Score:2)
Looks good on paper, but in reality how many bugs have *ss* caused in real world name service? Zero.
How many compromised nameservers have there been because of bugs in bind? Non-zero.
Re: (Score:2)
If you look at the specifics of the vulnerabilities, none of the ones discovered so far in the BIND9 codebase have been privilege escalation. Mostly DoS, a couple cache poisons, one client side vulnerability in the backwards compatability stub resolver that's disabled by default, and a case of some leaked environmental variables. In the case of *ss* there are numberous code execution bugs. And yes,
Re: (Score:2, Informative)
OpenBSD's patched and native Bind9 is immune to this attack and has been for many years.
Re: (Score:2)
Re: (Score:2, Insightful)
It is related to MS DNS -- a SYSTEM you said did not have any vulnerabilities.
It's not hard to get a connection and a rooted machine in somebody's internal network. Also -- I can't think of anybody that would use MS DNS server outside on the Internet. If you do then that confirms my opinion of you.
Re:FOSSie fix!!! (Score:4, Insightful)
A medium number of programmers can make minor modifications to medium-sized software applications.
Very few programmers can make any sort of modification to very large software applications. Very, very few.
Bind is a very large, complex piece of software. A good portion of that complexity is due to poor documentation and badly designed algorithms (a problem I've had with bind from the first release on through today), but at this point the majority of the complexity is due to feature creep. I still use bind simply because I do not have the desire to write a replacement for it, and because the only other really good DNS package has a copyright and licence on it that makes it virtually unusable. Software gets stale as it gets older... if I can't keep software up to date after the original author has lost interest then I have no interest incorporating said software, no matter how good it is.
-Matt
Parent
Re: (Score:2)
Ohh, euh... I think I know what the problem is.
Please, please, please, could you implement a good swapcontext and getcontext
implementation for the BSD's ?
Re: (Score:2)
This sort of thing has been done for ages even with BIND.
With djbdns you actually have NO CHOICE and MUST do it that way - it's split into multiple programs e.g. tinydns = authoritative DNS (tell world about names), dnscache = caching server (to make recursive DNS requests for clients and cache them).
Anyway, the ISC has never had a good track record with software (dns, sendmail, dhcpd). Tr