Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
43ff85bc
Commit
43ff85bc
authored
Apr 04, 2008
by
jake%bugzilla.org
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct some minor typos in the security chapter.
parent
0b1945b0
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
67 additions
and
45 deletions
+67
-45
security.xml
docs/en/xml/security.xml
+67
-45
No files found.
docs/en/xml/security.xml
View file @
43ff85bc
<!-- <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"> -->
<!-- <!DOCTYPE chapter PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"> -->
<!-- $Id: security.xml,v 1.
16 2008/04/04 06:48:23 lpsolit%gmail.com
Exp $ -->
<!-- $Id: security.xml,v 1.
2 2008/04/04 06:48:09 jake%bugzilla.org
Exp $ -->
<chapter
id=
"security"
>
<chapter
id=
"security"
>
<title>
Bugzilla Security
</title>
<title>
Bugzilla Security
</title>
...
@@ -49,8 +49,8 @@
...
@@ -49,8 +49,8 @@
<quote>
SYSTEM
</quote>
introduces obvious security concerns, the
<quote>
SYSTEM
</quote>
introduces obvious security concerns, the
problems introduced by running everything as
<quote>
nobody
</quote>
may
problems introduced by running everything as
<quote>
nobody
</quote>
may
not be so obvious. Basically, if you run every daemon as
not be so obvious. Basically, if you run every daemon as
<quote>
nobody
</quote>
and one of them gets compr
o
mised it can
<quote>
nobody
</quote>
and one of them gets compr
i
mised it can
compr
o
mise every other daemon running as
<quote>
nobody
</quote>
on your
compr
i
mise every other daemon running as
<quote>
nobody
</quote>
on your
machine. For this reason, it is recommended that you create a user
machine. For this reason, it is recommended that you create a user
account for each daemon.
account for each daemon.
</para>
</para>
...
@@ -68,13 +68,12 @@
...
@@ -68,13 +68,12 @@
<section
id=
"security-os-chroot"
>
<section
id=
"security-os-chroot"
>
<title>
The
<filename>
chroot
</filename>
Jail
</title>
<title>
The
<filename>
chroot
</filename>
Jail
</title>
<para>
<para>
If your system supports it, you may wish to consider running
If your system supports it, you may wish to consider running
Bugzilla inside of a
<filename>
chroot
</filename>
jail. This option
Bugzilla inside of a
<filename>
chroot
</filename>
jail. This option
provides unpresidented security by restricting anything running
provides unprecedented security by restricting anything running
inside the jail from accessing any information outside of it. If you
inside the jail from accessing any information outside of it. If you
wish to use this option, please consult the documentation that came
wish to use this option, please consult the documentation that came
with your system.
with your system.
</para>
</para>
</section>
</section>
...
@@ -90,7 +89,7 @@
...
@@ -90,7 +89,7 @@
<title>
The MySQL System Account
</title>
<title>
The MySQL System Account
</title>
<para>
As mentioned in
<xref
linkend=
"security-os-accounts"
/>
, the MySQL
<para>
As mentioned in
<xref
linkend=
"security-os-accounts"
/>
, the MySQL
daemon should run as a non-priv
i
leged, unique user. Be sure to consult
daemon should run as a non-privleged, unique user. Be sure to consult
the MySQL documentation or the documentation that came with your system
the MySQL documentation or the documentation that came with your system
for instructions.
for instructions.
</para>
</para>
...
@@ -141,21 +140,28 @@
...
@@ -141,21 +140,28 @@
have no other reason to access MySQL remotely, then you should disable
have no other reason to access MySQL remotely, then you should disable
the network access. This, along with the suggestion in
the network access. This, along with the suggestion in
<xref
linkend=
"security-os-ports"
/>
, will help protect your system from
<xref
linkend=
"security-os-ports"
/>
, will help protect your system from
any remote vulnerabilities in MySQL.
any remote vulnerabilites in MySQL. This is done using different
methods in MySQL versions 3 and 4.
</para>
</para>
<example
id=
"security-mysql-network-ex"
>
<example>
<title>
Disabling Networking in MySQL
</title>
<title>
Disabling Networking in MySQL
3.x
</title>
<para>
Simply enter the following in
<filename>
/etc/my.cnf
</filename>
:
<para>
Simply enter the following in
<filename>
/etc/my.c
o
nf
</filename>
:
<screen>
<screen>
[mys
ql
d]
[mys
lq
d]
# Prevent network access to MySQL.
# Prevent network access to MySQL.
skip-networking
skip-networking
</screen>
</screen>
</para>
</para>
</example>
</example>
<example>
<title>
Disabling Networking in MySQL 4.x
</title>
<para>
There's a bug in Bugzilla about this
</para>
</example>
</section>
</section>
...
@@ -171,19 +177,20 @@ skip-networking
...
@@ -171,19 +177,20 @@ skip-networking
<section
id=
"security-webserver"
>
<section
id=
"security-webserver"
>
<title>
Web
server
</title>
<title>
Webserver
</title>
<section
id=
"security-webserver-access"
>
<section
id=
"security-webserver-access"
>
<title>
Disabling Remote Access to Bugzilla Configuration Files
</title>
<title>
Disabling Remote Access to Bugzilla Configuration Files
</title>
<para>
<para>
There are many files that are placed in the Bugzilla directory
There are many files that are placed in the Bugzilla directory
area that should not be accessable from the web. Because of the way
area that should not be accessible from the web. Because of the way
Bugzilla is currently layed out, the list of what should and should not
Bugzilla is currently layed out, the list of what should and should not
be accessible is rather complicated. A new installation method is
be accessible is rather complicated. A quick way is to run
currently in the works which should solve this by allowing files that
<filename>
testserver.pl
</filename>
to check if your web server serves
shouldn't be accessible from the web to be placed in a directory outside
Bugzilla files as expected. If not, you may want to follow the few
the webroot. See
steps below.
<ulink
url=
"http://bugzilla.mozilla.org/show_bug.cgi?id=44659"
>
bug 44659
</ulink>
for more information.
</para>
</para>
<tip>
<tip>
...
@@ -203,6 +210,15 @@ skip-networking
...
@@ -203,6 +210,15 @@ skip-networking
<simplelist
type=
"inline"
>
<simplelist
type=
"inline"
>
<member><filename>
*.pl
</filename></member>
<member><filename>
*.pl
</filename></member>
<member><filename>
*localconfig*
</filename></member>
<member><filename>
*localconfig*
</filename></member>
<member><filename>
runtests.sh
</filename></member>
</simplelist>
</para>
</listitem>
<listitem>
<para>
But allow:
<simplelist
type=
"inline"
>
<member><filename>
localconfig.js
</filename></member>
<member><filename>
localconfig.rdf
</filename></member>
</simplelist>
</simplelist>
</para>
</para>
</listitem>
</listitem>
...
@@ -292,19 +308,23 @@ skip-networking
...
@@ -292,19 +308,23 @@ skip-networking
</itemizedlist>
</itemizedlist>
<para>
Be sure to test that data that should not be accessed remotely is
<para>
Be sure to test that data that should not be accessed remotely is
properly blocked. Of particular int
e
rest is the localconfig file which
properly blocked. Of particular intrest is the localconfig file which
contains your database password. Also, be aware that many editors
contains your database password. Also, be aware that many editors
create temporary and backup files in the working directory and that
create temporary and backup files in the working directory and that
those should also not be access
ible. For more information, see
those should also not be access
able. For more information, see
<ulink
url=
"http://bugzilla.mozilla.org/show_bug.cgi?id=186383"
>
bug 186383
</ulink>
<ulink
url=
"http://bugzilla.mozilla.org/show_bug.cgi?id=186383"
>
bug 186383
</ulink>
or
or
<ulink
url=
"http://online.securityfocus.com/bid/6501"
>
Bugtraq ID 6501
</ulink>
.
<ulink
url=
"http://online.securityfocus.com/bid/6501"
>
Bugtraq ID 6501
</ulink>
.
To test, simply run
<filename>
testserver.pl
</filename>
, as said above.
To test, simply point your web browser at the file; for example, to
test mozilla.org's installation, we'd try to access
<ulink
url=
"http://bugzilla.mozilla.org/localconfig"
/>
. You should get
a
<quote><errorcode>
403
</errorcode>
<errorname>
Forbidden
</errorname></quote>
error.
</para>
</para>
<tip>
<tip>
<para>
Be sure to check
<xref
linkend=
"http"
/>
for instructions
<para>
Be sure to check
<xref
linkend=
"http"
/>
for instructions
specific to the web
server you use.
specific to the webserver you use.
</para>
</para>
</tip>
</tip>
...
@@ -347,25 +367,27 @@ skip-networking
...
@@ -347,25 +367,27 @@ skip-networking
<section
id=
"security-bugzilla-charset"
>
<section
id=
"security-bugzilla-charset"
>
<title>
Prevent users injecting malicious Javascript
</title>
<title>
Prevent users injecting malicious Javascript
</title>
<para>
If you installed Bugzilla version 2.22 or later from scratch,
<para>
It is possible for a Bugzilla user to take advantage of character
then the
<emphasis>
utf8
</emphasis>
parameter is switched on by default.
set encoding ambiguities to inject HTML into Bugzilla comments. This
This makes Bugzilla explicitly set the character encoding, following
could include malicious scripts.
Due to internationalization concerns, we are unable to
incorporate by default the code changes suggested by
<ulink
<ulink
url=
"http://www.cert.org/tech_tips/malicious_code_mitigation.html#3"
>
a
url=
"http://www.cert.org/tech_tips/malicious_code_mitigation.html#3"
>
the
CERT advisory
</ulink>
recommending exactly this.
CERT advisory
</ulink>
on this issue.
The following therefore does not apply to you; just keep
If your installation is for an English speaking audience only, making the
<emphasis>
utf8
</emphasis>
turned on.
change in
<xref
linkend=
"security-bugzilla-charset-ex"
/>
will prevent
this problem.
</para>
</para>
<para>
If you've upgraded from an older version, then it may be possible
<example
id=
"security-bugzilla-charset-ex"
>
for a Bugzilla user to take advantage of character set encoding
<para>
Locate the following line in
ambiguities to inject HTML into Bugzilla comments.
<filename>
Bugzilla/CGI.pm
</filename>
:
This could include malicious scripts.
<programlisting>
$self->charset('');
</programlisting>
This is because due to internationalization concerns, we are unable to
and change it to:
turn the
<emphasis>
utf8
</emphasis>
parameter on by default for upgraded
<programlisting>
$self->charset('ISO-8859-1');
</programlisting>
installations.
</para>
Turning it on manually will prevent this problem.
</example>
</para>
</section>
</section>
</section>
</section>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment