mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-09 10:35:53 +02:00
calamaris.dat: Fixes bug 13886
commit 7dca07fdcf018320bc10eb4d5fcd019dd1a7029a Author: Adolf Belka <adolf.belka@ipfire.org> Date: Thu Sep 25 13:12:46 2025 +0200 calamaris.dat: Fixes bug 13886 Fixes: bug 13886 - calamaris.dat Multiple Parameters Command Injection Signed-off-by: Adolf Belka <adolf.belka@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org> Signed-off-by: Vincent Li <vincent.mc.li@gmail.com>
This commit is contained in:
@@ -170,6 +170,10 @@ if ($reportsettings{'ACTION'} eq $Lang::tr{'calamaris create report'})
|
||||
|
||||
if ($reportsettings{'RUN_BACKGROUND'} eq 'on') { $commandline.=" &"; }
|
||||
|
||||
if (!($commandline =~ /^[a-zA-Z0-9-\s]+$/))
|
||||
{
|
||||
die "Invalid input in\"$commandline\"";
|
||||
}
|
||||
system("${General::swroot}/proxy/calamaris/bin/mkreport $commandline")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user