tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Eric Arney <Eric-Arney () ouhsc ! edu>
To: tru64-unix-managers
Subject: SUMARY: FTPD daemon
Date: Wed, 12 Jul 2000 14:38:53 +0000	[thread overview]
Message-ID: <96341271913001.tru64-unix-managers.marc@archive.invalid> (raw)

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: multipart/mixed; boundary="------_=_NextPart_001_01BFEC0E.D8504620", Size: 11226 bytes --]

This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01BFEC0E.D8504620
Content-Type: text/plain;
	charset="iso-8859-1"

Thanks to the three people who replied. Most of the replies said to install
wu-ftp. Here are two of the replies.
 
Eric Arney wrote:
> 
> My question is in reference to the "Advisory CA-2000-13 Two Input
Validation
> Problems In FTPD" is True 64 included in this? If so is there a patch for
> this? Sorry I'm pretty new to the true-64 4.0d and 4.0f Unix and any info
on
> where the FTPD came from would be great. Thanks.
 
The advisory doesn't mention T64. It could be that FTPD included with
T64 is a "DEC brand" and has no such bugs.
 
Nix.
-- 
"An expert is a man who has made all the mistakes which can be made in
 a very narrow field" - Niels Bohr

 
Excue me for my bad english, firstly. If you use any wuftpd or BSD 
(proftpd, beroftpd, etc.) derived ftp daemon you can potentially be object 
of attacks. But i think that's only theory; that exploits can be attacked 
only with one valid username/password for your ftp server; exploit code for 
the two security bugs is not public (hummm ... for site_exec vulnerability 
it exist but is broken; for setproctitle() exist nothing public). At the 
end ... all code released is valid ONLY for x86 executable stack. I 
strongly recommend you to upgrade to wu-ftpd 2.6.1 from 
ftp://ftp.wu-ftpd.org/pub/wu-ftpd/wu-ftpd-2.6.1.tar.gz
<ftp://ftp.wu-ftpd.org/pub/wu-ftpd/wu-ftpd-2.6.1.tar.gz> 
 
If you have an old wu-ftpd academ (wu-ftpd < 2.5.0) here is a patch to 
workaround the problem (you can use it with diff); if you have a new 
wu-ftpd (2.6.0) you can upgrade to 2.6.1 or still patch it referring to 
www.wuftpd.org <http://www.wuftpd.org>  or its ftp.
 
     --- src/ftpcmd.y.orig       Tue Jun 27 16:57:36 2000
     +++ src/ftpcmd.y    Tue Jun 27 17:00:42 2000
     @@ -1590,13 +1590,13 @@
          } else {
              int lines = 0;
 
     -        lreply(200, cmd);
     +   lreply(200, "%s", cmd);
              while (fgets(buf, sizeof buf, cmdf)) {
                  int len = strlen(buf);
 
                  if (len>0 && buf[len-1]=='\n')
                      buf[--len] = '\0';
     -            lreply(200, buf);
     +       lreply(200, "%s", buf);
                  if (++lines >= 20) {
                      lreply(200, "*** Truncated ***");
                      break;
 
     --- src/ftpd.c.orig Tue Jun 27 17:05:30 2000
     +++ src/ftpd.c      Tue Jun 27 17:06:37 2000
     @@ -1775,7 +1775,7 @@
              reply(230, "User %s logged in.%s", pw->pw_name, guest ?
                    "  Access restrictions apply." : "");
              sprintf(proctitle, "%s: %s", remotehost, pw->pw_name);
     -        setproctitle(proctitle);
     +   setproctitle("%s", proctitle);
              if (logging)
                  syslog(LOG_INFO, "FTP LOGIN FROM %s [%s], %s",
                         remotehost, remoteaddr, pw->pw_name);
     @@ -3337,7 +3337,7 @@
 
          remotehost[sizeof(remotehost)-1]='\0';
          sprintf(proctitle, "%s: connected", remotehost);
     -    setproctitle(proctitle);
     +    setproctitle("%s", proctitle);
 
      #if 0      /* this is redundant unless the caller doesn't do 
*anything*, and
                tcpd will pick it up and deal with it better anyways. _H*/
 

Signed,
Paolo


------_=_NextPart_001_01BFEC0E.D8504620
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">


<META content=3D"MSHTML 5.00.2614.3401" name=3DGENERATOR></HEAD>
<BODY>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D952402814-12072000>Thanks to the three=20
people who replied. Most of the replies said to install wu-ftp. Here =
are two of=20
the replies.</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D952402814-12072000></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D952402814-12072000>Eric =
Arney=20
wrote:<BR>&gt; <BR>&gt; My question is in reference to the "Advisory =
CA-2000-13=20
Two Input Validation<BR>&gt; Problems In FTPD" is True 64 included in =
this? If=20
so is there a patch for<BR>&gt; this? Sorry I'm pretty new to the =
true-64 4.0d=20
and 4.0f Unix and any info on<BR>&gt; where the FTPD came from would be =
great.=20
Thanks.</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D952402814-12072000>The =
advisory doesn't=20
mention T64. It could be that FTPD included with<BR>T64 is a "DEC =
brand" and has=20
no such bugs.</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D952402814-12072000>Nix.<BR>-- <BR>"An=20
expert is a man who has made all the mistakes which can be made =
in<BR>&nbsp;a=20
very narrow field" - Niels Bohr<BR></SPAN></FONT><FONT face=3DArial =
size=3D2><SPAN=20
class=3D952402814-12072000></DIV></SPAN></FONT>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D952402814-12072000>&nbsp;</DIV></SPAN></FONT>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D952402814-12072000>Excue =
me for my bad=20
english, firstly. If you use any wuftpd or BSD <BR>(proftpd, beroftpd, =
etc.)=20
derived ftp daemon you can potentially be object <BR>of attacks. But i =
think=20
that's only theory; that exploits can be attacked <BR>only with one =
valid=20
username/password for your ftp server; exploit code for <BR>the two =
security=20
bugs is not public (hummm ... for site_exec vulnerability <BR>it exist =
but is=20
broken; for setproctitle() exist nothing public). At the <BR>end ... =
all code=20
released is valid ONLY for x86 executable stack. I <BR>strongly =
recommend you to=20
upgrade to wu-ftpd 2.6.1 from <BR><A=20
href=3D"ftp://ftp.wu-ftpd.org/pub/wu-ftpd/wu-ftpd-2.6.1.tar.gz">ftp://ft=
p.wu-ftpd.org/pub/wu-ftpd/wu-ftpd-2.6.1.tar.gz</A></SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D952402814-12072000>If =
you have an old=20
wu-ftpd academ (wu-ftpd &lt; 2.5.0) here is a patch to <BR>workaround =
the=20
problem (you can use it with diff); if you have a new <BR>wu-ftpd =
(2.6.0) you=20
can upgrade to 2.6.1 or still patch it referring to <BR><A=20
href=3D"http://www.wuftpd.org">www.wuftpd.org</A> or its =
ftp.</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D952402814-12072000>&nbsp;&nbsp;&nbsp;&nbsp; ---=20
src/ftpcmd.y.orig&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Tue Jun 27 =
16:57:36=20
2000<BR>&nbsp;&nbsp;&nbsp;&nbsp; +++ src/ftpcmd.y&nbsp;&nbsp;&nbsp; Tue =
Jun 27=20
17:00:42 2000<BR>&nbsp;&nbsp;&nbsp;&nbsp; @@ -1590,13 +1590,13=20
@@<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; } else=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;=20
int lines =3D 0;</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D952402814-12072000>&nbsp;&nbsp;&nbsp;&nbsp;=20
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; lreply(200,=20
cmd);<BR>&nbsp;&nbsp;&nbsp;&nbsp; +&nbsp;&nbsp; lreply(200, "%s",=20
cmd);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;=20
while (fgets(buf, sizeof buf, cmdf))=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
int len =3D strlen(buf);</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D952402814-12072000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
if (len&gt;0 &amp;&amp;=20
buf[len-1]=3D=3D'\n')<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;=20
buf[--len] =3D '\0';<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =
lreply(200,=20
buf);<BR>&nbsp;&nbsp;&nbsp;&nbsp; +&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =

lreply(200, "%s",=20
buf);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
if (++lines &gt;=3D 20)=20
{<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
lreply(200, "*** Truncated=20
***");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&n=
bsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
break;</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D952402814-12072000>&nbsp;&nbsp;&nbsp;&nbsp; --- src/ftpd.c.orig =
Tue Jun 27=20
17:05:30 2000<BR>&nbsp;&nbsp;&nbsp;&nbsp; +++=20
src/ftpd.c&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Tue Jun 27 17:06:37=20
2000<BR>&nbsp;&nbsp;&nbsp;&nbsp; @@ -1775,7 +1775,7=20
@@<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=
&nbsp;&nbsp;=20
reply(230, "User %s logged in.%s", pw-&gt;pw_name, guest=20
?<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&=
nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
"&nbsp; Access restrictions apply." :=20
"");<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;=20
sprintf(proctitle, "%s: %s", remotehost,=20
pw-&gt;pw_name);<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
-&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
setproctitle(proctitle);<BR>&nbsp;&nbsp;&nbsp;&nbsp; +&nbsp;&nbsp;=20
setproctitle("%s",=20
proctitle);<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;&nbsp;&nbsp;=20
if=20
(logging)<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=20
syslog(LOG_INFO, "FTP LOGIN FROM %s [%s],=20
%s",<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;=20
remotehost, remoteaddr, pw-&gt;pw_name);<BR>&nbsp;&nbsp;&nbsp;&nbsp; @@ =
-3337,7=20
+3337,7 @@</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D952402814-12072000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nb=
sp;&nbsp;=20
remotehost[sizeof(remotehost)-1]=3D'\0';<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbs=
p;&nbsp;&nbsp;&nbsp;&nbsp;=20
sprintf(proctitle, "%s: connected", =
remotehost);<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
-&nbsp;&nbsp;&nbsp; =
setproctitle(proctitle);<BR>&nbsp;&nbsp;&nbsp;&nbsp;=20
+&nbsp;&nbsp;&nbsp; setproctitle("%s", proctitle);</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D952402814-12072000>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; #if=20
0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /* this is redundant unless the caller =
doesn't=20
do <BR>*anything*,=20
and<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp=
;&nbsp;&nbsp;&nbsp;&nbsp;=20
tcpd will pick it up and deal with it better anyways. =
_H*/</SPAN></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D952402814-12072000><BR>Signed,<BR>Paolo<BR></DIV></SPAN></FONT><=
/BODY></HTML>

------_=_NextPart_001_01BFEC0E.D8504620--

                 reply	other threads:[~2000-07-12 14:38 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
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