Bug 675811

Summary: /tmp symlink vulnerability
Product: [Fedora] Fedora Reporter: Andrew Potter <agpotter>
Component: fehAssignee: Ignacio Vazquez-Abrams <ivazqueznet>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: ivazqueznet, vdanen
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-02-09 22:19:56 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 Andrew Potter 2011-02-07 20:39:23 UTC
Description of problem:
      tmpname_timestamper =
         estrjoin("", "/tmp/feh_", cppid, "_", basename, NULL);
...
            execlp("wget", "wget", "-N", "-O", tmpname_timestamper, newurl,
                   quiet, (char*) NULL);

If attacker knows PID of feh and knows the URL, it can create the link to any user file. wget would overwrite it.


https://bugs.launchpad.net/ubuntu/+source/feh/+bug/607328
https://github.com/derf/feh/issues/#issue/32

Comment 1 Vincent Danen 2011-02-09 22:19:56 UTC

*** This bug has been marked as a duplicate of bug 676389 ***