]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 287436: [SECURITY] After having logged in, links to change the report type contai...
authormkanat%kerio.com <>
Thu, 12 May 2005 08:52:13 +0000 (08:52 +0000)
committermkanat%kerio.com <>
Thu, 12 May 2005 08:52:13 +0000 (08:52 +0000)
Patch By Marc Schumann <wurblzap@gmail.com> r=gerv, a=justdave

Bugzilla/Auth/Login/WWW/CGI.pm
chart.cgi
userprefs.cgi

index d99cd3b804d719d47cf37f30105cc8e1bed72acb..98fd3a6d3beaecb64008738e17d7a8758833c14f 100644 (file)
@@ -50,6 +50,8 @@ sub login {
     # First, try the actual login method against form variables
     my $username = $cgi->param("Bugzilla_login");
     my $passwd = $cgi->param("Bugzilla_password");
+    
+    $cgi->delete('Bugzilla_login', 'Bugzilla_password');
 
     my $authmethod = Param("user_verify_class");
     my ($authres, $userid, $extra, $info) =
index 321c867fef1087dfc508f6b45c3490abe452b1df..bc25d52e919c0738a2b183f4696961939e3a1a3f 100755 (executable)
--- a/chart.cgi
+++ b/chart.cgi
@@ -286,8 +286,7 @@ sub wrap {
     $vars->{'time'} = time();
 
     $vars->{'imagebase'} = $cgi->canonicalise_query(
-                "action", "action-wrap", "ctype", "format", "width", "height",
-                "Bugzilla_login", "Bugzilla_password");
+                "action", "action-wrap", "ctype", "format", "width", "height");
 
     print $cgi->header();
     $template->process("reports/chart.html.tmpl", $vars)
index 9c2135eb3726b65ffde6d4dc4693a2064b54b7b1..1cf15868b25fe9d934b869476fe06a2adc4840c9 100755 (executable)
@@ -388,12 +388,19 @@ sub SaveSavedSearches() {
 # Live code (not subroutine definitions) starts here
 ###############################################################################
 
+my $cgi = Bugzilla->cgi;
+
+# This script needs direct access to the username and password CGI variables,
+# so we save them before their removal in Bugzilla->login
+my $bugzilla_login    = $cgi->param('Bugzilla_login');
+my $bugzilla_password = $cgi->param('Bugzilla_password');
+
 Bugzilla->login(LOGIN_REQUIRED);
+$cgi->param('Bugzilla_login', $bugzilla_login);
+$cgi->param('Bugzilla_password', $bugzilla_password);
 
 GetVersionTable();
 
-my $cgi = Bugzilla->cgi;
-
 $vars->{'changes_saved'} = $cgi->param('dosave');
 
 my $current_tab_name = $cgi->param('tab') || "account";