Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
e53779c1
Commit
e53779c1
authored
Jun 11, 2003
by
Mac Newbold
Browse files
Taint check pid and eid args! Don't know how this didn't get noticed until now...
parent
b71908f3
Changes
1
Hide whitespace changes
Inline
Side-by-side
tbsetup/tbswap.in
View file @
e53779c1
...
...
@@ -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
();
#
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment