From e4edf63572cb584f9cccbd5b71441466accbd3d3 Mon Sep 17 00:00:00 2001
From: "jake%bugzilla.org" <>
Date: Fri, 4 Apr 2008 11:46:24 +0000
Subject: Bug 191537 - Improvements to the security section.
---
docs/en/xml/installation.xml | 250 ++-----------------------------------------
1 file changed, 6 insertions(+), 244 deletions(-)
(limited to 'docs/en/xml/installation.xml')
diff --git a/docs/en/xml/installation.xml b/docs/en/xml/installation.xml
index 286706126..da32ad5f9 100644
--- a/docs/en/xml/installation.xml
+++ b/docs/en/xml/installation.xml
@@ -763,152 +763,6 @@ perl -pi -e 's@#\!/usr/bonsaitools/bin/perl@#\!/usr/bin/perl@' *cgi *pl Bug.pm s
-
- Securing MySQL
-
- If you followed the installation instructions for setting up your
- "bugs" and "root" user in MySQL, much of this should not apply to you.
- If you are upgrading an existing installation of Bugzilla, you should
- pay close attention to this section.
-
- Most MySQL installs have "interesting" default security
- parameters:
-
- mysqld defaults to running as root
-
- it defaults to allowing external network connections
-
- it has a known port number, and is easy to detect
-
- it defaults to no passwords whatsoever
-
- it defaults to allowing "File_Priv"
-
-
-
- This means anyone from anywhere on the Internet can not only drop
- the database with one SQL command, and they can write as root to the
- system.
-
- To see your permissions do:
-
-
-
- bash#
-
- mysql -u root -p
-
-
-
-
-
- mysql>
-
- use mysql;
-
-
-
-
-
- mysql>
-
- show tables;
-
-
-
-
-
- mysql>
-
- select * from user;
-
-
-
-
-
- mysql>
-
- select * from db;
-
-
-
-
-
- To fix the gaping holes:
-
- DELETE FROM user WHERE User='';
-
- UPDATE user SET Password=PASSWORD('new_password') WHERE
- user='root';
-
- FLUSH PRIVILEGES;
-
-
-
- If you're not running "mit-pthreads" you can use:
-
- GRANT USAGE ON *.* TO bugs@localhost;
-
- GRANT ALL ON bugs.* TO bugs@localhost;
-
- REVOKE DROP ON bugs.* FROM bugs@localhost;
-
- FLUSH PRIVILEGES;
-
-
-
- With "mit-pthreads" you'll need to modify the "globals.pl"
- Mysql->Connect line to specify a specific host name instead of
- "localhost", and accept external connections:
-
- GRANT USAGE ON *.* TO bugs@bounce.hop.com;
-
- GRANT ALL ON bugs.* TO bugs@bounce.hop.com;
-
- REVOKE DROP ON bugs.* FROM bugs@bounce.hop.com;
-
- FLUSH PRIVILEGES;
-
-
-
- Consider also:
-
-
- Turning off external networking with "--skip-networking",
- unless you have "mit-pthreads", in which case you can't. Without
- networking, MySQL connects with a Unix domain socket.
-
-
-
- using the --user= option to mysqld to run it as an
- unprivileged user.
-
-
-
- running MySQL in a chroot jail
-
-
-
- running the httpd in a chroot jail
-
-
-
- making sure the MySQL passwords are different from the OS
- passwords (MySQL "root" has nothing to do with system
- "root").
-
-
-
- running MySQL on a separate untrusted machine
-
-
-
- making backups ;-)
-
-
-
-
-
Configuring Bugzilla
@@ -1160,85 +1014,6 @@ bash# perl -pi -e "s/Content-Type\: text\/html/Content-Type\: text\/html\; chars
-
-
- .htaccess
- files and security
-
- To enhance the security of your Bugzilla installation, Bugzilla's
- checksetup.pl script will generate
-
- .htaccess
-
-
- files which the Apache webserver can use to restrict access to the
- bugzilla data files.
- These .htaccess files will not work with Apache 1.2.x - but this
- has security holes, so you shouldn't be using it anyway.
-
- If you are using an alternate provider of
- webdot
-
- services for graphing (as described when viewing
- editparams.cgi
-
- in your web browser), you will need to change the ip address in
- data/webdot/.htaccess
-
- to the ip address of the webdot server that you are using.
-
-
-
- The default .htaccess file may not provide adequate access
- restrictions, depending on your web server configuration. Be sure to
- check the <Directory> entries for your Bugzilla directory so that
- the
- .htaccess
-
- file is allowed to override web server defaults. For instance, let's
- assume your installation of Bugzilla is installed to
- /usr/local/bugzilla
-
- . You should have this <Directory> entry in your
- httpd.conf
-
- file:
-
-
-
-
- Options +FollowSymLinks +Indexes +Includes +ExecCGI
- AllowOverride All
-
-]]>
-
-
-
- The important part above is
- AllowOverride All
-
- . Without that, the
- .htaccess
-
- file created by
- checksetup.pl
-
- will not have sufficient permissions to protect your Bugzilla
- installation.
-
- If you are using Internet Information Server (IIS) or another
- web server which does not observe
- .htaccess
- conventions, you can disable their creation by editing
- localconfig
- and setting the
- $create_htaccess
- variable to
- 0.
-
-
-
@@ -1358,11 +1133,11 @@ C:\perl> ppm <module name>
-
+
A complete list of modules that can be installed using ppm can
be found at http://www.activestate.com/PPMPackages/5.6plus.
-
+
@@ -1400,19 +1175,6 @@ my $webservergid = '8'
-
- Making mail work
-
- The easiest way to get mail working is to use the mail patches
- on bug
- 124174. With any luck, this patch will receive the required
- reviews and integrated into the main Bugzilla distribution very soon.
- Until that happens, there's at least one report of this patch working
- well on Windows.
-
-
-
-
System Calls
@@ -1459,7 +1221,7 @@ system("C:\\perl\\bin\\perl", "$webdotbase","-Tpng","-o","$pngfilename","$filena
As is the case on Unix based systems, any web server should be
able to handle Bugzilla; however, the Bugzilla Team still recommends
Apache whenever asked. No matter what web server you choose, be sure
- to pay attention to the security notes in .
+ to pay attention to the security notes in .
More information on configuring specific web servers can be found in
.
@@ -1480,7 +1242,7 @@ system("C:\\perl\\bin\\perl", "$webdotbase","-Tpng","-o","$pngfilename","$filena
Mac OS X
-
+
There are a lot of common libraries and utilities out there that
Apple did not include with Mac OS X, but which run perfectly well on it.
The GD library, which Bugzilla needs to do bug graphs, is one of
@@ -1559,7 +1321,7 @@ system("C:\\perl\\bin\\perl", "$webdotbase","-Tpng","-o","$pngfilename","$filena
that can be configured to run CGI scripts
should be able to handle Bugzilla. No matter what web server you choose, but
especially if you choose something other than Apache, you should be sure to read
- .
+ .
The plan for this section is to eventually document the specifics of how to lock
@@ -1696,7 +1458,7 @@ deny from all
Also, and this can't be stressed enough, make sure that files such as
localconfig and your data
- directory are secured as described in .
+ directory are secured as described in .
--
cgit v1.2.3-24-g4f1b