Skip to content

Commit

Permalink
m/httpd: untaint $PATH
Browse files Browse the repository at this point in the history
  • Loading branch information
steveschnepp committed Jul 13, 2023
1 parent 0c057fa commit bd4f4a7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script/munin-httpd
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ use Munin::Master::Graph;
use Munin::Master::HTML;
use Munin::Common::Logger;

# Untaint $ENV{PATH}
$ENV{PATH} = "/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin";

sub handle_request {
my $self = shift;
Expand Down

0 comments on commit bd4f4a7

Please sign in to comment.