gnuserv MIT-MAGIC-COOKIE Remote Buffer Overflow Vulnerability
BID:2333
Info
gnuserv MIT-MAGIC-COOKIE Remote Buffer Overflow Vulnerability
| Bugtraq ID: | 2333 |
| Class: | Boundary Condition Error |
| CVE: | |
| Remote: | Yes |
| Local: | No |
| Published: | Feb 01 2001 12:00AM |
| Updated: | Feb 01 2001 12:00AM |
| Credit: | This problem was discovered by Klaus Frank <[email protected]>, and announced to Bugtraq in a Mandrake Security Advisory on January 31, 2001. |
| Vulnerable: |
XEmacs Development Team XEmacs 21.2.42 Redhat Linux 6.2 sparc Redhat Linux 6.2 i386 Redhat Linux 6.2 alpha Martin Schwenkes gnuserv 3.11 Mandriva Linux Mandrake 7.2 Mandriva Linux Mandrake 7.1 Mandriva Linux Mandrake 7.0 Mandriva Linux Mandrake 6.1 Mandriva Linux Mandrake 6.0 MandrakeSoft Corporate Server 1.0.1 |
| Not Vulnerable: | |
Discussion
gnuserv MIT-MAGIC-COOKIE Remote Buffer Overflow Vulnerability
gnuserv is a freely available client server package included with xemacs. gnuserv is currently maintained by Jan Vroonhof.
A problem with gnuserv could allow a remote user to arbitrarily execute code. gnuserv allows for remote connectivity to a local session using the MIT-MAGIC-COOKIE authentication mechanism. However, the server places trust in the remote side of the connection to send a magic cookie within the size limitations. Sanity checks are not done on the cookie, which could allow a buffer overflow in the buffer holding the cookie, or alter the prefix length of authentication to a new size of 1 byte, making it possible to launch a brute-force attack against a trivial authentication.
This makes it possible for a remote user to initiate a connection to the gnuserv server, and potentially execute code as the UID of the server.
gnuserv is a freely available client server package included with xemacs. gnuserv is currently maintained by Jan Vroonhof.
A problem with gnuserv could allow a remote user to arbitrarily execute code. gnuserv allows for remote connectivity to a local session using the MIT-MAGIC-COOKIE authentication mechanism. However, the server places trust in the remote side of the connection to send a magic cookie within the size limitations. Sanity checks are not done on the cookie, which could allow a buffer overflow in the buffer holding the cookie, or alter the prefix length of authentication to a new size of 1 byte, making it possible to launch a brute-force attack against a trivial authentication.
This makes it possible for a remote user to initiate a connection to the gnuserv server, and potentially execute code as the UID of the server.
Exploit / POC
gnuserv MIT-MAGIC-COOKIE Remote Buffer Overflow Vulnerability
Currently the SecurityFocus staff are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.
Currently the SecurityFocus staff are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected] <mailto:[email protected]>.
Solution / Fix
gnuserv MIT-MAGIC-COOKIE Remote Buffer Overflow Vulnerability
Solution:
Updates available:
MandrakeSoft Corporate Server 1.0.1
Martin Schwenkes gnuserv 3.11
Mandriva Linux Mandrake 6.0
Mandriva Linux Mandrake 6.1
Redhat Linux 6.2 sparc
Redhat Linux 6.2 alpha
Redhat Linux 6.2 i386
Mandriva Linux Mandrake 7.0
Mandriva Linux Mandrake 7.1
Mandriva Linux Mandrake 7.2
Solution:
Updates available:
MandrakeSoft Corporate Server 1.0.1
-
MandrakeSoft 1.0.1 i386 xemacs-21.1.14-1.2mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/1.0.1/RPM S/xemacs-21.1.14-1.2mdk.i586.rpm -
MandrakeSoft 1.0.1 i386 xemacs-el-21.1.14-1.2mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/1.0.1/RPM S/xemacs-el-21.1.14-1.2mdk.i586.rpm -
MandrakeSoft 1.0.1 i386 xemacs-extras-21.1.14-1.2mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/1.0.1/RPM S/xemacs-extras-21.1.14-1.2mdk.i586.rpm -
MandrakeSoft 1.0.1 i386 xemacs-info-21.1.14-1.2mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/1.0.1/RPM S/xemacs-info-21.1.14-1.2mdk.i586.rpm -
MandrakeSoft 1.0.1 i386 xemacs-mule-21.1.14-1.2mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/1.0.1/RPM S/xemacs-mule-21.1.14-1.2mdk.i586.rpm
Martin Schwenkes gnuserv 3.11
-
Martin Schwenkes gnuserv-3.12.1.tar.gz
http://www.linuxcare.com.au/people/martins/hacks/emacs/src/gnuserv-3.1 2.1.tar.gz -
XEmacs Development Team xemacs 21.1.14
http://www.xemacs.org/Releases/21.1.14.html
Mandriva Linux Mandrake 6.0
-
MandrakeSoft 6.0 i386 xemacs-21.1.14-1.3mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/6.0/RPMS/ xemacs-21.1.14-1.3mdk.i586.rpm -
MandrakeSoft 6.0 i386 xemacs-el-21.1.14-1.3mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/6.0/RPMS/ xemacs-el-21.1.14-1.3mdk.i586.rpm -
MandrakeSoft 6.0 i386 xemacs-extras-21.1.14-1.3mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/6.0/RPMS/ xemacs-extras-21.1.14-1.3mdk.i586.rpm -
MandrakeSoft 6.0 i386 xemacs-info-21.1.14-1.3mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/6.0/RPMS/ xemacs-info-21.1.14-1.3mdk.i586.rpm -
MandrakeSoft 6.0 i386 xemacs-mule-21.1.14-1.3mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/6.0/RPMS/ xemacs-mule-21.1.14-1.3mdk.i586.rpm
Mandriva Linux Mandrake 6.1
-
MandrakeSoft 6.1 i386 xemacs-21.1.14-1.3mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/6.1/RPMS/ xemacs-21.1.14-1.3mdk.i586.rpm -
MandrakeSoft 6.1 i386 xemacs-el-21.1.14-1.3mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/6.1/RPMS/ xemacs-el-21.1.14-1.3mdk.i586.rpm -
MandrakeSoft 6.1 i386 xemacs-extras-21.1.14-1.3mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/6.1/RPMS/ xemacs-extras-21.1.14-1.3mdk.i586.rpm -
MandrakeSoft 6.1 i386 xemacs-info-21.1.14-1.3mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/6.1/RPMS/ xemacs-info-21.1.14-1.3mdk.i586.rpm -
MandrakeSoft 6.1 i386 xemacs-mule-21.1.14-1.3mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/6.1/RPMS/ xemacs-mule-21.1.14-1.3mdk.i586.rpm
Redhat Linux 6.2 sparc
-
Red Hat Inc. 6.2 sparc xemacs-21.1.14-2.62.sparc.rpm
ftp://updates.redhat.com/powertools/6.2/sparc/xemacs-21.1.14-2.62.spar c.rpm -
Red Hat Inc. 6.2 sparc xemacs-el-21.1.14-2.62.sparc.rpm
ftp://updates.redhat.com/powertools/6.2/sparc/xemacs-el-21.1.14-2.62.s parc.rpm -
Red Hat Inc. 6.2 sparc xemacs-info-21.1.14-2.62.sparc.rpm
ftp://updates.redhat.com/powertools/6.2/sparc/xemacs-info-21.1.14-2.62 .sparc.rpm
Redhat Linux 6.2 alpha
-
Red Hat Inc. 6.2 alpha xemacs-21.1.14-2.62.alpha.rpm
ftp://updates.redhat.com/powertools/6.2/alpha/xemacs-21.1.14-2.62.alph a.rpm -
Red Hat Inc. 6.2 alpha xemacs-el-21.1.14-2.62.alpha.rpm
ftp://updates.redhat.com/powertools/6.2/alpha/xemacs-el-21.1.14-2.62.a lpha.rpm -
Red Hat Inc. 6.2 alpha xemacs-info-21.1.14-2.62.alpha.rpm
ftp://updates.redhat.com/powertools/6.2/alpha/xemacs-info-21.1.14-2.62 .alpha.rpm
Redhat Linux 6.2 i386
-
Red Hat Inc. 6.2 i386 xemacs-21.1.14-2.62.i386.rpm
ftp://updates.redhat.com/powertools/6.2/i386/xemacs-21.1.14-2.62.i386. rpm -
Red Hat Inc. 6.2 i386 xemacs-el-21.1.14-2.62.i386.rpm
ftp://updates.redhat.com/powertools/6.2/i386/xemacs-el-21.1.14-2.62.i3 86.rpm -
Red Hat Inc. 6.2 i386 xemacs-info-21.1.14-2.62.i386.rpm
ftp://updates.redhat.com/powertools/6.2/i386/xemacs-info-21.1.14-2.62. i386.rpm
Mandriva Linux Mandrake 7.0
-
MandrakeSoft 7.0 i386 xemacs-21.1.14-1.2mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/7.0/RPMS/ xemacs-21.1.14-1.2mdk.i586.rpm -
MandrakeSoft 7.0 i386 xemacs-el-21.1.14-1.2mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/7.0/RPMS/ xemacs-el-21.1.14-1.2mdk.i586.rpm -
MandrakeSoft 7.0 i386 xemacs-extras-21.1.14-1.2mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/7.0/RPMS/ xemacs-extras-21.1.14-1.2mdk.i586.rpm -
MandrakeSoft 7.0 i386 xemacs-mule-21.1.14-1.2mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/7.0/RPMS/ xemacs-mule-21.1.14-1.2mdk.i586.rpm
Mandriva Linux Mandrake 7.1
-
MandrakeSoft 7.1 i386 xemacs-21.1.14-1.2mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/7.1/RPMS/ xemacs-21.1.14-1.2mdk.i586.rpm -
MandrakeSoft 7.1 i386 xemacs-el-21.1.14-1.2mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/7.1/RPMS/ xemacs-el-21.1.14-1.2mdk.i586.rpm -
MandrakeSoft 7.1 i386 xemacs-extras-21.1.14-1.2mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/7.1/RPMS/ xemacs-extras-21.1.14-1.2mdk.i586.rpm -
MandrakeSoft 7.1 i386 xemacs-info-21.1.14-1.2mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/7.1/RPMS/ xemacs-info-21.1.14-1.2mdk.i586.rpm -
MandrakeSoft 7.1 i386 xemacs-mule-21.1.14-1.2mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/7.1/RPMS/ xemacs-mule-21.1.14-1.2mdk.i586.rpm
Mandriva Linux Mandrake 7.2
-
MandrakeSoft 7.2 i386 xemacs-21.1.14-1.1mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/7.2/RPMS/ xemacs-21.1.14-1.1mdk.i586.rpm -
MandrakeSoft 7.2 i386 xemacs-el-21.1.14-1.1mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/7.2/RPMS/ xemacs-el-21.1.14-1.1mdk.i586.rpm -
MandrakeSoft 7.2 i386 xemacs-extras-21.1.14-1.1mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/7.2/RPMS/ xemacs-extras-21.1.14-1.1mdk.i586.rpm -
MandrakeSoft 7.2 i386 xemacs-info-21.1.14-1.1mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/7.2/RPMS/ xemacs-info-21.1.14-1.1mdk.i586.rpm -
MandrakeSoft 7.2 i386 xemacs-mule-21.1.14-1.1mdk.i586.rpm
http://sunsite.ualberta.ca/pub/Mirror/Linux/mandrake/updates/7.2/RPMS/ xemacs-mule-21.1.14-1.1mdk.i586.rpm
References
gnuserv MIT-MAGIC-COOKIE Remote Buffer Overflow Vulnerability
References:
References: