From: Frédéric Buclin Date: Thu, 4 Aug 2011 20:13:15 +0000 (+0200) Subject: Bug 653477: (CVE-2011-2380) [SECURITY] Group names can be guessed when creating or... X-Git-Tag: bugzilla-3.6.6~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fdcd6dc09562344a30dde742f3d739c8ba03c65b;p=thirdparty%2Fbugzilla.git Bug 653477: (CVE-2011-2380) [SECURITY] Group names can be guessed when creating or editing a bug r=dkl a=LpSolit --- diff --git a/Bugzilla/Bug.pm b/Bugzilla/Bug.pm index 3cd5a38224..a9b52f45c8 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1403,7 +1403,7 @@ sub _check_groups { || ThrowUserError("invalid_group_ID"); # This can only happen if somebody hacked the enter_bug form. - ThrowCodeError("inactive_group", { name => $group->name }) + ThrowCodeError("inactive_group", { group_id => $id }) unless $group->is_active; my $membercontrol = $controls->{$id} diff --git a/template/en/default/global/code-error.html.tmpl b/template/en/default/global/code-error.html.tmpl index b09f71a350..e70f5b2a67 100644 --- a/template/en/default/global/code-error.html.tmpl +++ b/template/en/default/global/code-error.html.tmpl @@ -217,8 +217,8 @@ A legal [% field FILTER html %] was not set. [% ELSIF error == "inactive_group" %] - Attempted to add [% terms.bug %] to the '[% name FILTER html %]' - group, which is not used for [% terms.bugs %]. + Attempted to add [% terms.abug %] to group ID [% group_id FILTER html %], + which is not used for [% terms.bugs %]. [% ELSIF error == "invalid_attach_id_to_obsolete" %] The attachment number of one of the attachments you wanted to obsolete,