-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Description
Created temporary file is world readable. It cause security issue.
$ perl6-m -e 'use File::Temp; my ($fname, $fh) = tempfile(); run "ls", "-l", $fname'
-rw-rw-r--. 1 tokuhirom tokuhirom 0 Oct 14 11:04 /tmp/v0lP7DvWlc
Perl5's code is readable by owner only.
$ perl -e 'use File::Temp qw/tempfile/; my ($fh, $fname) = tempfile(); system "ls", "-l", $fname'
-rw-------. 1 tokuhirom tokuhirom 0 Oct 14 11:05 /tmp/1qtbZFwofM
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels