[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-security
Subject: patch to fix expire security hole ?
From: Mike Tancsa <mike () sentex ! net>
Date: 2001-06-22 14:31:55
[Download RAW message or body]
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic