From: Byron Jones Date: Thu, 4 Aug 2011 20:48:15 +0000 (+0200) Subject: Bug 670868: (CVE-2011-2978) [SECURITY] Account preferences page trusts user-modifiabl... X-Git-Tag: bugzilla-3.6.6~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4d410b50865256aba5569fce1f98ce7fa0b72f9f;p=thirdparty%2Fbugzilla.git Bug 670868: (CVE-2011-2978) [SECURITY] Account preferences page trusts user-modifiable field for obtaining current e-mail address r/a=LpSolit --- diff --git a/userprefs.cgi b/userprefs.cgi index d844645da1..f8e84059f1 100755 --- a/userprefs.cgi +++ b/userprefs.cgi @@ -83,7 +83,7 @@ sub SaveAccount { my $pwd1 = $cgi->param('new_password1'); my $pwd2 = $cgi->param('new_password2'); - my $old_login_name = $cgi->param('old_login'); + my $old_login_name = $user->login; my $new_login_name = trim($cgi->param('new_login_name')); if ($user->authorizer->can_change_password