From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96341271913001.tru64-unix-managers.marc@archive.invalid> From: Eric Arney Date: Wed, 12 Jul 2000 14:38:53 +0000 To: tru64-unix-managers Subject: SUMARY: FTPD daemon X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96341271913001 MIME-Version: 1 Content-Type: multipart/mixed; boundary="------_=_NextPart_001_01BFEC0E.D8504620" 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 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 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
Thanks to the three=20 people who replied. Most of the replies said to install wu-ftp. Here = are two of=20 the replies.
 
Eric = Arney=20 wrote:
>
> My question is in reference to the "Advisory = CA-2000-13=20 Two Input Validation
> Problems In FTPD" is True 64 included in = this? If=20 so is there a patch for
> this? Sorry I'm pretty new to the = true-64 4.0d=20 and 4.0f Unix and any info on
> where the FTPD came from would be = great.=20 Thanks.
 
The = advisory doesn't=20 mention T64. It could be that FTPD included with
T64 is a "DEC = brand" and has=20 no such bugs.
 
Nix.
--
"An=20 expert is a man who has made all the mistakes which can be made = in
 a=20 very narrow field" - Niels Bohr
 
Excue = me for my bad=20 english, firstly. If you use any wuftpd or BSD
(proftpd, beroftpd, = etc.)=20 derived ftp daemon you can potentially be object
of attacks. But i = think=20 that's only theory; that exploits can be attacked
only with one = valid=20 username/password for your ftp server; exploit code for
the two = security=20 bugs is not public (hummm ... for site_exec vulnerability
it exist = but is=20 broken; for setproctitle() exist nothing public). At the
end ... = all code=20 released is valid ONLY for x86 executable stack. I
strongly = recommend you to=20 upgrade to wu-ftpd 2.6.1 from
ftp://ft= p.wu-ftpd.org/pub/wu-ftpd/wu-ftpd-2.6.1.tar.gz
 
If = you have an old=20 wu-ftpd academ (wu-ftpd < 2.5.0) here is a patch to
workaround = the=20 problem (you can use it with diff); if you have a new
wu-ftpd = (2.6.0) you=20 can upgrade to 2.6.1 or still patch it referring to
www.wuftpd.org or its = ftp.
 
     ---=20 src/ftpcmd.y.orig       Tue Jun 27 = 16:57:36=20 2000
     +++ src/ftpcmd.y    Tue = Jun 27=20 17:00:42 2000
     @@ -1590,13 +1590,13=20 @@
          } else=20 {
           &= nbsp; =20 int lines =3D 0;
 
    =20 -        lreply(200,=20 cmd);
     +   lreply(200, "%s",=20 cmd);
          &nb= sp;  =20 while (fgets(buf, sizeof buf, cmdf))=20 {
           &= nbsp;     =20 int len =3D strlen(buf);
 
       &nb= sp;         =20 if (len>0 &&=20 buf[len-1]=3D=3D'\n')
        = ;            = ; =20 buf[--len] =3D '\0';
    =20 -            = lreply(200,=20 buf);
     +       = lreply(200, "%s",=20 buf);
          &nb= sp;      =20 if (++lines >=3D 20)=20 {
           &= nbsp;         =20 lreply(200, "*** Truncated=20 ***");
          &n= bsp;          =20 break;
 
     --- src/ftpd.c.orig = Tue Jun 27=20 17:05:30 2000
     +++=20 src/ftpd.c      Tue Jun 27 17:06:37=20 2000
     @@ -1775,7 +1775,7=20 @@
           =   =20 reply(230, "User %s logged in.%s", pw->pw_name, guest=20 ?
           &= nbsp;       =20 "  Access restrictions apply." :=20 "");
          &nbs= p;  =20 sprintf(proctitle, "%s: %s", remotehost,=20 pw->pw_name);
    =20 -       =20 setproctitle(proctitle);
     +  =20 setproctitle("%s",=20 proctitle);
         &nb= sp;   =20 if=20 (logging)
          = ;       =20 syslog(LOG_INFO, "FTP LOGIN FROM %s [%s],=20 %s",
          &nbs= p;           &nbs= p; =20 remotehost, remoteaddr, pw->pw_name);
     @@ = -3337,7=20 +3337,7 @@
 
       &nb= sp; =20 remotehost[sizeof(remotehost)-1]=3D'\0';
    &nbs= p;    =20 sprintf(proctitle, "%s: connected", = remotehost);
    =20 -    = setproctitle(proctitle);
    =20 +    setproctitle("%s", proctitle);
 
      #if=20 0      /* this is redundant unless the caller = doesn't=20 do
*anything*,=20 and
           = ;    =20 tcpd will pick it up and deal with it better anyways. = _H*/
 

Signed,
Paolo
<= /BODY> ------_=_NextPart_001_01BFEC0E.D8504620--