Slashdot Mirror


Sendmail Hit by Data Interception Flaw

ricepudd writes "Computer Weekly reports that Internet security researchers have discovered a serious flaw in Sendmail. The flaw could allow remote attackers to take control of users' PCs. The Sendmail Consortium urged users to upgrade to version 8.13.6 of the software, which contains a fix to the problem. Computer Weekly seems to think that the fact that the Windows version isn't affected will help curtail the threat."

24 of 208 comments (clear)

  1. Reality check: by Anonymous Coward · · Score: 4, Funny

    Ah, the WINDOWS version is NOT affected! How ironic!

    1. Re:Reality check: by Anonymous Coward · · Score: 5, Funny

      it's safer running the windows version of something?

      truly, it is the end times

  2. Flaw seems unexploited by rg3 · · Score: 5, Informative

    As everyone who follows the Slackware changelog, new packages were available yesterday. It seems there is still no exploit for this flaw, and it's somehow hard to exploit. That's the impression I got from the changelog entry. I'll paste it here:

    n/sendmail-8.13.6-i486-1.tgz: Upgraded to sendmail-8.13.6.
                  This new version of sendmail contains a fix for a security problem
                  discovered by Mark Dowd of ISS X-Force. From sendmail's advisory:
                  Sendmail was notified by security researchers at ISS that, under some
                  specific timing conditions, this vulnerability may permit a specifically
                  crafted attack to take over the sendmail MTA process, allowing remote
                  attackers to execute commands and run arbitrary programs on the system
                  running the MTA, affecting email delivery, or tampering with other
                  programs and data on this system. Sendmail is not aware of any public
                  exploit code for this vulnerability. This connection-oriented
                  vulnerability does not occur in the normal course of sending and
                  receiving email. It is only triggered when specific conditions are
                  created through SMTP connection layer commands.
                  Sendmail's complete advisory may be found here:
                  http://www.sendmail.com/company/advisory/index.sht ml
                  The CVE entry for this issue may be found here:
                  http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE- 2006-0058
                  (* Security fix *)

    1. Re:Flaw seems unexploited by molnarcs · · Score: 4, Informative

      FreeBSD also has details in their security notification. Those guys are fast - if you want to have up to date info on security vulns., FreeBSD has them (usually with patches) way before the news hits slashdot ;) For those who are asking for line numbers, just take a look at the patches included. Or better, here is a kompare screenshot.

    2. Re:Flaw seems unexploited by cperciva · · Score: 5, Informative

      FreeBSD also has details in their security notification. Those guys are fast - if you want to have up to date info on security vulns., FreeBSD has them (usually with patches) way before the news hits slashdot

      We do our best. :-)

      Seriously though, CERT told us that the embargo was going to end at 16:00 UTC, so I had a shell window open with a series of "cvs commit" commands waiting for me to hit <enter>, a window with the commit messages I was going to use, a window with the advisory text waiting for me to type in the correction times, a shell window open to ftp-master.freebsd.org waiting for me to copy the patches into the right directory...

      When you have two weeks advance notice, it's easy to get advisories out soon after the embargo ends -- the hardest part of the process was making sure that I'd be awake at 8:00 AM (PST).

    3. Re:Flaw seems unexploited by Bacon+Bits · · Score: 4, Informative
      It seems there is still no exploit for this flaw, and it's somehow hard to exploit.
      If you read Sendmail's complete advisory, you can see that the vulnerability requires the exploitation of a race condition. You have to submit a request, and then before that one times-out submit another malformed one.
      --
      The road to tyranny has always been paved with claims of necessity.
  3. No link to actual advisory in summary or article by doorbot.com · · Score: 5, Informative
    I believe this is the actual advisory:

    http://www.frsirt.com/english/advisories/2006/1049

    A critical vulnerability has been identified in Sendmail, which could be exploited by remote attackers or network worms to take complete control of an affected system. This flaw is due to errors in the "setjmp()", "longjmp()" and "sm_syslog()" functions that do not properly handle certain asynchronous signals, which could be exploited by remote unauthenticated attackers to execute arbitrary commands by sending specially crafted requests to the SMTP port.
  4. Ah! by O'Laochdha · · Score: 4, Funny

    So the FBI was wiser than we thought in withholding e-mail accounts...

  5. Re:can someone explain... by Anonymous Coward · · Score: 4, Funny

    You want a serious answer or a highly critical one?

  6. The FreeBSD mailing list is a little less alarmist by micheas · · Score: 4, Informative

    An email I received from the FreeBSD security mailing list seems to imply to me that this might be more of a concern for multi user systems.

    From: Claus Assmann <freebsd+security@esmtp.org>
    To: freebsd-security@freebsd.org
    Subject: Re: FreeBSD Security Advisory FreeBSD-SA-06:13.sendmail
    Date: Thu, 23 Mar 2006 10:31:20 -0800

    On Thu, Mar 23, 2006, Bigby Findrake wrote:
    > Does an attacker need network access to the machine, or does the attacker

    Yes.

    > merely need to be able to get an SMTP message to the machine?

    He needs to control the timeouts (AFAICT).

    _______________________________________________
    freebsd-security@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd- security
    To unsubscribe, send any mail to "freebsd-security-unsubscribe@freebsd.org"

  7. Re:My PC? by YU+Nicks+NE+Way · · Score: 3, Informative

    Windows has shipped with an SMTP server installed since Windows 2000. It's off by default in Server 2003 and in all client versions, and, I think, in 2000 Server, but it's there.

    What do you think the spammers use on their zombie boxes? Code they wrote themselves?

  8. Re:No link to actual advisory in summary or articl by pneumatus · · Score: 3, Informative

    Further info of this security advisory available on CVE-2006-0058 and from Security Focus

    --
    Just don't create a file called -rf. :-) -- Larry Wall
  9. The inevitable 'use postfix!' post.... by Malor · · Score: 5, Informative

    Yes, I realize this is too late for those of you running Sendmail now, and please don't take this as criticism for using it.... it's a solid mail program. But it was written when the Net was a much nicer place, and it's proving, once again, that retrofitting security is either very difficult or impossible. For a long time, it seemed like practically every third exploit was for Sendmail... it got pretty frustrating.

    The two major alternatives are Qmail and Postfix; Courier is sort of an up-and-comer, but they've had quite a number of security holes in those packages. (of course, that may also be related to the fact that Courier does a lot more than just deliver mail.) Of the three, I prefer Postfix. It's exceedingly solid, very fast, and fairly easy to configure. The initial learning curve is a little steep (mostly because there's about a billion things you can set), but the config files are readable when you're done. You don't have to relearn the whole program every six months. It's also very secure... I'm only aware of two security problems in its entire history. (I don't remember the details, but I think one was minor, and the other was moderately serious.)

    QMail is also solid, fast, and secure. But the author has decided that Unix machines should be configured a particular way, with files in particular places, and he uses his code as a weapon to try to force you to do things the way he wants. So I won't run it unless I have to. I don't deny that he's a brilliant coder and forty-eight times smarter than I am, but I refuse to be dictated to.

    Postfix can take a beating.. it is Truly Great Software. It will handle any load that Sendmail will handle, it's easier to administer, and the security is better. And, of course, it's truly free... Wietse won't try to make your administration decisions for you.

    1. Re:The inevitable 'use postfix!' post.... by ajs · · Score: 5, Insightful

      There was a time when sendmail exploits were all the rage, but at the time, sendmail was one of a very, very small number of programs that had reached its level of maturity, breadth of features AND was network accessible, and was the only one in widespread use under Unix-like systems. Because of some high-profile bugs, many companies including Sun and later Red Hat did heavy security audits of the code, revealing and fixing more problems.

      These are all good things, and it seems to me to be a bit two-faced to say that the power of open source is that there are many eyes on the source, and then to punish the software with the most eyes on it. Sendmail has been the heart of mail on the Internet for decades, and deservedly will continue to do so for the forseeable future.

      These bugs demonstrate the old saying: where there is code, there are bugs. I'll stick with software that has already had the vast majority of its security problems shaken out.

    2. Re:The inevitable 'use postfix!' post.... by Malor · · Score: 3, Informative

      It's not a drop-in replacement, in the sense that it doesn't use the same config files. (You can read postfix files :) ) Unless you have an _extremely_ complex environment, though, it usually won't take very long to write the postfix equivalents to do what you need.

      The two main configuration files are master.cf and main.cf. Master is the configuration for how the daemons work and talk with one another, and it's used to add in other programs for weird delivery arrangements. For 'normal' mailservers, you probably won't have to mess with that too much. Main.cf, on the other hand, is where you'll do almost all the configuration work... virtually everything goes there.

      Stuff that requires lookups, like virtual addresses (the 'virtual' file) or transports (the 'transport' file), is set up in child files, flat text. The 'postmap' program compiles the text files into .db format, which lets Postfix do fast queries on them.

      You should probably expect to spend a day or two setting up a server the very first time you use it. Nothing is that hard, but it can be a little frustrating figuring out where to look for a given feature. Everything is easy, there's just a lot of it.

      Once you have it running, the configuration becomes practically self-documenting, so it's *really* easy to make changes. Sendmail is write-only... you can get it working, come back a week later, and have _no_ idea what you're looking at. Postfix isn't like that... if it works, it will generally be pretty obvious how and why it works. (and it will usually be pretty clear about why things AREN'T working, too.)

      If it has a weak point, it's probably that the documentation is rather scattered... expect to do a lot of googling while setting up.

      It's really worth the effort. It's one of the best pieces of free software out there. And it's one-time only effort, unlike sendmail. :)

  10. Re:Gee, Full Disclosure would be nice by LiquidCoooled · · Score: 5, Informative

    If you knew that you would be 99% of the way to solving the bug.
    As it happens, someone already posted a screenshot of the BSD version of the fix.

    A single line of c:

    t = 0;

    Inserted between lines 147 and 148 of file fflush.c appears to be the fix (reset a mem pointer just use above).
    I don't vouch for it and haven't even bothered to look at context or even if its the actual fix required, however its not like it was hidden and you don't need to get uppity about it.

    Incidentally, its such small code modifications that can bring great amounts of money to maintainers of corporate code that the monkeys don't understand what they are paying for.

    "But you only changed 1 line"
    "Yer, but that one line makes it work now...."

    --
    liqbase :: faster than paper
  11. Insufficient data. by jd · · Score: 4, Insightful
    Sendmail is a big program. It also has several components. This tells me that things like selinux and other mandatory access control systems MAY prevent the attack from taking over the PC. What impact there is on such systems depends on what component the failure is in and what rights that component must have.


    There are also multiple ways of configuring sendmail when compiling it, which tells me that whilst an upgrade may be important, it may be much more important for some users than others.


    Also, saying it doesn't affect Windows is unclear. Does it not affect Windows when you use some official .exe? When you compile it yourself? When compiled/run via Cygwin? If you run under Wine, do you see the bug or not? Are all versions of Windows safe, or would the bug be exposed under certain versions?


    The report, as described, is about as useful as saying "we think we know a way by which under certain circumstances that we know, another may think they know a way by which you might have an increased chance of being struck by an asteroid". If you don't know what the way is, or what those circumstances might be, the information has little value. Sure, it has some in that they provide a bugfixed release, but we don't know how long the bug has existed and therefore have absolutely bugger all way of quantifying what the risk is that a server has already been compromised. It only prevents uncompromised servers from being attacked by this method in future.


    Just because the press release is dated XYZ does not mean that every Black Hat under the sun hasn't got a CD-ROM filled with exploits for it and a list of backdoors on cracked sites from three years back. XYZ is merely the date the rest of us know about it. You don't maintain a secure system by assuming all crackers only know the exploits you've fixed. You maintain a secure system by assuming at least one cracker has the means to discover the exploits you've neither heard of nor have patches for - ie: by assuming you're running buggy software and taking the necessary steps to limit what those bugs can do.

    --
    It's a small world and it smells funny; I'd buy another if it wasn't for the money; Take back what I paid (SoM)
  12. Re:My PC? by Dionysus · · Score: 3, Funny

    What do you think the spammers use on their zombie boxes? Code they wrote themselves?

    Why would a spammer need a smtp server on a zombie box? Don't zombie boxes just send email?

    --
    Je ne parle pas francais.
  13. Re:My PC? by techno-vampire · · Score: 4, Funny
    Why would a spammer need a smtp server on a zombie box? Don't zombie boxes just send email?

    And what protocol do they use to send it? SMTP, of course.

    This has been another D'oh! moment.

    --
    Good, inexpensive web hosting
  14. IE and sendmail flaws on the same day? by MadFarmAnimalz · · Score: 5, Funny

    Coincidence? I think not...

    Shared codebase? Hmm?

    --
    Blearf. Blearf, I say.
  15. Agreed by waldoj · · Score: 3, Interesting

    I ignored posts like this for years, figuring it was like the Linux vs. BSD debates -- just a bunch of zealots. I was wrong.

    Years after I mastered mc files and learned the magic of m4, back around 2002, I succumbed to /. peer pressure and switched to Postfix. It's just like Sendmail, only it doesn't suck. I didn't know Sendmail sucked until I used Postfix. It's easy, it's secure, and my servers haven't once been 0wn3d because of the ubiquitous MTA flaws of Sendmail.

    Some day I'll try Qmail. Baby steps.

    -Waldo Jaquith

  16. Re:Who the hell still uses sendmail? by Radak · · Score: 4, Informative

    Using sendmail is anomalous to asking for trouble.

    This sentence alone shows what an idiot you are. Go look up anomalous and then come back.

    Back? Okay, good. Let's move on.

    We still use sendmail because it meets our needs and because to those of us who actually know how to use it, it is less of a pain in the ass than your "better" alternatives. Sendmail had a whole slew of security problems many years ago before alternatives were even available, but in recent years, it has really not notably more security issues than any of the other options.

    Face the facts here. Qmail and Postfix certainly have their uses, and are both excellent MTAs, but neither is "way better" than Sendmail for all installations. We each have our own requirements, and Sendmail meets those requirements for a lot of my installations.

  17. Re:Sendmail - now in its third decade of exploits by Radak · · Score: 5, Insightful

    Results 1 - 10 of about 18,000,000 for linux exploit.

    We've been struggling with Linux exploits since its birth, too. Shall we "drop the turkey" every time a new Linux exploit pops up, too, or should we acknowledge that it's a complicated piece of software whose security generally improves as it matures? I thought so.

    Oh, and just for good measure...

    Results 1 - 10 of about 203,000 for qmail exploit.
    Results 1 - 10 of about 283,000 for postfix exploit.

    I note that those queries generate about 1/3 and about 1/2 as many results, respectively, for products that have existed for about 1/10 as long as sendmail. By your ridiculously flawed "Google logic", qmail and postfix are far more dangerous "turkeys" than sendmail.

  18. First in two years by Kelson · · Score: 4, Insightful

    Oddly, this is the first security fix I can remember for Sendmail in about two years. Just to check my memory, I looked at Secunia's report and they only list 5 vulnerabilities since January 2003.

    2 in March 2003
    1 in August 2003
    1 in September 2003
    1 in March 2006

    2.5 years between vulnerabilities? Not too shabby, IMHO.

    There is, however, one unpatched vulnerability, though the worst it can do is hide details from the log.