From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tru64 User Newsgroups: gmane.os.tru64.managers Subject: SUMMARY-2: FTPchmodable Date: Fri, 14 Jun 2002 12:36:40 -0700 (PDT) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <20020614193640.65414.qmail@web10907.mail.yahoo.com> References: <20020614170959.38831.qmail@web10903.mail.yahoo.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1024083862 6910 127.0.0.1 (14 Jun 2002 19:44:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 14 Jun 2002 19:44:22 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.33 #1 (Debian)) id 17Iwzd-0001nK-00 for ; Fri, 14 Jun 2002 21:44:21 +0200 Original-Received: (qmail 3897 invoked by uid 5); 14 Jun 2002 19:37:04 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 3886 invoked from network); 14 Jun 2002 19:37:04 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (128.219.159.41) by 0 with SMTP; 14 Jun 2002 19:37:04 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0GXP00DQANTR9J@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 14 Jun 2002 15:37:04 -0400 (EDT) Original-Received: from web10907.mail.yahoo.com (web10907.mail.yahoo.com [216.136.131.43]) by emroute2.cind.ornl.gov (PMDF V6.1-1 #39060) with SMTP id <0GXP00KJRNT4NU@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Fri, 14 Jun 2002 15:36:41 -0400 (EDT) Original-Received: from [128.183.106.152] by web10907.mail.yahoo.com via HTTP; Fri, 14 Jun 2002 12:36:40 -0700 (PDT) In-Reply-To: <20020614170959.38831.qmail@web10903.mail.yahoo.com> Original-To: tru64-unix-managers@ornl.gov Xref: main.gmane.org gmane.os.tru64.managers:582 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:582 Thanks to the response i received to the summary, coming from Damon Goforth, Jay Wren and Dan Riley. All pointed me in the same, right direction. FTP WAS chmodable, but only under proper directory permissions (ie. Command was executable). Under proftpd-1.2.4, I added the directive AllowChmod off restarted ftpd, and now, even under proper perms, ftp is not chmodable.(Mesg. "Chmod not allowed") Proftpd documentation has this directive as defaulting to "off", but i just saw that not to be the case. One has to define it in the config files. What can be done to default tru64 ftpd, which has no config file? Guess, switch everything to proftpd or similar! Richard. :::Replies::: ************************** Hey there - Here is a way to reproduce the error . ftp to the remote system, at the prompt type ftp> quote site chmod [numerical expression, like 0770] filename That *should* chmod the file Damon M. Goforth ******************************* I'm sorry I didn't response sooner. I believe in your original message you asked for a way to verify what ISS was detecting. Here is a way to do what ISS is doing: ftp with your client and use the 'site' command. See site help for more info. when the site command asks for arguments give it the chmod command maybe something like this: ftp> ls 200 PORT command successful. 150 Opening ASCII mode data connection for file list. pub welcome.msg linux sunfreeware README 226-Transfer complete. 226 Quotas off 46 bytes received in 0.021 seconds (2.14 Kbytes/s) ftp> site (arguments to SITE command) CHMOD 0644 README 550 README: Permission denied ftp> ISS is probably complaining that the ability even exists to do this and not checking whether or not the permission is available to chmod. It is a good thing to be able to chmod in FTP, it helps in setting file modes when uploading world readable files in the case of a web site or something. I hope this helps. -- Jay R. Wren --- Tru64 User wrote: > No takers on this one. > I could not reproduce what ISS keeps claiming to be > a > problem. > Couldn't find much about it on the web either. > Closest: > > FTP server allows the chmod command to be executed > > > > > Risk Level: High Check or Attack Name: > FTPchmodable > > > > Platforms: FTP > > > > Description: Some File Transfer Protocol (FTP) > servers could be > > misconfigured to allow users to execute the chmod > command on files > > under the FTP directory structure. This ability > could allow an > > attacker to modify files or replace them with > trojan > horse programs. > > > > Remedy: Configure your FTP server not to allow > users > to execute the > > chmod command. > > > > References: Internet Security Systems, Inc., > Anonymous FTP FAQ, > > http://xforce.iss.net/library/faqs/anonftp.php > > > > _Thanks > > > > > --- Tru64 User wrote: > > Dealing with sec. issues, ISS scanner keeps > > reporting > > FTPchmodable. I have doublechecked everything i > can > > think of...(anony FTP, followed all guidelines for > > setting up anonymous ftp available online) using > > default ftpd of 4.0G. > > > > Then i took out the 4.0G default ftpd, and > installed > > proftpd-1.2.4, with tight security. ISS still > > reports > > the same. > > > > How can i verify the chmodable (simply ftp'ing and > > trying chmod for a file ofcourse says command > > unknown), before declaring this a false positive? > > > > Thanks for all ideas in advance. > > Richard > > > > ===== > > > > > > __________________________________________________ > > Do You Yahoo!? > > Yahoo! - Official partner of 2002 FIFA World Cup > > http://fifaworldcup.yahoo.com > > > ===== > > > __________________________________________________ > Do You Yahoo!? > Yahoo! - Official partner of 2002 FIFA World Cup > http://fifaworldcup.yahoo.com ===== __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com