Gource uses a predictable temporary filename

Bug #564373 reported by Andrew Caudwell
260
This bug affects 1 person
Affects Status Importance Assigned to Milestone
gource (Debian)
Fix Released
Unknown
gource (Ubuntu)
Fix Released
Medium
Unassigned

Bug Description

Binary package hint: gource

Gource uses a predictable temporary filename /tmp/gource-$UID.tmp (src/commitlog.cpp: createTempLog()), enabling a malicious co-user to overwrite an arbitrary file via a symlink attack.

Affects 0.23 in Lucid.

Originally report against 0.26 in Debian Squeeze:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=577958

I am preparing a security update patch.

visibility: private → public
Revision history for this message
Andrew Caudwell (acaudwell) wrote :

This patch changes createTempLog() in src/commitlog.cpp to create the temp file using mkstemp().

Changed in gource (Debian):
status: Unknown → Fix Released
Changed in gource (Ubuntu):
status: New → Confirmed
importance: Undecided → Medium
Revision history for this message
Marc Deslauriers (mdeslaur) wrote :

Thanks for the debdiff, Andrew!

ACK'd

I'll upload it today, and will publish it on monday.

Changed in gource (Ubuntu):
status: Confirmed → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package gource - 0.23-1ubuntu0.1

---------------
gource (0.23-1ubuntu0.1) lucid-security; urgency=high

  * SECURITY UPDATE: Gource uses a predictable temporary filename,
    enabling a malicious co-user to overwrite an arbitrary file via a
    symlink attack. (LP: #564373)
    - src/commitlog.cpp: changed createTempLog() to create the temp file
      using mkstemp().
 -- Andrew Caudwell <email address hidden> Fri, 16 Apr 2010 13:54:44 +1200

Changed in gource (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public Security information  
Everyone can see this security related information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.