Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[ GLSA 200407-01 ] Esearch: Insecure temp file handling
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index News & Announcements
View previous topic :: View next topic  
Author Message
GLSA
Bodhisattva
Bodhisattva


Joined: 13 Jun 2003
Posts: 4087
Location: Dresden, Germany

PostPosted: Thu Jul 01, 2004 6:41 pm    Post subject: [ GLSA 200407-01 ] Esearch: Insecure temp file handling Reply with quote

Gentoo Linux Security Advisory

Title: Esearch: Insecure temp file handling (GLSA 200407-01)
Severity: normal
Exploitable: local
Date: July 01, 2004
Updated: May 22, 2006
Bug(s): #55424
ID: 200407-01

Synopsis


The eupdatedb utility in esearch creates a file in /tmp without first
checking for symlinks. This makes it possible for any user to create
arbitrary files.


Background


Esearch is a replacement for the Portage command "emerge search". It
uses an index to speed up searching of the Portage tree.


Affected Packages

Package: app-portage/esearch
Vulnerable: <= 0.6.1
Unaffected: >= 0.6.2
Architectures: All supported architectures


Description


The eupdatedb utility uses a temporary file (/tmp/esearchdb.py.tmp) to
indicate that the eupdatedb process is running. When run, eupdatedb
checks to see if this file exists, but it does not check to see if it
is a broken symlink. In the event that the file is a broken symlink,
the script will create the file pointed to by the symlink, instead of
printing an error and exiting.


Impact


An attacker could create a symlink from /tmp/esearchdb.py.tmp to a
nonexistent file (such as /etc/nologin), and the file will be created
the next time esearchdb is run.


Workaround


There is no known workaround at this time. All users should upgrade to
the latest available version of esearch.


Resolution


All users should upgrade to the latest available version of esearch, as
follows:
Code:
# emerge sync
   
    # emerge -pv ">=app-portage/esearch-0.6.2"
# emerge ">=app-portage/esearch-0.6.2"


References

CVE-2004-0655


Last edited by GLSA on Tue Jan 31, 2012 4:16 am; edited 4 times in total
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index News & Announcements All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum