Gentoo Archives: gentoo-announce

From: "Joshua J. Berry" <condordes@g.o>
To: gentoo-announce@l.g.o
Cc: bugtraq@×××××××××××××.com, full-disclosure@××××××××××××.com, security-alerts@×××××××××××××.com
Subject: [gentoo-announce] [ GLSA 200407-01 ] Esearch: Insecure temp file handling
Date: Thu, 01 Jul 2004 18:03:38
Message-Id: 20040701180146.GC1840@deneb.condordes.net
1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2 Gentoo Linux Security Advisory GLSA 200407-01
3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
4 http://security.gentoo.org/
5 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
6
7 Severity: Normal
8 Title: Esearch: Insecure temp file handling
9 Date: July 01, 2004
10 Bugs: #55424
11 ID: 200407-01
12
13 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
14
15 Synopsis
16 ========
17
18 The eupdatedb utility in esearch creates a file in /tmp without first
19 checking for symlinks. This makes it possible for any user to create
20 arbitrary files.
21
22 Background
23 ==========
24
25 Esearch is a replacement for the Portage command "emerge search". It
26 uses an index to speed up searching of the Portage tree.
27
28 Affected packages
29 =================
30
31 -------------------------------------------------------------------
32 Package / Vulnerable / Unaffected
33 -------------------------------------------------------------------
34 1 app-portage/esearch <= 0.6.1 >= 0.6.2
35
36 Description
37 ===========
38
39 The eupdatedb utility uses a temporary file (/tmp/esearchdb.py.tmp) to
40 indicate that the eupdatedb process is running. When run, eupdatedb
41 checks to see if this file exists, but it does not check to see if it
42 is a broken symlink. In the event that the file is a broken symlink,
43 the script will create the file pointed to by the symlink, instead of
44 printing an error and exiting.
45
46 Impact
47 ======
48
49 An attacker could create a symlink from /tmp/esearchdb.py.tmp to a
50 nonexistent file (such as /etc/nologin), and the file will be created
51 the next time esearchdb is run.
52
53 Workaround
54 ==========
55
56 There is no known workaround at this time. All users should upgrade to
57 the latest available version of esearch.
58
59 Resolution
60 ==========
61
62 All users should upgrade to the latest available version of esearch, as
63 follows:
64
65 # emerge sync
66
67 # emerge -pv ">=app-portage/esearch-0.6.2"
68 # emerge ">=app-portage/esearch-0.6.2"
69
70 Availability
71 ============
72
73 This GLSA and any updates to it are available for viewing at
74 the Gentoo Security Website:
75
76 http://security.gentoo.org/glsa/glsa-200407-01.xml
77
78 Concerns?
79 =========
80
81 Security is a primary focus of Gentoo Linux and ensuring the
82 confidentiality and security of our users machines is of utmost
83 importance to us. Any security concerns should be addressed to
84 security@g.o or alternatively, you may file a bug at
85 http://bugs.gentoo.org.
86
87 License
88 =======
89
90 Copyright 2004 Gentoo Technologies, Inc; referenced text
91 belongs to its owner(s).
92
93 The contents of this document are licensed under the
94 Creative Commons - Attribution / Share Alike license.
95
96 http://creativecommons.org/licenses/by-sa/1.0