Gentoo Archives: gentoo-announce

From: Luke Macken <lewk@g.o>
To: gentoo-announce@l.g.o
Cc: bugtraq@×××××××××××××.com, full-disclosure@××××××××××××.com, security-alerts@×××××××××××××.com
Subject: [gentoo-announce] [ GLSA 200412-05 ] mirrorselect: Insecure temporary file creation
Date: Tue, 07 Dec 2004 12:37:12
Message-Id: 20041207123456.GA28383@tomservo.ne1.client2.attbi.com
1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2 Gentoo Linux Security Advisory GLSA 200412-05:02
3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
4 http://security.gentoo.org/
5 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
6
7 Severity: Normal
8 Title: mirrorselect: Insecure temporary file creation
9 Date: December 07, 2004
10 Updated: December 07, 2004
11 Bugs: #73545
12 ID: 200412-05:02
13
14 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
15
16 Synopsis
17 ========
18
19 mirrorselect is vulnerable to symlink attacks, potentially allowing a
20 local user to overwrite arbitrary files.
21
22 Background
23 ==========
24
25 mirrorselect is a tool to help select distfiles mirrors for Gentoo.
26
27 Affected packages
28 =================
29
30 -------------------------------------------------------------------
31 Package / Vulnerable / Unaffected
32 -------------------------------------------------------------------
33 1 app-portage/mirrorselect < 0.89 >= 0.89
34
35 Description
36 ===========
37
38 Ervin Nemeth discovered that mirrorselect creates temporary files in
39 world-writable directories with predictable names.
40
41 Impact
42 ======
43
44 A local attacker could create symbolic links in the temporary files
45 directory, pointing to a valid file somewhere on the filesystem. When
46 mirrorselect is executed, this would result in the file being
47 overwritten with the rights of the user running the utility, which
48 could be the root user.
49
50 Workaround
51 ==========
52
53 There is no known workaround at this time.
54
55 Resolution
56 ==========
57
58 All mirrorselect users should upgrade to the latest version:
59
60 # emerge --sync
61 # emerge --ask --oneshot --verbose ">=app-portage/mirrorselect-0.89"
62
63 Availability
64 ============
65
66 This GLSA and any updates to it are available for viewing at
67 the Gentoo Security Website:
68
69 http://security.gentoo.org/glsa/glsa-200412-05.xml
70
71 Concerns?
72 =========
73
74 Security is a primary focus of Gentoo Linux and ensuring the
75 confidentiality and security of our users machines is of utmost
76 importance to us. Any security concerns should be addressed to
77 security@g.o or alternatively, you may file a bug at
78 http://bugs.gentoo.org.
79
80 License
81 =======
82
83 Copyright 2004 Gentoo Foundation, Inc; referenced text
84 belongs to its owner(s).
85
86 The contents of this document are licensed under the
87 Creative Commons - Attribution / Share Alike license.
88
89 http://creativecommons.org/licenses/by-sa/2.0