summaryrefslogtreecommitdiffstats
path: root/editusers.cgi
diff options
context:
space:
mode:
authorjouni%heikniemi.net <>2004-05-23 16:32:00 +0200
committerjouni%heikniemi.net <>2004-05-23 16:32:00 +0200
commite40fae0dfa8b41780fc927f260b6cd5f1a738ae4 (patch)
tree1c31fe1fbf62928b94b31c4930ef7848d5106135 /editusers.cgi
parent39e9e3e67ce70d2fa7fefe947a6592f2541ba6ef (diff)
downloadbugzilla-e40fae0dfa8b41780fc927f260b6cd5f1a738ae4.tar.gz
bugzilla-e40fae0dfa8b41780fc927f260b6cd5f1a738ae4.tar.xz
Bug 224021: taint issues in editusers.cgi
Patch by byron jones <bugzilla@glob.com.au> r=jouni, a=justdave
Diffstat (limited to 'editusers.cgi')
-rwxr-xr-xeditusers.cgi1
1 files changed, 1 insertions, 0 deletions
diff --git a/editusers.cgi b/editusers.cgi
index abe4b6194..f83a64984 100755
--- a/editusers.cgi
+++ b/editusers.cgi
@@ -323,6 +323,7 @@ if ($action eq 'list') {
$query = "SELECT login_name,realname,disabledtext " .
"FROM profiles WHERE " . $::FORM{'query'} . " ORDER BY login_name";
} elsif (exists $::FORM{'group'}) {
+ detaint_natural($::FORM{'group'});
$query = "SELECT DISTINCT login_name,realname,disabledtext " .
"FROM profiles, user_group_map WHERE profiles.userid = user_group_map.user_id
AND group_id=" . $::FORM{'group'} . " ORDER BY login_name";