If you manage servers, you need to make some system updates for better security.
In order to apply these changes that protect you on the SSL/TLS CBC vulnerability you must have root access on SSH sever.
1. We recommend that you make a backup copy of these files before making any changes:
for configFile in /var/cpanel/conf/pureftpd/main /var/cpanel/templates/apache2/main.local /var/cpanel/cpanel.config /usr/local/cpanel/etc/stunnel/default/stunnel.conf /etc/exim.conf.local /usr/lib/courier-imap/etc/imapd-ssl /usr/lib/courier-imap/etc/pop3d-ssl; do cp -frp $configFile{,.backup}; done
2. For Pure-FTP, edit the file
/var/cpanel/conf/pureftpd/main
Replace line:
TLSCipherSuite: ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM:!SSLv2
With:
TLSCipherSuite: "!aNULL:!eNULL:!EXPORT:!DSS:!DES:RC4-SHA:RC4-MD5"
Run the following command:
/usr/local/cpanel/whostmgr/bin/whostmgr2 doftpconfiguration && service pure-ftpd restart
You can test with the following command:
openssl s_client -connect localhost:21 -starttls ftp
3. For Apache, edit the /var/cpanel/templates/apache2/main.local file
Replace the lines:
[% IF supported.mod_ssl -%]
# SSLCipherSuite can be set in WHM under 'Apache Global Configuration'
[% IF main.sslciphersuite.item.sslciphersuite.length %]SSLCipherSuite [% main.sslciphersuite.item.sslciphersuite %][% END %]
SSLProtocol -ALL +SSLv3 +TLSv1
With:
[% IF supported.mod_ssl -%]
SSLProtocol -ALL -SSLv2 +SSLv3 +TLSv1
SSLHonorCipherOrder on
SSLCipherSuite !aNULL:!eNULL:!EXPORT:!DSS:!DES:RC4-SHA:RC4-MD5
Run commands to make active changes and restart Apache
/scripts/rebuildhttpdconf && service httpd stop && service httpd start
You can test using the following commands:
openssl s_client -connect example.com:443 -ssl3
openssl s_client -connect example.com:443 -tls1
4. For cPanel, edit the /var/cpanel/cpanel.config file
Replace the line nativessl line = 1 with nativessl = 0
For stunnel, edit /usr/local/cpanel/etc/stunnel/default/stunnel.conf
Modify line:
# Authentication stuff
With:
# Authentication stuff
options = NO_SSLv2
ciphers = !aNULL:!eNULL:!EXPORT:!DSS:!DES:RC4-SHA:RC4-MD5
Run the following command:
service cpanel restart
You can test by running the following commands:
openssl s_client -connect localhost:2083 -ssl3
openssl s_client -connect localhost:2083 -tls1
openssl s_client -connect localhost:2087 -ssl3
openssl s_client -connect localhost:2087 -tls1
5. For Exim (SMTP), edit the /etc/exim.conf.local file
Replace line:
tls_require_ciphers = ALL:!aNULL:!ADH:!eNULL:!LOW:!EXP:RC4+RSA:+HIGH:+MEDIUM:!SSLv2
with:
tls_require_ciphers = -ALL:!SSLv2:!aNULL:!eNULL:!EXPORT:!DSS:!DES:RC4-SHA:RC4-MD55
Run the following command to restart Exim
/scripts/buildeximconf && service exim restart
You can test by running the following commands:
openssl s_client -connect localhost:465 -tls1
openssl s_client -connect localhost:465 -ssl3
6. For Courier (IMAP) edit the /usr/lib/courier-imap/etc/imapd-ssl file
Replace line:
TLS_CIPHER_LIST=ALL:!SSLv2:!ADH:!NULL:!EXPORT:!DES:!LOW:@STRENGTH
With:
TLS_CIPHER_LIST=-ALL:!SSLv2:!ADH:!aNULL:!eNULL:!EXPORT:!DSS:!DES:RC4-SHA:RC4-MD5
For Courier (POP3) edit the /usr/lib/courier-imap/etc/pop3d-ssl file
Replace line:
TLS_CIPHER_LIST=ALL:!SSLv2:!ADH:!NULL:!EXPORT:!DES:!LOW:@STRENGTH
With:
TLS_CIPHER_LIST=-ALL:!SSLv2:!ADH:!aNULL:!eNULL:!EXPORT:!DSS:!DES:RC4-SHA:RC4-MD5
Run command:
service courier-authlib restart && service courier-imap stop && service courier-imap start
Test:
openssl s_client -connect localhost:993 -ssl3
openssl s_client -connect localhost:993 -tls1
openssl s_client -connect localhost:995 -ssl3
openssl s_client -connect localhost:995 -tls1
