Version 2.18.6
--------------
-The Bugzilla team fixed three security flaws that existed in
+The Bugzilla team fixed four security flaws that existed in
versions of Bugzilla prior to this one. They were cross-site
-scripting and information leak flaws. None of them were of
-critical severity, though we still strongly recommend that you
-update any 2.18.x installation to at least 2.18.6, to be safe.
+scripting and information leak flaws. We strongly recommend that you
+update any 2.18.x installation to at least 2.18.6, to be safe.
+
You can see details at:
http://www.bugzilla.org/security/2.18.5/
}
}
-$vars->{'bug_id'} = $cgi->param('id');
+# Make sure we only include valid integers (protects us from XSS attacks).
+my @bugs = grep(detaint_natural($_), split(/[\s,]+/, $cgi->param('id')));
+$vars->{'bug_id'} = join(', ', @bugs);
$vars->{'multiple_bugs'} = ($cgi->param('id') =~ /[ ,]/);
$vars->{'doall'} = $cgi->param('doall');
$vars->{'rankdir'} = $rankdir;