diff options
author | Gervase Markham <gerv@mozilla.org> | 2015-01-21 20:06:08 +0000 |
---|---|---|
committer | David Lawrence <dkl@mozilla.com> | 2015-01-21 20:06:08 +0000 |
commit | 19117cc3e4da268d64107957e4c206d8df875505 (patch) | |
tree | 81546dbda0b66c7463407c3854ee98689326dc15 /search_plugin.cgi | |
parent | 272b0b69b2884d937ffd4b5b01fb89235603c67c (diff) | |
download | bugs-19117cc3e4da268d64107957e4c206d8df875505.tar bugs-19117cc3e4da268d64107957e4c206d8df875505.tar.gz bugs-19117cc3e4da268d64107957e4c206d8df875505.tar.bz2 bugs-19117cc3e4da268d64107957e4c206d8df875505.tar.xz bugs-19117cc3e4da268d64107957e4c206d8df875505.zip |
Bug 1079065: [SECURITY] Always use the 3 arguments form for open() to prevent shell code injection
r=dkl,a=glob
Diffstat (limited to 'search_plugin.cgi')
-rwxr-xr-x | search_plugin.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/search_plugin.cgi b/search_plugin.cgi index 7de8bed5f..0b628f32e 100755 --- a/search_plugin.cgi +++ b/search_plugin.cgi @@ -27,7 +27,7 @@ print $cgi->header('application/xml'); # Get the contents of favicon.ico my $filename = bz_locations()->{'libpath'} . "/images/favicon.ico"; -if (open(IN, $filename)) { +if (open(IN, '<', $filename)) { local $/; binmode IN; $vars->{'favicon'} = <IN>; |