run as different user fails (wrong ownership of .Xauthority and /tmp/libgksu-xxx)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gksu (Ubuntu) |
Confirmed
|
Low
|
Unassigned |
Bug Description
Binary package hint: gksu
peter@whale:~$ gksudo xterm
root@whale:
-rw------- 1 peter peter 150 2008-09-27 20:20 /tmp/libgksu-
The directory is also owned by the user who ran gksudo, so they could modify .Xauthority during the gksudo session.
This isn't really a security problem, because anyone who runs gksudo is root-equivalent in the first place. An attacker gaining access to their account could do lots of things besides try to exploit root X processes by writing to their .Xauthority. e.g. capture user's password and sudo themselves.
The problem this does cause is that gksudo only works for sudo-to-root. gksudo -u other-user xterm fails, because xterm can't open .Xauthority, because it doesn't have read permission on it or even exec permission on the dir it's in.
Changed in gksu (Ubuntu): | |
importance: | Undecided → Low |
sorry, this is on an updated Intrepid i386 with
gksu 2.0.0-5ubuntu3
libgksu2-0 2.0.7-1ubuntu2