* SUMARY: FTPD daemon
@ 2000-07-12 14:38 Eric Arney
0 siblings, 0 replies; only message in thread
From: Eric Arney @ 2000-07-12 14:38 UTC (permalink / raw)
To: tru64-unix-managers
[-- 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> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D952402814-12072000>Eric =
Arney=20
wrote:<BR>> <BR>> My question is in reference to the "Advisory =
CA-2000-13=20
Two Input Validation<BR>> Problems In FTPD" is True 64 included in =
this? If=20
so is there a patch for<BR>> this? Sorry I'm pretty new to the =
true-64 4.0d=20
and 4.0f Unix and any info on<BR>> where the FTPD came from would be =
great.=20
Thanks.</SPAN></FONT></DIV>
<DIV> </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> </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> 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> </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> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D952402814-12072000>If =
you have an old=20
wu-ftpd academ (wu-ftpd < 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> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D952402814-12072000> ---=20
src/ftpcmd.y.orig Tue Jun 27 =
16:57:36=20
2000<BR> +++ src/ftpcmd.y Tue =
Jun 27=20
17:00:42 2000<BR> @@ -1590,13 +1590,13=20
@@<BR> } else=20
{<BR> &=
nbsp; =20
int lines =3D 0;</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D952402814-12072000> =20
- lreply(200,=20
cmd);<BR> + lreply(200, "%s",=20
cmd);<BR> &nb=
sp; =20
while (fgets(buf, sizeof buf, cmdf))=20
{<BR> &=
nbsp; =20
int len =3D strlen(buf);</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D952402814-12072000> &nb=
sp; =20
if (len>0 &&=20
buf[len-1]=3D=3D'\n')<BR>  =
;  =
; =20
buf[--len] =3D '\0';<BR> =20
- =
lreply(200,=20
buf);<BR> + =
lreply(200, "%s",=20
buf);<BR> &nb=
sp; =20
if (++lines >=3D 20)=20
{<BR> &=
nbsp; =20
lreply(200, "*** Truncated=20
***");<BR> &n=
bsp; =20
break;</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D952402814-12072000> --- src/ftpd.c.orig =
Tue Jun 27=20
17:05:30 2000<BR> +++=20
src/ftpd.c Tue Jun 27 17:06:37=20
2000<BR> @@ -1775,7 +1775,7=20
@@<BR> =
=20
reply(230, "User %s logged in.%s", pw->pw_name, guest=20
?<BR> &=
nbsp; =20
" Access restrictions apply." :=20
"");<BR> &nbs=
p; =20
sprintf(proctitle, "%s: %s", remotehost,=20
pw->pw_name);<BR> =20
- =20
setproctitle(proctitle);<BR> + =20
setproctitle("%s",=20
proctitle);<BR> &nb=
sp; =20
if=20
(logging)<BR>  =
; =20
syslog(LOG_INFO, "FTP LOGIN FROM %s [%s],=20
%s",<BR> &nbs=
p; &nbs=
p; =20
remotehost, remoteaddr, pw->pw_name);<BR> @@ =
-3337,7=20
+3337,7 @@</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D952402814-12072000> &nb=
sp; =20
remotehost[sizeof(remotehost)-1]=3D'\0';<BR> &nbs=
p; =20
sprintf(proctitle, "%s: connected", =
remotehost);<BR> =20
- =
setproctitle(proctitle);<BR> =20
+ setproctitle("%s", proctitle);</SPAN></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D952402814-12072000> #if=20
0 /* this is redundant unless the caller =
doesn't=20
do <BR>*anything*,=20
and<BR>  =
; =20
tcpd will pick it up and deal with it better anyways. =
_H*/</SPAN></FONT></DIV>
<DIV> </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--
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2000-07-12 14:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-07-12 14:38 SUMARY: FTPD daemon Eric Arney
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox