Jem Berkes wrote:
> Those of us paying attention will have surely noticed that SSH daemons are
> proving to be rather buggy; OpenSSH has had several remote exploits
> discovered including some major root exploits. And lsh -- suggested by
> many as a replacement to OpenSSH -- is itself vulnerable to a remote
> exploit
> http://www.securityfocus.com/archive...8/2003-09-24/0
>
> If ssh is to be considered 'more secure' than telnet, I think one has to
> take into account how often the admin is able to patch the machine. In an
> organization that employs a full time network techie, applying the ssh
> patches is an easy enough task.
Or in an organization using one of the distributions which issues patches on
a timely basis, and has a network method for getting patches. At work, I
have a mixture of Debian, Red Hat, Trustix, Tru64 Unix, and HP-UX machines.
Debian was easy -- "apt-get update; apt-get -u upgrade" (using the -u to
check what else is being upgraded). On our Red Hat machines, we have a
subscription to Red Hat Network, so running the up2date command did it. On
Trustix, the swup utility did the same thing. It took less than half an
hour to do a dozen machines, with one person doing the work.
The Tru64 machines we had didn't come with SSH (Tru64 5.1B does come with
it; theirs isn't OpenSSH based, so it wouldn't have needed updating). We
had to download the source, compile it on one machine, tar up the compiled
binaries, distribute to all the machines, and untar and install on them.
It took about two hours to do all that across about a dozen machines, with
one person doing the work.
Lastly, the HP-UX machines use an SSH derived from OpenSSH. Last I checked
(on Friday), HP hadn't made a statement or provided a patch. Since there
also wasn't an exploit reliably reported, and our firewall doesn't allow
incoming SSH connections, we felt that leaving them unpatched for now was
an acceptable risk.
We probably could have spread out doing the Tru64 machines more, since
exploits are less likely to appear quickly for the Alpha architecture than
for the Intel-32 architecture, and none of the Tru64 machines were outside
the firewall.
If you don't have a full-time admin, I'd suggest staying with a
low-maintenance configuration, with something that puts out patches on a
timely basis and makes it easy to put them on. Heck... with Debian, you
could easily set up a cron job to either automatically patch every night,
or to notify you of which packages have upgrades available every night.
> But on a machine that sits unattended for long periods of time (a router,
> etc.) I think a better approach would be to use telnet for remote access.
> In such a circumstance, with long periods between remote logins I think
> the likelihood of being exploited by an ssh vulnerability might outweigh
> the likelihood of passwords being sniffed on the wire.
>
> Thoughts?
If you don't need people outside your organization to access it, then don't
allow SSH to it from outside. If you're more paranoid, only allow SSH
access from a few selected IPs. Both will help limit your vulnerability.
--
ZZzz |\ _,,,---,,_ Travis S. Casey <(E-Mail Removed)>
/,`.-'`' -. ;-;;,_ No one agrees with me. Not even me.
|,4- ) )-,_..;\ ( `'-'
'---''(_/--' `-'\_)