Security fix:
``Buffer overflows exist in the FTP daemon included with MIT krb5.'' See <URL:http://web.mit.edu/kerberos/www/advisories/ftpbuf.txt> and <URL:http://web.mit.edu/kerberos/www/advisories/ftpbuf_122_patch.txt>. Obtained from: MIT Kerberos mailing list
This commit is contained in:
parent
3f37ef937e
commit
9168f72db8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=41972
19
security/krb5-16/files/patch-bd
Normal file
19
security/krb5-16/files/patch-bd
Normal file
@ -0,0 +1,19 @@
|
||||
--- appl/gssftp/ftpd/ftpcmd.y.ORIG Wed Feb 28 16:06:45 2001
|
||||
+++ appl/gssftp/ftpd/ftpcmd.y Fri Apr 27 10:18:01 2001
|
||||
@@ -805,11 +805,13 @@
|
||||
* This is a valid reply in some cases but not in others.
|
||||
*/
|
||||
if (logged_in && $1 && strncmp((char *) $1, "~", 1) == 0) {
|
||||
- *(char **)&($$) = *ftpglob((char *) $1);
|
||||
- if (globerr != NULL) {
|
||||
+ char **vv;
|
||||
+ vv = ftpglob((char *) $1);
|
||||
+ if (vv == NULL || globerr != NULL) {
|
||||
reply(550, globerr);
|
||||
$$ = NULL;
|
||||
- }
|
||||
+ } else
|
||||
+ $$ = *vv;
|
||||
free((char *) $1);
|
||||
} else
|
||||
$$ = $1;
|
19
security/krb5-17/files/patch-bd
Normal file
19
security/krb5-17/files/patch-bd
Normal file
@ -0,0 +1,19 @@
|
||||
--- appl/gssftp/ftpd/ftpcmd.y.ORIG Wed Feb 28 16:06:45 2001
|
||||
+++ appl/gssftp/ftpd/ftpcmd.y Fri Apr 27 10:18:01 2001
|
||||
@@ -805,11 +805,13 @@
|
||||
* This is a valid reply in some cases but not in others.
|
||||
*/
|
||||
if (logged_in && $1 && strncmp((char *) $1, "~", 1) == 0) {
|
||||
- *(char **)&($$) = *ftpglob((char *) $1);
|
||||
- if (globerr != NULL) {
|
||||
+ char **vv;
|
||||
+ vv = ftpglob((char *) $1);
|
||||
+ if (vv == NULL || globerr != NULL) {
|
||||
reply(550, globerr);
|
||||
$$ = NULL;
|
||||
- }
|
||||
+ } else
|
||||
+ $$ = *vv;
|
||||
free((char *) $1);
|
||||
} else
|
||||
$$ = $1;
|
19
security/krb5-appl/files/patch-bd
Normal file
19
security/krb5-appl/files/patch-bd
Normal file
@ -0,0 +1,19 @@
|
||||
--- appl/gssftp/ftpd/ftpcmd.y.ORIG Wed Feb 28 16:06:45 2001
|
||||
+++ appl/gssftp/ftpd/ftpcmd.y Fri Apr 27 10:18:01 2001
|
||||
@@ -805,11 +805,13 @@
|
||||
* This is a valid reply in some cases but not in others.
|
||||
*/
|
||||
if (logged_in && $1 && strncmp((char *) $1, "~", 1) == 0) {
|
||||
- *(char **)&($$) = *ftpglob((char *) $1);
|
||||
- if (globerr != NULL) {
|
||||
+ char **vv;
|
||||
+ vv = ftpglob((char *) $1);
|
||||
+ if (vv == NULL || globerr != NULL) {
|
||||
reply(550, globerr);
|
||||
$$ = NULL;
|
||||
- }
|
||||
+ } else
|
||||
+ $$ = *vv;
|
||||
free((char *) $1);
|
||||
} else
|
||||
$$ = $1;
|
19
security/krb5/files/patch-bd
Normal file
19
security/krb5/files/patch-bd
Normal file
@ -0,0 +1,19 @@
|
||||
--- appl/gssftp/ftpd/ftpcmd.y.ORIG Wed Feb 28 16:06:45 2001
|
||||
+++ appl/gssftp/ftpd/ftpcmd.y Fri Apr 27 10:18:01 2001
|
||||
@@ -805,11 +805,13 @@
|
||||
* This is a valid reply in some cases but not in others.
|
||||
*/
|
||||
if (logged_in && $1 && strncmp((char *) $1, "~", 1) == 0) {
|
||||
- *(char **)&($$) = *ftpglob((char *) $1);
|
||||
- if (globerr != NULL) {
|
||||
+ char **vv;
|
||||
+ vv = ftpglob((char *) $1);
|
||||
+ if (vv == NULL || globerr != NULL) {
|
||||
reply(550, globerr);
|
||||
$$ = NULL;
|
||||
- }
|
||||
+ } else
|
||||
+ $$ = *vv;
|
||||
free((char *) $1);
|
||||
} else
|
||||
$$ = $1;
|
Loading…
Reference in New Issue
Block a user