Fixes: #13886 - /cgi-bin/logs.cgi/calamaris.dat Multiple Parameters Command Injection
Reported-by: Wade Sparks <wsparks@vulncheck.com>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
$commandline.=' -s';
}
- $commandline.=' < /dev/null > /dev/null 2>&1';
-
- if ($reportsettings{'RUN_BACKGROUND'} eq 'on') { $commandline.=" &"; }
-
if (!($commandline =~ /^[a-zA-Z0-9-\s]+$/))
{
die "Invalid input in\"$commandline\"";
}
+
+ $commandline.=' < /dev/null > /dev/null 2>&1';
+
+ if ($reportsettings{'RUN_BACKGROUND'} eq 'on') { $commandline.=" &"; }
+
system("${General::swroot}/proxy/calamaris/bin/mkreport $commandline")
}