Commit e53779c1 authored by Mac Newbold's avatar Mac Newbold

Taint check pid and eid args! Don't know how this didn't get noticed until now...

parent b71908f3
......@@ -107,6 +107,22 @@ if ($#ARGV < 1) {
}
my ($pid,$eid) = @ARGV;
#
# Untaint the arguments.
#
if ($pid =~ /^([-\@\w.]+)$/) {
$pid = $1;
}
else {
die("Tainted argument $pid!\n");
}
if ($eid =~ /^([-\@\w.]+)$/) {
$eid = $1;
}
else {
die("Tainted argument $eid!\n");
}
TBDebugTimeStampsOn();
#
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment