* ftpd security hole?
@ 2001-12-15 22:57 Jake Fan
2001-12-17 6:45 ` Nikola Milutinovic
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Jake Fan @ 2001-12-15 22:57 UTC (permalink / raw)
Are there any known major bugs or security holes in Tru64 5.1 (Rev. 732) ftp
daemon? Recently I found a few Alpha machines I'm in charge of running
suspicious root processes by ftpd. Supposedly I am the only one with root
access but I don't remember starting those processes. The ftpd has the
default settings, with anonymous ftp disabled. The processes have been
running for a few days at full speed (99% of CPU time whenever possible).
following is a ps snapshot of one of the processes:
USER PID %CPU %MEM VSZ RSS TTY S STARTED TIME
COMMAND
root 2000 99.5 0.1 6.41M 112K ?? R Dec 13
2-06:09:27 -ACBC7716.ipt.a (ftpd)
I checked various log files but didn't find anything particularly
interesting. Compaq's website wasn't very helpful either. However I did
figure out that "ACBC7716.ipt.a" is an AOL host name "acbc7716.ipt.aol.com".
As of this writing, that host is still pingable, but there was no trace of
login from the host in the log files.
Please advise.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ftpd security hole?
2001-12-15 22:57 ftpd security hole? Jake Fan
@ 2001-12-17 6:45 ` Nikola Milutinovic
2001-12-17 14:12 ` Jake Fan
2001-12-17 18:09 ` Ann Majeske
2001-12-18 19:58 ` Paul Szabo
2 siblings, 1 reply; 7+ messages in thread
From: Nikola Milutinovic @ 2001-12-17 6:45 UTC (permalink / raw)
"Jake Fan" <jake@chaogic.com> wrote in message
news:9vgkht$iq2$1@Masala.CC.UH.EDU...
> Are there any known major bugs or security holes in Tru64 5.1 (Rev. 732)
ftp
> daemon? Recently I found a few Alpha machines I'm in charge of running
> suspicious root processes by ftpd. Supposedly I am the only one with root
> access but I don't remember starting those processes. The ftpd has the
> default settings, with anonymous ftp disabled. The processes have been
> running for a few days at full speed (99% of CPU time whenever possible).
> following is a ps snapshot of one of the processes:
>
> USER PID %CPU %MEM VSZ RSS TTY S STARTED TIME
> COMMAND
> root 2000 99.5 0.1 6.41M 112K ?? R Dec 13
> 2-06:09:27 -ACBC7716.ipt.a (ftpd)
Bad thing.
> I checked various log files but didn't find anything particularly
> interesting. Compaq's website wasn't very helpful either. However I did
> figure out that "ACBC7716.ipt.a" is an AOL host name
"acbc7716.ipt.aol.com".
> As of this writing, that host is still pingable, but there was no trace of
> login from the host in the log files.
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`
Nix.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ftpd security hole?
2001-12-17 6:45 ` Nikola Milutinovic
@ 2001-12-17 14:12 ` Jake Fan
0 siblings, 0 replies; 7+ messages in thread
From: Jake Fan @ 2001-12-17 14:12 UTC (permalink / raw)
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...
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ftpd security hole?
2001-12-15 22:57 ftpd security hole? Jake Fan
2001-12-17 6:45 ` Nikola Milutinovic
@ 2001-12-17 18:09 ` Ann Majeske
2001-12-18 1:40 ` mustang
2001-12-18 19:58 ` Paul Szabo
2 siblings, 1 reply; 7+ messages in thread
From: Ann Majeske @ 2001-12-17 18:09 UTC (permalink / raw)
Hi,
I haven't heard of any security holes in ftpd for
V5.1, but that doesn't mean that there couldn't
be one.
I'd say your best course of action would be to
contact your Compaq support representative and
give them the information you supplied here.
They should be able to find out if this is a
security problem or not.
Ann
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ftpd security hole?
2001-12-17 18:09 ` Ann Majeske
@ 2001-12-18 1:40 ` mustang
2001-12-18 4:49 ` Jake Fan
0 siblings, 1 reply; 7+ messages in thread
From: mustang @ 2001-12-18 1:40 UTC (permalink / raw)
Ann Majeske <Ann.Majeske@compaq.com> wrote:
: Hi,
: I haven't heard of any security holes in ftpd for
: V5.1, but that doesn't mean that there couldn't
: be one.
: I'd say your best course of action would be to
: contact your Compaq support representative and
: give them the information you supplied here.
: They should be able to find out if this is a
: security problem or not.
Before you do that - ask yourself and your site's network security person
why it is that you have publicly accessible FTP servers on machines that
need to run important number crunching processes ?
Why aren't these appropriately firewalled ?
D.
--
I don't get mad.... I get stabby.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ftpd security hole?
2001-12-18 1:40 ` mustang
@ 2001-12-18 4:49 ` Jake Fan
0 siblings, 0 replies; 7+ messages in thread
From: Jake Fan @ 2001-12-18 4:49 UTC (permalink / raw)
<mustang@ucc.asn.au.invalid> wrote:
>
> Before you do that - ask yourself and your site's network security person
> why it is that you have publicly accessible FTP servers on machines that
> need to run important number crunching processes ?
>
> Why aren't these appropriately firewalled ?
>
Because many users like to edit their programs on a Windows desktop, and
then ftp them to the servers for compilation and execution. They login from
all over the place - home, other labs, other universities, out of state, or
even out of country. Can't help it. A running network service is always a
security risk, firewalled or not. Password sniffing aside, a buggy SSH
server is equally dangerous as a buggy FTP server.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: ftpd security hole?
2001-12-15 22:57 ftpd security hole? Jake Fan
2001-12-17 6:45 ` Nikola Milutinovic
2001-12-17 18:09 ` Ann Majeske
@ 2001-12-18 19:58 ` Paul Szabo
2 siblings, 0 replies; 7+ messages in thread
From: Paul Szabo @ 2001-12-18 19:58 UTC (permalink / raw)
To: Jake Fan
Jake Fan wrote:
>
> Are there any known major bugs or security holes in Tru64 5.1 (Rev. 732) ftp
> daemon? Recently I found a few Alpha machines I'm in charge of running
> suspicious root processes by ftpd. ... ... The processes have been
> running for a few days at full speed (99% of CPU time whenever possible).
Compaq stated somewhere that its ftpd is safe.
I guess someone tried the globbing attack. The fact that the ftpd is still
busily trying, instead of crashing, would seem to indicate that it is safe.
Just kill those running ftpd processes. (Look in the debug logs for the next
attempt.)
--
Paul Szabo - psz@maths.usyd.edu.au http://www.maths.usyd.edu.au:8000/u/psz/
School of Mathematics and Statistics University of Sydney 2006 Australia
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2001-12-18 19:58 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-12-15 22:57 ftpd security hole? Jake Fan
2001-12-17 6:45 ` Nikola Milutinovic
2001-12-17 14:12 ` Jake Fan
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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox