Slashdot Mirror


OpenSSH Gets Even More Suspicious

If you remotely administer any computers, or need to check your email over an untrusted network, odds are you're already familiar with the wonders of OpenSSH. Markus Friedl yesterday posted a release announcement for the newest version, OpenSSH 3.3. Privilege separation in OpenSSH is now enabled by default, another sign of the entire OpenBSD project's appropriate paranoia.

6 of 293 comments (clear)

  1. Re:Even OpenBSD developers can be vain... by The_Final_Word · · Score: 4, Informative

    upgrade to Apache 1.3.26 or 2.0.39, it's an Apache problem and it is on their home page.

    http://httpd.apache.org/

    The OpenBSD folks gave a patch for the OS before the new Apache binaries were released as a work around.

    --
    The Final Word
  2. Re:Necessary and useful by GreenHell · · Score: 5, Informative

    Yes, portability is...

    Of the 3 major BSD's, NetBSD's goal is to run on as many platforms as possible, FreeBSD's goal is to create a reliable, free UNIX (it may not meet your definition of free, but that's another story), and OpenBSD's goal is to provide the most secure distro possible.

    --
    "I won't mod you down - I feel the need to call you a twit explicitly, rather than by implication."
  3. Re:SSH is magnificent! by p3d0 · · Score: 5, Informative

    Just remember to use the "blowfish" cypher for large files. It's much faster than the default 3DES.

    I use: alias scp="scp -c blowfish-cbc".

    --
    Patrick Doyle
    I mod down every jackass who puts his moderation policy in his sig. Oh, wait a sec....
  4. Ettercap (was Re:Packet sniffing) by Nonesuch · · Score: 5, Informative
    Packet sniffing traffic that crosses your ISP and then the public Internet is definitely a serious and real risk.
    PatJensen asks:
    Is there a tool that allows you to force the switch to forward ethernet frames so they can be sniffed without switch administrator access?
    There are tricks to force the switch to 'flood' ethernet frames (overflow the CAM table, etc). Two common attacks against switched segments are MAC spoofing (easily detected and protected against on Cisco) and ARP spoofing (more difficult to protect against).

    There is also a tool to permit packet sniffing, see ettercap on Sourceforge.

    Ettercap is a multipurpose sniffer/interceptor/logger for switched LAN. It supports active and passive dissection of many protocols (even ciphered ones) and includes many feature for network and host analysis.

    Ettercap is actively being used by the "black hat" community, and has been found on compromised systems on switched LAN segments "in the wild".

  5. What it does - Program, not Protocol Security by billstewart · · Score: 5, Informative
    This isn't a change to the communications protocols or any of the encryption - it's a change to the Unix implementation of the server to make it much less likely that any bugs can let someone break in. (Initially this works for OpenBSD, should be easy to port to other BSD implementations, probably to Linux and Solaris, maybe to WinNT but maybe not.) The basic way that a communications server like this works is
    • A process sits around listening to the well-known TCP port for connection requests. The process needs to be privileged for two reasons
    • The port is a system resource so only the system should be able to control it
    • When a user logs in (on Unix), their connection needs to operate with the permissions of that user, so the server needs to be root so it can start a session as any user who logs in (as opposed to a Web Server, which usually only needs access to publicly readable files.

    When a request comes in, it hands it to a subroutine that handles requests for the server to do different functions, including authentication.

    For some services, such as SSH and FTP, the server may set up multiple connections for things like transferring files, etc.You can write a server like this as one big single-threaded process, or as one big process with multiple threads if your operating system and programming environment support it, but it's more common, especially on Unix, for the main process to spin off several child processes to do the work and go back to listening for new incoming requests. In this case, it spins of one process to handle the control channel communications and that process spins off other processes to handle specific tasks like file transfers, after checking that the connection and the request are authenticated. In a simple-minded implementation, the control channel process runs as root, and any task channel processes start off as root, and maybe change their privileges to an individual user's privileges if they need to (for instance if you're using SSH to log in to a remote system.)

    The problem with this is that if there are any bugs that let a remote connection send messages with unexpected data in ways that break or take over the server process, the server is running as root so it can do anything it wants, however evil or dangerous (or if it's a minor bug that doesn't lead to a complete takeover, it may still be able to burn critical resources and stall the system or do some other denial of service attack.) Two popular kinds of attacks are sending a message that overflows a field (the result of bad protection in the C language combined with careless programming), or sending a message that asks the process to do something that the programmer didn't expect and protect against, such as setting permissions on a system file or making a user's program privileged, so that it can be exploited later, either by another communication from the attacker or by routine activities by the system or the user.

    What the new OpenSSH implementation does is takes the bottom two server processes (the control channel server and the task servers) and splits each of them into two parts that communicate with each other. One part of each processes is a master, that keeps running privileged if it needs to, and the other is a slave process that runs as a non-privileged user (either the user who's requesting the service, for tasks like logins, or as the "nobody" user) and does most of the actual work, passing messages back and forth to the master process to communicate about status and request anything that still requires privileges. This gives you a bunch of security advantages:

    • Each part of the system is smaller, with fewer functions to perform and well-defined interfaces to other parts, so you can do a better job of checking for bugs and each part can validate incoming messages before doing anything.
    • The parts of the system that need to be privileged aren't communicating directly with the remote user, only with the slave processes, so they have a much smaller set of messages to validate.
    • If there's some bug in the system that lets a remote attacker take over one of the control or task processes by sending an craftily designed message, the bug is in the non-privileged slave process, which doesn't run as root, can't do as much damage, and has a limited set of messages that the master process will accept from it.

    The rest of it is basically detail about which functions they separated into which programs, how they made sure that each piece has enough capabilities to do the job without giving it too much power that could be exploited by an attacker, and some stuff about how they validated the pieces. It's adding more complexity to the total system, but each piece is more limited in function, and the security-critical pieces are much easier to validate against bugs and malicious input.

    --

    Bill Stewart
    New Fast-Compression-only CPR http://preview.tinyurl.com/dy575ks
  6. Re:SSH is magnificent! by evilviper · · Score: 4, Informative
    But I only want blowfish for file transfers.

    Well, you could set up seperate config entries like so:

    host mercury-scp
    hostname mercury.domain.com
    cipher blowfish-cbc
    Compression Yes

    host mercury
    hostname mercury.domain.com
    Cipher 3des-cbc
    Compression No


    3des is better (I understand) for interactive shell sessions.

    I not only don't agree, but I fail to even see any logic behind that. Blowfish is a quicker alogrithm any way you look at it... Myself, and many others, regard it as amply strong, very unlikely to be cracked (as DES was), etc. Perhaps you'd clarify why one form of encryption would be better than another for extremely similar uses.
    What's wrong with an alias?

    It's just not a clean way to do it. Perhaps if you use something like the TCL/TK frontend in the future, your alias will not work... I'm sure there are other situations where a shell alias won't work, so I say: why not just do it the proper way in the first place? Of course you can do *much* more with the ~/.ssh/config file. Or, you could make the change machine-wide by editing /etc/ssh/ssh_config.
    --
    Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant