Merge branch 'patch-8' of https://github.com/gjones2/Freeside (#13854 as this bug...
[freeside.git] / rt / docs / security.pod
1 =head1 RT Security
2
3 =head2 Reporting security vulnerabilities in RT
4
5 If you believe you've discovered a security issue in RT, please send an
6 email to <security@bestpractical.com> with a detailed description of the
7 issue, and a secure means to respond to you (such as your PGP public
8 key).
9
10 More information is available at L<http://bestpractical.com/security/>.
11
12
13 =head2 RT's security process
14
15 After a security vulnerability is reported to Best Practical and
16 verified, we attempt to resolve it in as timely a fashion as possible.
17 Best Practical support customers will be notified before we disclose the
18 information to the public.  All security announcements will be sent to
19 C<rt-announce@bestpractical.com>, which includes
20 C<rt-users@bestpractical.com> and C<rt-devel@bestpractical.com>.
21
22 As the tests for security vulnerabilities are often nearly identical to
23 working exploits, sensitive tests will be embargoed for a period of six
24 months before being added to the public RT repository.
25
26
27 =head2 Security tips for running RT
28
29 =over
30
31 =item *
32
33 Protect your RT installation by making it only accessible via SSL.  This
34 will protect against users' passwords being sniffed as they go over the
35 wire, as well as helping prevent phishing attacks.  If you use SSL, you
36 will need to install some additional Perl libraries so that C<rt-mailgate>
37 can connect.  You can use the C<--enable-ssl-mailgate> command to
38 configure to automate the installation of these dependencies.  This is
39 documented further in step 10 of the README.
40
41 You should use a certificate signed by a reputable authority, or at very
42 least a certificate signed by a consistent local CA, which you configure
43 your local systems to trust.  If your SSL certificate is self-signed, it
44 does little to prevent phishing, as users are trained to accept the
45 unauthorized certificate.  See also the C<--no-verify-ssl> flag to
46 C<rt-mailgate>.
47
48 =item *
49
50 Be sure to change the password for the C<root> user of RT.  The default
51 password is C<password>.  This can be changed via the RT web interface
52 at: Preferences > About me
53
54
55 =item *
56
57 Be sure to protect your F<RT_SiteConfig.pm> file if it contains database
58 credentials or other sensitive information.  This file only needs to be
59 readable by RT and your web server.  One way to accomplish this is to
60 make the file readable only by root and the group that RT runs as, and
61 then make sure your web server is a member of that group.  Advanced
62 configuration may be required if other users have the ability to run
63 CGIs or access the server where RT is running.
64
65
66 =item *
67
68 Be sure to protect your database.  If it does not need to talk to the
69 world, then don't allow it to listen for remote connections.  With MySQL
70 this can be accomplished via C<skip-networking>.  If you use your
71 database for other things and must allow remote connections, be sure to
72 use a strong, hard to guess password for RT.
73
74
75 =item *
76
77 Apache, lighttpd, and most other web servers support name based virtual
78 hosts.  When possible, configure RT as a name based virtual host to
79 raise the bar against DNS rebinding attacks.  If you see RT when you
80 visit http://your.servers.ipaddress.here, it means you are likely not
81 getting this additional protection.
82
83
84 =item *
85
86 Use groups to organize RT permissions.  Granting permissions per-user
87 makes them, in general, more easily over-granted and forgotten, and more
88 likely to diverge from each other, forming a maintenance hassle.
89
90 =back
91
92 =cut