Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here. |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
08-12-2002, 09:08 PM
|
#1
|
|
Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154
Rep:
|
Ssh Users Look At This!
I searched the forum and did not see anything about this,
it comes from a reliable source...
OpenSSH Security Advisory (adv.trojan)
1. Systems affected:
OpenSSH version 3.2.2p1, 3.4p1 and 3.4 have been trojaned on the
OpenBSD ftp server and potentially propagated via the normal mirroring
process to other ftp servers. The code was inserted some time between
the 30th and 31th of July. We replaced the trojaned files with their
originals at 7AM MDT, August 1st.
2. Impact:
Anyone who has installed OpenSSH from the OpenBSD ftp server or any
mirror within that time frame should consider his system compromised.
The trojan allows the attacker to gain control of the system as the
user compiling the binary. Arbitrary commands can be executed.
3. Solution:
Verify that you did not build a trojaned version of the sources. The
portable SSH tar balls contain PGP signatures that should be verified
before installation. You can also use the following MD5 checksums for
verification.
MD5 (openssh-3.4p1.tar.gz) = 459c1d0262e939d6432f193c7a4ba8a8
MD5 (openssh-3.4p1.tar.gz.sig) = d5a956263287e7fd261528bb1962f24c
MD5 (openssh-3.4.tgz) = 39659226ff5b0d16d0290b21f67c46f2
MD5 (openssh-3.2.2p1.tar.gz) = 9d3e1e31e8d6cdbfa3036cb183aa4a01
MD5 (openssh-3.2.2p1.tar.gz.sig) = be4f9ed8da1735efd770dc8fa2bb808a
4. Details
When building the OpenSSH binaries, the trojan resides in bf-test.c
and causes code to execute which connects to a specified IP address.
The destination port is normally used by the IRC protocol. A
connection attempt is made once an hour. If the connection is
successful, arbitrary commands may be executed.
Three commands are understood by the backdoor:
Command A: Kill the exploit.
Command D: Execute a command.
Command M: Go to sleep.
5. Notice:
Because of the urgency of this issue, the advisory may not be
complete. Updates will be posted to the OpenSSH web pages if
necessary.
|
|
|
|
08-12-2002, 09:16 PM
|
#2
|
|
Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154
Original Poster
Rep:
|
I did find this on unspawns section of the front page. Guess it's old news
|
|
|
|
08-13-2002, 01:58 AM
|
#3
|
|
Moderator
Registered: May 2001
Posts: 24,811
|
Np, I think it's great to see more ppl get involved posting warnings.
One remark tho, I know the [adv\..*] format is used by OpenSSH for advisories but I guess some ppl don't.
So IMO it would be best to always post the full URI.
|
|
|
|
08-14-2002, 12:31 AM
|
#4
|
|
Guru
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,154
Original Poster
Rep:
|
One question
I checked both of my RedHat boxes on the internet running sshd.
They both run
sshd version OpenSSH_3.1p1
According to up2date they seem to think they are not a problem.
RedHat is usually up on the bugs pretty good so I think they are ok.
Anybody know different?
Last edited by DavidPhillips; 08-14-2002 at 12:34 AM.
|
|
|
|
08-14-2002, 09:14 AM
|
#6
|
|
Member
Registered: May 2001
Posts: 125
Rep:
|
My understanding is that the redhat rpms are ok. (of course you can always go download the new source and install it). They found about the problem within 2 days (the iss vulnerability report says july 30 and 31). The openbsd server was compromised when someone "did something stupid".
|
|
|
|
08-14-2002, 07:20 PM
|
#7
|
|
Moderator
Registered: May 2001
Posts: 24,811
|
Depends on how you define "ok". Pre-3.4 doesn't have privilege separation for instance. To be clear I took the src.rpm's from an OpenSSH mirror, not from update.redhat.com, there they don't go beyond 3.1.
IMNSHO it's best to verify stuff from ISS against another, reliable source. The OpenSSH advisory hints at troubles with ISS, and it's not the first time them security folks have fsck'ed up good with not testing thoroughly, cross platform and releasing advisories for their benefit, after all they *are* a commercial firm.
|
|
|
|
08-14-2002, 10:52 PM
|
#8
|
|
Member
Registered: May 2001
Posts: 125
Rep:
|
There was talk about it at defcon. Some of the openbsd folks (i can't remeber who) was asked about it. She said that someone had done something stupid and thats why the code was compromised.
|
|
|
|
08-18-2002, 01:07 PM
|
#9
|
|
LQ Newbie
Registered: Jul 2002
Posts: 17
Rep:
|
I don't know if this has anything to do with this trojan, but I've found a file on my machine /usr/local/share/Ssh.bin
file Ssh.bin
Ssh.bin: DBase 3 data file (507582464 records)
I have shut down my ssh and am going to run chkrootkit and see if I can find out anything. BTW: slackware 8.1 and I usually stick with the official Slackware packages when they available. When they are not, I build from source.
|
|
|
|
08-20-2002, 03:51 AM
|
#10
|
|
Moderator
Registered: May 2001
Posts: 24,811
|
Ssh.bin in OpenSSH >2.9: java bytecode for smartcard support
|
|
|
|
08-21-2002, 05:25 PM
|
#11
|
|
Member
Registered: Jun 2002
Location: USA
Distribution: RH7.3 & YDL2.1
Posts: 124
Rep:
|
I would presume that installing OpenSSH_3.4p1 on "JUNE" 30th is ok, right? This trojan wasn't in effect up UNTIL the 31st of July since it was first posted... ?
Last edited by ifm; 08-21-2002 at 05:27 PM.
|
|
|
|
09-16-2002, 02:06 PM
|
#12
|
|
Senior Member
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552
Rep:
|
The easiest way to tell if your source is good is the check the MD5 checksums that are published on the OpenSSH site.
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 10:49 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|