Hello community,

here is the log from the commit of package krb5-appl for openSUSE:11.4
checked in at Wed Oct 19 13:35:12 CEST 2011.



--------
--- old-versions/11.4/UPDATES/all/krb5-appl/krb5-appl.changes   2011-04-29 
14:17:38.000000000 +0200
+++ 11.4/krb5-appl/krb5-appl.changes    2011-07-06 15:43:55.000000000 +0200
@@ -1,0 +2,6 @@
+Tue Jun 14 13:59:46 CEST 2011 - [email protected]
+
+- fix krb5 ftpd unauthorized file access
+  (bnc#698471, MITKRB5-SA-2011-005, CVE-2011-1526)
+
+-------------------------------------------------------------------

calling whatdependson for 11.4-i586


New:
----
  krb5-appl-MITKRB5-SA-2011-005.dif

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ krb5-appl.spec ++++++
--- /var/tmp/diff_new_pack.dp8626/_old  2011-10-19 13:35:01.000000000 +0200
+++ /var/tmp/diff_new_pack.dp8626/_new  2011-10-19 13:35:01.000000000 +0200
@@ -26,7 +26,7 @@
 Url:            http://web.mit.edu/kerberos/www/
 BuildRequires:  bison krb5-devel libcom_err-devel ncurses-devel
 Version:        1.0
-Release:        7.<RELEASE8>
+Release:        7.<RELEASE10>
 Summary:        MIT Kerberos5 Implementation--Applications
 Group:          Productivity/Networking/Security
 Source0:        krb5-appl-1.0.tar.bz2
@@ -37,6 +37,7 @@
 Patch2:         krb5-appl-1.0-fix-var-used-before-value-set.dif
 Patch3:         krb5-appl-1.0-fix-path-in-manpages.dif
 Patch4:         fix-telnet.dif
+Patch5:         krb5-appl-MITKRB5-SA-2011-005.dif
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 
 %description
@@ -111,9 +112,11 @@
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 %build
 %{?suse_update_config:%{suse_update_config -f}}
+./autogen.sh
 CFLAGS="$RPM_OPT_FLAGS -I/usr/include/et -fpie" \
 LDFLAGS="-pie " \
 ./configure \

++++++ krb5-appl-MITKRB5-SA-2011-005.dif ++++++
Index: krb5-appl-1.0/configure.ac
===================================================================
--- krb5-appl-1.0.orig/configure.ac
+++ krb5-appl-1.0/configure.ac
@@ -107,6 +107,7 @@ AC_CHECK_FUNCS(_getpty cgetent getcwd ge
 AC_CHECK_FUNCS(getutmpx grantpt inet_aton initgroups isatty killpg killpg)
 AC_CHECK_FUNCS(line_push ptsname revoke rmufile rresvport_af)
 AC_CHECK_FUNCS(seteuid setlogin setpgid setpriority setresuid setreuid)
+AC_CHECK_FUNCS(setegid setregid setresgid)
 AC_CHECK_FUNCS(setutent setutsent setutxent strsave tcgetpgrp tcsetpgrp)
 AC_CHECK_FUNCS(ttyname unsetenv updwtmp updwtmpx utimes utmpname utmpxname)
 AC_CHECK_FUNCS(vhangup vsnprintf waitpid)
Index: krb5-appl-1.0/gssftp/ftpd/ftpd.c
===================================================================
--- krb5-appl-1.0.orig/gssftp/ftpd/ftpd.c
+++ krb5-appl-1.0/gssftp/ftpd/ftpd.c
@@ -986,9 +986,14 @@ login(passwd, logincode)
 #endif
        }
 
-       (void) krb5_setegid((gid_t)pw->pw_gid);
-       (void) initgroups(pw->pw_name, pw->pw_gid);
-
+       if (krb5_setegid((gid_t)pw->pw_gid) < 0) {
+               reply(550, "Can't set egid.");
+               goto bad;
+       }
+       if (geteuid() == 0 && initgroups(pw->pw_name, pw->pw_gid) < 0) {
+               reply(550, "Can't initgroups");
+               goto bad;
+       }
        /* open wtmp before chroot */
        (void) snprintf(ttyline, sizeof(ttyline), "ftp%ld", (long) getpid());
        pty_logwtmp(ttyline, pw->pw_name, rhost_sane);
Index: krb5-appl-1.0/k5-util.h
===================================================================
--- krb5-appl-1.0.orig/k5-util.h
+++ krb5-appl-1.0/k5-util.h
@@ -69,8 +69,7 @@
 #elif defined(HAVE_SETREUID)
 #  define krb5_seteuid(EUID)   setreuid(geteuid(), (uid_t)(EUID))
 #else
-   /* You need to add a case to deal with this operating system.*/
-#  define krb5_seteuid(EUID)   (errno = EPERM, -1)
+#  error "You need to add a case to deal with this operating system."
 #endif
 
 #ifdef HAVE_SETEGID
@@ -80,8 +79,7 @@
 #elif defined(HAVE_SETREGID)
 #  define krb5_setegid(EGID)   (setregid(getegid(), (gid_t)(EGID)))
 #else
-   /* You need to add a case to deal with this operating system.*/
-#  define krb5_setegid(EGID)   (errno = EPERM, -1)
+#  error "You need to add a case to deal with this operating system."
 #endif
 
 #endif
continue with "q"...



Remember to have fun...

-- 
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to