Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jun 2001 10:31:55 -0400
From:      Mike Tancsa <mike@sentex.net>
To:        freebsd-security@FreeBSD.ORG
Subject:   patch to fix expire security hole ?
Message-ID:  <5.1.0.14.0.20010622103016.03639890@marble.sentex.ca>

next in thread | raw e-mail | index | archive | help

Is this a possible fix for ftpd so that the expire field is checked ?

	---Mike

diff -u ftpd.c.orig ftpd.c
--- ftpd.c.orig Fri Jun 22 10:29:02 2001
+++ ftpd.c      Fri Jun 22 10:40:38 2001
@@ -1215,11 +1215,11 @@
  #else
                 rval = strcmp(pw->pw_passwd, crypt(passwd, pw->pw_passwd));
  #endif
+skip:
                 /* The strcmp does not catch null passwords! */
                 if (*pw->pw_passwd == '\0' ||
                     (pw->pw_expire && time(NULL) >= pw->pw_expire))
                         rval = 1;       /* failure */
-skip:
                 /*
                  * If rval == 1, the user failed the authentication check
                  * above.  If rval == 0, either PAM or local authentication


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?5.1.0.14.0.20010622103016.03639890>