Bug 481703 (CVE-2008-5704)

Summary: CVE-2008-5704 gpsdrive: insecure temporary file use in unit_test.c
Product: [Other] Security Response Reporter: Tomas Hoger <thoger>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED NOTABUG QA Contact:
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: kevin, osoukup
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
URL: http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-5704
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-02-03 09:31:14 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Tomas Hoger 2009-01-27 08:46:51 UTC
Common Vulnerabilities and Exposures assigned an identifier CVE-2008-5704 to the following vulnerability:

src/unit_test.c in gpsdrive (aka gpsdrive-scripts) 2.10~pre4 might allow local
users to overwrite arbitrary files via a symlink attack on the
/tmp/gpsdrive-unit-test/proc temporary file, a different vector than
CVE-2008-4959 and CVE-2008-5380.

References:
http://openwall.com/lists/oss-security/2008/12/17/15
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=508597

Comment 1 Tomas Hoger 2009-01-27 08:49:47 UTC
Modified upstream to create temporary directory using mkdtemp:
http://gpsdrive.svn.sourceforge.net/viewvc/gpsdrive?view=rev&revision=2236

Comment 2 Kevin Fenzi 2009-02-03 03:52:04 UTC
We don't ship the 2.10* versions anywhere yet. ;) 
We only have 2.09. 

So, I assume we can just close this one?

Comment 3 Tomas Hoger 2009-02-03 09:31:14 UTC
(In reply to comment #2)
> We don't ship the 2.10* versions anywhere yet. ;) 
> We only have 2.09.

Sigh, my bad.  I must have failed to check this against current Fedora pakcages.  This really seem to have been added post-2.09 (wow, last changelog message in 2.09 is from 2004, so the file is not included, even though it's in SVN for more than 3 years now).

> So, I assume we can just close this one?

Sure.

Comment 4 Ondrej Soukup 2019-01-18 08:51:09 UTC
reverting accidental whiteboard change