From: Frédéric Buclin Date: Thu, 4 Aug 2011 20:14:36 +0000 (+0200) Subject: Bug 653477: (CVE-2011-2380) [SECURITY] Group names can be guessed when creating or... X-Git-Tag: bugzilla-3.4.12~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=242b7d47246c870b2e3188a37e122d2bfab55f46;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 290bd0b69a..57094c955e 100644 --- a/Bugzilla/Bug.pm +++ b/Bugzilla/Bug.pm @@ -1371,7 +1371,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 4f5ba27f44..efb5de6f1d 100644 --- a/template/en/default/global/code-error.html.tmpl +++ b/template/en/default/global/code-error.html.tmpl @@ -175,8 +175,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,