Author Topic: Disabling weak SSL ciphers  (Read 19924 times)

Offline alexj

  • Sr. Member
  • **
  • Posts: 15
  • Karma: 0
Disabling weak SSL ciphers
« on: February 09, 2009, 08:57:53 AM »
We run NetScaler NS8.1: Build 60.3, periodically we run www.securitymetrics.com  on our sites and we have gotten flagged with

Code: [Select]
Synopsis : The remote service supports the use of weak SSL ciphers.
Description : The remote host supports the use of SSL ciphers that offer either weak encryption or no encryption at all.

See also : http://www.openssl.org/docs/apps/ciphers .html

Solution: Reconfigure the affected application if possible to avoid use of weak ciphers. Risk Factor: Medium  / CVSS Base Score : 5.0
(CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N) Plugin output : Here is the list of weak SSL ciphers supported by the remote server : Low Strength Ciphers
(< 56-bit key) SSLv3 EXP-DES-CBC-SHA Kx=RSA(512) Au=RSA Enc=DES(40) Mac=SHA1 export EXP-RC2-CBC-MD5 Kx=RSA(512) Au=RSA
Enc=RC2(40) Mac=MD5 export EXP-RC4-MD5 Kx=RSA(512) Au=RSA Enc=RC4(40) Mac=MD5 export TLSv1 EXP-DES-CBC-SHA Kx=RSA(512) Au=RSA
Enc=DES(40) Mac=SHA1 export EXP-RC2-CBC-MD5 Kx=RSA(512) Au=RSA Enc=RC2(40) Mac=MD5 export EXP-RC4-MD5 Kx=RSA(512) Au=RSA
Enc=RC4(40) Mac=MD5 export The fields above are : {OpenSSL ciphername} Kx={key exchange} Au={authentication} Enc={symmetric encryption
method} Mac={message authentication code} {export flag}



Is there any way to shut those specific ciphers off?

Offline Marco Schirrmeister

  • Hero Member
  • *****
  • Posts: 101
  • Karma: 14
Re: Disabling weak SSL ciphers
« Reply #1 on: February 20, 2009, 05:00:02 PM »
Alexj,

have you checked which Cipher or Cipher Groups are configured on your ssl vservers?

On my ssl vservers there is by default the Cipher Group "DEFAULT" configured.
This group does for example not include "SSLv3 EXP-DES-CBC-SHA Kx=RSA(512) Au=RSA Enc=DES(40) Mac=SHA1 export" that you have listed.

Maybe you have configured special groups or specific Ciphers on your vservers?
However, in the SSL Settings tab of a vserver under Ciphers you can define what you want to have available.


Marco


Offline alexj

  • Sr. Member
  • **
  • Posts: 15
  • Karma: 0
Re: Disabling weak SSL ciphers
« Reply #2 on: February 26, 2009, 07:10:03 AM »
I am using a third part tester

http://www.unspecific.com/2009/02/16/ssl-cipher-check

It reports that it has been able to handshake with

SSLv3:EXP-DES-CBC-SHA - SUCCESS *V *W

But this is not part of my configured group. I tried also creating a new cipher group and adding only specific ciphers, but this one and others although not specifically defined come up as valid.

Thanks In adavance

Offline Marco Schirrmeister

  • Hero Member
  • *****
  • Posts: 101
  • Karma: 14
Re: Disabling weak SSL ciphers
« Reply #3 on: February 26, 2009, 07:14:23 AM »
Then I would try to talk to this 3rd party company that they should give you some advise.
Maybe this scanner is just stupid.

I noticed in the past with other products like Qualys that such scanners tell you sometime that there are open vulnerabilities where everything is patched fine.



Offline ZManGT

  • VIP Member
  • ***
  • Posts: 94
  • Karma: 12
Re: Disabling weak SSL ciphers
« Reply #4 on: February 26, 2009, 07:24:17 AM »
Alex,

I've been using SSL Digger and I noticed a similar problem, I would disable the ciphers but for some reason they would still work. I had to create a new group about 3 times and it finally worked. Here is the link I have to my "strong" ciphers. By the way this was strong enough to be PCI compliant if that's what you are shooting for.

add ssl cipher SSL-PCI "TLS1-DHE-DSS-AES-128-CBC-SHA"
add ssl cipher SSL-PCI "TLS1-DHE-RSA-AES-128-CBC-SHA"
add ssl cipher SSL-PCI "SSL3-RC4-SHA"
add ssl cipher SSL-PCI "SSL3-RC4-MD5"
add ssl cipher SSL-PCI "SSL3-DES-CBC3-SHA"
add ssl cipher SSL-PCI "SSL2-RC2-CBC-MD5"
add ssl cipher SSL-PCI "SSL2-RC4-MD5"
add ssl cipher SSL-PCI "TLS1-AES-128-CBC-SHA"
add ssl cipher SSL-PCI "TLS1-AES-256-CBC-SHA"
add ssl cipher SSL-PCI "SSL2-DES-CBC3-MD5"
add ssl cipher SSL-PCI "SSL3-EDH-DSS-DES-CBC3-SHA"
add ssl cipher SSL-PCI "TLS1-DHE-DSS-AES-256-CBC-SHA"
add ssl cipher SSL-PCI "TLS1-DHE-RSA-AES-256-CBC-SHA"
add ssl cipher SSL-PCI "SSL3-EDH-RSA-DES-CBC3-SHA"

One other thing is you should disable the SSL V2 redirect as it will give a false positive too
http://forums.citrix.com/message.jspa?messageID=680124

Offline alexj

  • Sr. Member
  • **
  • Posts: 15
  • Karma: 0
Re: Disabling weak SSL ciphers
« Reply #5 on: February 26, 2009, 01:43:00 PM »
Thanks ZManGT, it worked like a charm. I created a new SSL cipher group. I did have to set the cipher several times before it took. Thanks everyone

Alex

Offline oldguy

  • Contributor
  • *
  • Posts: 8
  • Karma: 2
Re: Disabling weak SSL ciphers
« Reply #6 on: March 17, 2009, 11:15:12 AM »
We recently had some penetration testing done and found there were 2 reasons for the false positives,
SSLv2redirect and cipherRedirect both of which are enabled by default.  Setting both of them to disabled solved the issue and we still use the DEFAULT cert group.

The explanation given by Citrix was that the NetScaler would allow the non supported cipher request to be setup but that the NetScaler would return an error message about needing to upgrade and then Terminate the session.  Most of the tools used just test if the SSL handshake is successful which it is so the NetScaler can respond with the error message.

You can verify this by enabling only sslv2 on your browser and connecting to an SSL vserver that does not support v2 and has sslv2redirect enabled, you will get the error message and not the page you were after.

Offline Marco Schirrmeister

  • Hero Member
  • *****
  • Posts: 101
  • Karma: 14
Re: Disabling weak SSL ciphers
« Reply #7 on: August 07, 2009, 03:43:29 PM »
You can also verify that with openssl. I mean using openssl to see the default response if SSLv2 redirect is enabled, but with no custom URL.

Just run "openssl s_client -CApath /etc/ssl/certs/ -connect server.domain.tld:443 -ssl2"

After the connect type in "GET / HTTP/1.1". You should get the following result.


HTTP/1.1 500 Internal Server Error
Connection: close
Content-Length: 309
Content-Type: text/html

<html><body><b>SSL Protocol Alert</b><p>The SSL protocol version that your browser uses is SSLv2 and it is not compatible with the server settings. </p><p>Please try the following:</p><p>- Check the SSL protocol settings on your browser for SSLv3/TLSv1 protocol support and enable the same. </p></body></html>closed