|
|
Log in / Subscribe / Register

Gnome flaw threatens Linux users (News.com)

News.com reports on a vulnerability in the Eye of Gnome program. "A vulnerability in the default image viewer for one of the two major Linux desktop systems could allow an attacker to execute code on a computer running the Gnome software, security group Core Security Technologies said in an advisory on Friday."

to post comments

Gnome flaw threatens Linux users (News.com)

Posted Mar 29, 2003 3:26 UTC (Sat) by proski (guest, #104) [Link] (2 responses)

The article on News.com has no details and no links to the description of the vulnerability. The project site has no details either. I downloaded both versions 2.3.0 (it's a branch for GNOME 2.4) and 2.2.2, and neither version mentions any security issues in their respective NEWS files. Maybe "Escape filenames on the command line properly" in 2.2.2 is security related, I don't know.

Gnome flaw threatens Linux users (News.com)

Posted Mar 29, 2003 3:39 UTC (Sat) by TimCunningham (guest, #10316) [Link]

Snippit reposted from the post to Bugtraq.


Core Security Technologies Advisory
http://www.coresecurity.com

Vulnerability in GNOME's Eye of Gnome

[...]

*Vulnerable Packages:*

Version 2.2.0 and previous versions are vulnerable.


*Solution/Vendor Information/Workaround:*

Updated versions will be at ftp.gnome.org/pub/GNOME/sources/eog/2.2

[...]

*Technical Description - Exploit/Concept Code:*

EOG receives the filename of the image to display as a command
line argument. The program fails to validate it argument and
and handle format string specifiers. By providing a specially
crafted filename an attacker could force eog to execute arbitary
commands with the privileges of the user running it.

The following line demostrates the problem:

$ /usr/bin/eog this_is_an_invalid_file_%n%n

After which eog will crash with the following message:

"Application "eog" (process 4420) has crashed due to a fatal error
(Segmentation Fault)"
Please visit the GNOME Application Crash page for more information

Although this vulnerability does not seem relevant by itself, as we
will show below, it could be exploited by attackers that can force
other users to run eog on their behalf, either locally or remotely.

This vulnerability can be exploited, for example, by abusing Mail
User Agents that use /etc/mailcap entries to determine how to
display images.

Some vendors are known to ship their /etc/mailcap with EOG as the
default image viewer.

The mailcap format is formally defined by RFC 1524. A mailcap file is
a configuration file that maps MIME types to external viewers (MIME
is defined by RFC 1521). It was originaly aimed to mail reader user
agents but it was later adopted by several other applications.

Under RedHat 8.0 distributions EOG is the default viewer when
applications cannot handle certain images format:

-------- begin /etc/mailcap entry
###
### Begin Red Hat Mailcap
###

audio/mod; /usr/bin/mikmod %s
# play is apparently a security hole
#audio/*; /usr/bin/play %s

image/*; eog %s
------------ end /etc/mailcap entry

As shown below, EOG is used for all the image MIME types.
"image/gif" and "image/tiff" are some of the examples of valid MIME
types that will be displayed using EOG.

Mutt and Mozilla are some applications that will use the /etc/mailcap
file depending on the MIME type sent by the attacker. Mozilla, for
example, doesn't display tiff images inside web pages.
In order to view them, the user must right click the image and the
browser will pop up a dialog box asking whether the user wants to
save or view such image. It is worth to notice that the target
filename is not shown in this dialog. The following example shows a
web page that will hang EOG when invoqued from within Mozilla:

------------------------------------
<html>
<head>
<title> TEST </title>
</head>
<img width=400 height=50 src="/tmp/%nbye.tif" type="image/tiff">
</table>
</html>
------------------------------------

Sucessfull exploitation in the case above requires from the attacker
the ability to craft a filename with proprly encoded shellcode and
place it either in the local file system or on a server under the
attacker's control.

Gnome flaw threatens Linux users (News.com)

Posted Mar 29, 2003 15:50 UTC (Sat) by fcrozat (subscriber, #175) [Link]

In short, 2.2.1 (and less) are vulnerable, 2.2.2 (and 2.3.0) are no longer vulnerable..


Copyright © 2003, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds