Insecure temporary file creation in strace option

Bug #782862 reported by Emanuel Bronshtein
268
This bug affects 3 people
Affects Status Importance Assigned to Milestone
f-spot (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: f-spot

strace option inside /usr/bin/f-spot create temporary file with fixed name "f-spot.strace" under /tmp .

test case :
emanuel@emanuel-desktop:/tmp$ f-spot --strace
emanuel@emanuel-desktop:/tmp$ ls f-spot*
f-spot.strace

the bug can be found at :
elif $run_strace; then
 strace -ttt -f -o /tmp/f-spot.strace mono $MONO_OPTIONS $EXE_TO_RUN "$@"

fix :
use mktemp instead : `mktemp "/tmp/f-spot.strace.XXXXXX"`

David (d--)
Changed in f-spot (Ubuntu):
status: New → Confirmed
security vulnerability: no → yes
B Bobo (yout-bobo123)
tags: added: f-spot security vulnerability
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.