GNOME Display Manager Lets Local Users Gain Elevated Privileges
SecurityTracker Alert ID: 1017383|
SecurityTracker URL: http://securitytracker.com/id/1017383
(Links to External Site)
Updated: May 22 2008|
Original Entry Date: Dec 14 2006
User access via local system|
Fix Available: Yes Vendor Confirmed: Yes |
Version(s): prior to 2.14.11, 2.16.x prior to 2.16.4, and 2.17.x prior to 2.17.4|
iDefense reported a vulnerability in GNOME Display Manager. A local user can obtain elevated privileges on the target system.|
A local user can exploit a format string flaw in 'gdmchooser' to execute arbitrary commands on the target system with the privileges of the GNOME Display Manager (gdm) service.
The local user can execute gdmchooser and enter specially crafted format string characters in the dialog box to trigger the vulnerability.
The vendor was notified on December 4, 2006.
A local user can obtain elevated privileges on the target system.|
The vendor has issued fixed versions (2.14.11, 2.16.4, and 2.17.4), available at:|
Vendor URL: www.gnome.org/projects/gdm/ (Links to External Site)
Input validation error, State error|
|Underlying OS: Linux (Any), UNIX (Any)|
Source Message Contents
Subject: iDefense Security Advisory 12.14.06: GNOME Foundation Display Manager|
GNOME Foundation Display Manager gdmchooser Format String Vulnerability
iDefense Security Advisory 12.14.06
Dec 14, 2006
The gdmchooser program provides XDMCP (X Display Manager Control Protocol)
functionality to the GNOME Display Manager. This protocol allows a user to
interact remote systems via the local X11 display.
Local exploitation of a format string vulnerability in GNOME Foundation's
GNOME Display Manager host chooser window (gdmchooser) could allow an
unauthenticated attacker to execute arbitrary code on the affected system.
The vulnerability specifically exists in the handling of values entered
when choosing a remote host to connect to from the current system. The
following snippet from gdmchooser.c shows the vulnerable code:
1395 msg = g_strdup_printf (_("Cannot find the host \"%s\". "
1396 "Perhaps you have mistyped it."),
1399 dialog = ve_hig_dialog_new
1400 (GTK_WINDOW (chooser) /* parent */,
1401 GTK_DIALOG_MODAL /* flags */,
1404 _("Cannot find host"),
1407 g_free (msg);
The error dialog uses the temporary value 'msg', constructed from 'name'
when the host is not found. By supplying a sequence of formatting
operations which modify memory values, an unauthenticated attacker can
execute code with the permissions under the gdm account.
Successful local exploitation of this vulnerability would allow an
unauthenticated attacker to execute arbitrary code with the privileges of
the gdm service.
In order to exploit this vulnerability, the attacker would need to have
access to the system running gdmchooser. Connecting remotely to this
service will not work as the functionality is designed to connect to a
remote server already, and proxying is not allowed.
The attacker selects the option to run the gdmchooser, and then types the
format string into the dialog box. They can send a string which displays
the contents of the stack, and use there construct a format string which
will write controlled values to arbitrary memory locations, which allows
execution of code with the privileges of the gdmchooser, typically the user
'gdm'. Although this user does not have a high privilege level, once this
account has been gained, it would be relatively simple to insert a logger
into gdm processes to capture other users passwords.
The gdmchooser is not accessible from the default login screens in any of
the tested Red Hat systems, however the preferences utility does contain
some preset screens which do contain it.
This vulnerability has been confirmed to exist in the gdm-2.14.1-1 RPM from
Red Hat Fedora Core 5. The vulnerability was introduced into the
gdmchooser.c file in version 1.78 of gdm2/gui/gdmchooser.c in the GNOME CVS
source code repository.
If XDMCP functionality is not required, setting the permissions on the
gdmchooser to not allow execution will prevent any attempts at
VI. VENDOR RESPONSE
The GNOME maintainers have addressed this problem by releasing versions
2.14.11, 2.16.4, and 2.17.4 of the GNOME Display Manager.
VII. CVE INFORMATION
A Mitre Corp. Common Vulnerabilities and Exposures (CVE) number has not
been assigned yet.
VIII. DISCLOSURE TIMELINE
12/04/2006 Initial vendor notification
12/05/2006 Initial vendor response
12/14/2006 Coordinated public disclosure
The discoverer of this vulnerability wishes to remain anonymous.
Get paid for vulnerability research
Free tools, research and upcoming events
X. LEGAL NOTICES
Permission is granted for the redistribution of this alert electronically.
It may not be edited in any way without the express written consent of
iDefense. If you wish to reprint the whole or any part of this alert in
any other medium other than electronically, please e-mail
email@example.com for permission.
Disclaimer: The information in the advisory is believed to be accurate at
the time of publishing based on currently available information. Use of
the information constitutes acceptance for use in an AS IS condition.
There are no warranties with regard to this information. Neither the
author nor the publisher accepts any liability for any direct, indirect,
or consequential loss or damage arising from use of, or reliance on, this
To unsubscribe, go here: