From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,1239add5ff484907 X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-12-17 06:19:25 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.cs.utexas.edu!news.uh.edu!not-for-mail From: "Jake Fan" Newsgroups: comp.unix.tru64 Subject: Re: ftpd security hole? Date: Mon, 17 Dec 2001 08:12:44 -0600 Organization: University of Houston Message-ID: <9vkutb$obt$1@Masala.CC.UH.EDU> References: <9vgkht$iq2$1@Masala.CC.UH.EDU> <9vk4te$1d8$1@Mercury.ev.co.yu> NNTP-Posting-Host: paradise.svec.uh.edu X-Trace: Masala.CC.UH.EDU 1008598763 24957 129.7.3.77 (17 Dec 2001 14:19:23 GMT) X-Complaints-To: abuse@UH.EDU NNTP-Posting-Date: 17 Dec 2001 14:19:23 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2615.200 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Xref: archiver1.google.com comp.unix.tru64:6161 Nikola Milutinovic wrote: > > You can certainly do two things: > > 1. run "ftpd" in Debug mode. > > Change definition in /etc/inetd.conf of ftpd to contain: > > ftp stream tcp nowait root /usr/sbin/ftpd ftpd -dl > > This will log everything to /var/adm/syslog.dated//daemon.log > > 2. Run tcpdump and sniff for that session. > > In order to configure tcpdump the following must be done: > > 2.1. reconfigure kernel to contain PACKETFILTER module > 2.2. (OPTIONAL) bring the desired interface in promiscuous mode "ifconfig > tu0 +promisc" > 2.3. configure packetfilter module on that interface "pfconfig -i tu0 +c +p" > ("+p" is optional) > > Then try to see if there is any traffic on that connection (I bet there > isn't): > > tcpdump -i tu0 `host acbc7716.ipt.aol.com` > Ok the debug mode is running and logging (needed a /sbin/init.d/inetd stop/start, btw), but nothing interesting... yet. Probably that aol host name is a dhcp host. tcpdump is not possible at the moment, since the machines can not be restarted (a couple of users have been running heavy computational tasks for days). But netstat didn't show any connections to/from the offending hosts -- no suspicous openning ports. As of this writing all the root ftpd processes are still running. Any idea what caused this? I tend to (or rather want to) think that the processes crashed and were somehow left running indefinitely while attempting connections and/or switching uid's (from root to a normal user). But the funny thing is, I never noticed this before, and it happened to more than one system, from more than one remote host...