Files
Richard W.M. Jones 6a451ff65c fish: CVE-2013-4419: Fix insecure temporary directory handling for remote guestfish (RHBZ#1016960).
When using the guestfish --remote or guestfish --listen options,
guestfish would create a socket in a known location
(/tmp/.guestfish-$UID/socket-$PID).

The location has to be a known one in order for both ends to
communicate.  However no checking was done that the containing
directory (/tmp/.guestfish-$UID) is owned by the user.  Thus another
user could create this directory and potentially modify sockets owned
by another user's guestfish client or server.

This commit fixes the issue by creating the directory unconditionally,
and then checking that the directory has the correct owner and
permissions, thus preventing another user from creating the directory
first.

If guestfish sees a suspicious socket directory it will print an error
like this and exit with an error status:

  guestfish: '/tmp/.guestfish-1000' is not a directory or has insecure owner or permissions

Thanks: Michael Scherer for discovering this issue.

Version 2:
 - Add assigned CVE number.
 - Update documentation.

Signed-off-by: Richard W.M. Jones <rjones@redhat.com>
(cherry picked from commit 54fb09e052)
(cherry picked from commit b23fca294e)
2013-10-17 13:21:23 +01:00
..
2013-05-28 18:48:50 +01:00
2011-11-08 14:43:07 +00:00
2013-02-14 16:13:29 +00:00
2013-02-14 16:12:34 +00:00
2013-02-14 16:13:29 +00:00
2012-01-18 22:05:02 +00:00
2010-08-25 11:41:17 +01:00
2012-03-13 08:23:56 +00:00
2011-11-08 14:43:07 +00:00
2011-11-08 14:43:07 +00:00
2011-11-08 14:43:07 +00:00
2011-11-08 14:43:07 +00:00