Share

rxvt

Tracker: Bugs

8 Privilege escalation through DISPLAY handling CVE-2008-1142 - ID: 1957180
Last Update: Comment added ( oec )

References / Descriptions:
http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-1142
http://bugs.gentoo.org/show_bug.cgi?id=217819
http://secunia.com/advisories/29576
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=469296

Patch against rxvt-2.7.10:
http://bugs.gentoo.org/attachment.cgi?id=151785&action=view


hoffie ( hoffie ) - 2008-05-04 10:32

8

Closed

Accepted

Oezguer Kesim

None

None

Public


Comments ( 5 )




Date: 2008-05-10 14:00
Sender: oecProject Admin


It's now patched in the main trunk and other branches. Will take some
time to deploy a new version, as I first need to check the other bugs...


Date: 2008-05-10 12:36
Sender: oecProject Admin


OK, now I got it. It's a trivial change to rxvt...


Date: 2008-05-10 12:01
Sender: hoffie


For a better explanation of possible attack vectors, please see
http://article.gmane.org/gmane.comp.security.oss.general/122


Date: 2008-05-10 08:59
Sender: hoffie


The security risk is that you can accidently launch a terminal on an X
server which belongs to another user and as such giving this other user a
full shell which runs with your permissions.
Setting DISPLAY=:0 leads to the same result, but the difference is that
you have to do this explicitly.

The X server cannot do anything about this -- it cannot tell whether it
was your intention to spawn a shell on a foreign X server or pure accident.


Date: 2008-05-10 08:25
Sender: oecProject Admin


Maybe I got it wrong, but I don't think that this is a security problem
generated by rxvt, it is rather a configuration/protection/hardening
problem of the X11 server itself.

How does the "security risk" change after applying this patch? Not at
all, because the very same user actually controls the environment and might
set DISPLAY=":0" manually, so there would be no difference to the former
case.

It is almost like blaming ssh to try to login to a remote site using your
local account name for the remote site (per default, as convenience) and
realizing that in some cases the remote account uses an empty password.
The problem would not be solved by changing the ssh-client to not use the
local username...

So the real issue here is taking security measures to protect the X11
Server from being hijacked, not rxvt trying to open ":0" in first place
which is pure convenience.


Log in to comment.




Attached File

No Files Currently Attached

Changes ( 6 )

Field Old Value Date By
status_id Open 2008-05-10 14:00 oec
assigned_to nobody 2008-05-10 14:00 oec
close_date - 2008-05-10 14:00 oec
resolution_id Wont Fix 2008-05-10 12:36 oec
resolution_id None 2008-05-10 08:25 oec
priority 5 2008-05-04 11:21 hoffie