From: "Jake Fan" <jake@chaogic.com>
Subject: Re: ftpd security hole?
Date: Mon, 17 Dec 2001 08:12:44 -0600 [thread overview]
Message-ID: <9vkutb$obt$1@Masala.CC.UH.EDU> (raw)
In-Reply-To: 9vk4te$1d8$1@Mercury.ev.co.yu
Nikola Milutinovic <Nikola.Milutinovic@ev.co.yu> 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/<DATE>/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...
next prev parent reply other threads:[~2001-12-17 14:12 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-15 22:57 ftpd security hole? Jake Fan
2001-12-17 6:45 ` Nikola Milutinovic
2001-12-17 14:12 ` Jake Fan [this message]
2001-12-17 18:09 ` Ann Majeske
2001-12-18 1:40 ` mustang
2001-12-18 4:49 ` Jake Fan
2001-12-18 19:58 ` Paul Szabo
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox