Bug 1135624 (CVE-2014-5509) - CVE-2014-5509 perl-Clipboard: insecure temporary file usage
Summary: CVE-2014-5509 perl-Clipboard: insecure temporary file usage
Status: CLOSED UPSTREAM
Alias: CVE-2014-5509
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard: impact=low,public=20140829,reported=2...
Keywords: Security
Depends On: 1135626 1135625
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-08-29 19:53 UTC by Vincent Danen
Modified: 2019-06-08 20:09 UTC (History)
4 users (show)

(edit)
Clone Of:
(edit)
Last Closed: 2019-06-08 02:34:43 UTC


Attachments (Terms of Use)

Description Vincent Danen 2014-08-29 19:53:05 UTC
It was reported [1],[2] that the clipedit program as shipped with perl-Clipboard uses temporary files insecurely (based on the PID of the running program).  Using symlink attacks, an attacker could cause the deletion of arbitrary files that the user running clipedit has write access to.

 [...]
  7 my $tmpfilename = "/tmp/clipedit$$";  
  8 open my $tmpfile, ">$tmpfilename" or die "Failure to open $tmpfilename: $!";  
  9 print $tmpfile $orig;  
 10 close $tmpfile;
 [...]
 13 system($ed, $tmpfilename);  
 14   
 15 open $tmpfile, $tmpfilename or die "Failure to open $tmpfilename: $!";
 16 my $edited = join '', <$tmpfile>;
 [...]
 49 unlink($tmpfilename) or die "Couldn't remove $tmpfilename: $!";



[1] http://seclists.org/oss-sec/2014/q3/467
[2] https://rt.cpan.org/Public/Bug/Display.html?id=98435

Comment 1 Vincent Danen 2014-08-29 19:53:33 UTC
Created perl-Clipboard tracking bugs for this issue:

Affects: fedora-all [bug 1135625]
Affects: epel-7 [bug 1135626]

Comment 2 Murray McAllister 2014-09-01 03:15:46 UTC
MITRE assigned CVE-2014-5509 to this issue:

http://seclists.org/oss-sec/2014/q3/470

Comment 3 Product Security DevOps Team 2019-06-08 02:34:43 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.


Note You need to log in before you can comment on or make changes to this bug.