<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.owasp.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Vectorizer</id>
		<title>OWASP - User contributions [en]</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.owasp.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Vectorizer"/>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php/Special:Contributions/Vectorizer"/>
		<updated>2026-05-15T10:54:44Z</updated>
		<subtitle>User contributions</subtitle>
		<generator>MediaWiki 1.27.2</generator>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Testing_for_SSL-TLS_(OWASP-CM-001)&amp;diff=113911</id>
		<title>Testing for SSL-TLS (OWASP-CM-001)</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Testing_for_SSL-TLS_(OWASP-CM-001)&amp;diff=113911"/>
				<updated>2011-07-14T16:32:05Z</updated>
		
		<summary type="html">&lt;p&gt;Vectorizer: fixed broken link&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{Template:OWASP Testing Guide v3}}&lt;br /&gt;
&lt;br /&gt;
== Brief Summary ==&lt;br /&gt;
&lt;br /&gt;
Due to historic export restrictions of high grade cryptography, legacy and new web servers are often able and configured to handle weak cryptographic options.&lt;br /&gt;
&lt;br /&gt;
Even if high grade ciphers are normally used and installed, some server misconfiguration could be used to force the use of a weaker cipher to gain access to the supposed secure communication channel.&lt;br /&gt;
&lt;br /&gt;
==Testing SSL / TLS cipher specifications and requirements for site==&lt;br /&gt;
&lt;br /&gt;
The http clear-text protocol is normally secured via an SSL or TLS tunnel, resulting in https traffic. In addition to providing encryption of data in transit, https allows the identification of servers (and, optionally, of clients) by means of digital certificates.&lt;br /&gt;
&lt;br /&gt;
Historically, there have been limitations set in place by the U.S. government to allow cryptosystems to be exported only for key sizes of, at most, 40 bits, a key length which could be broken and would allow the decryption of communications. Since then, cryptographic export regulations have been relaxed (though some constraints still hold); however, it is important to check the SSL configuration being used to avoid putting in place cryptographic support which could be easily defeated. SSL-based services should not offer the possibility to choose weak ciphers.&lt;br /&gt;
&lt;br /&gt;
Technically, cipher determination is performed as follows. In the initial phase of a SSL connection setup, the client sends the server a Client Hello message specifying, among other information, the cipher suites that it is able to handle. A client is usually a web browser (most popular SSL client nowadays), but not necessarily, since it can be any SSL-enabled application; the same holds for the server, which needs not be a web server, though this is the most common case. (For example, a noteworthy class of SSL clients is that of SSL proxies such as stunnel (www.stunnel.org) which can be used to allow non-SSL enabled tools to talk to SSL services.) A cipher suite is specified by an encryption protocol (DES, RC4, AES), the encryption key length (such as 40, 56, or 128 bits), and a hash algorithm (SHA, MD5) used for integrity checking. Upon receiving a Client Hello message, the server decides which cipher suite it will use for that session. It is possible (for example, by means of configuration directives) to specify which cipher suites the server will honor. In this way you may control, for example, whether or not conversations with clients will support 40-bit encryption only.&lt;br /&gt;
&lt;br /&gt;
==SSL testing criteria==&lt;br /&gt;
Large number of available cipher suites and quick progress in cryptoanalysis makes judging a SSL server a non-trivial task. These criteria are widely recognised as minimum checklist:&lt;br /&gt;
&lt;br /&gt;
* SSLv2, due to known weaknesses in protocol design&lt;br /&gt;
* Export (EXP) level cipher suites in SSLv3&lt;br /&gt;
* Cipher suites with symmetric encryption algorithm smaller than 128 bits&lt;br /&gt;
* X.509 certificates with RSA or DSA key smaller than 1024 bits&lt;br /&gt;
* X.509 certificates signed using MD5 hash, due to known collision attacks on this hash&lt;br /&gt;
* TLS Renegotiation vulnerability[http://www.phonefactor.com/sslgap/ssl-tls-authentication-patches]&lt;br /&gt;
&lt;br /&gt;
While there are known collision attacks on MD5 and known cryptoanalytical attacks on RC4, their specific usage in SSL and TLS doesn't allow these attacks to be practical and SSLv3 or TLSv1 cipher suites using RC4 and MD5 with key lenght of 128 bit is still considered sufficient[http://www.rsa.com/rsalabs/node.asp?id=2009].&lt;br /&gt;
&lt;br /&gt;
The following standards can be used as reference while assessing SSL servers:&lt;br /&gt;
&lt;br /&gt;
* [http://csrc.nist.gov/publications/nistpubs/800-52/SP800-52.pdf NIST SP 800-52] recommends U.S. federal systems to use at least TLS 1.0 with ciphersuites based on RSA or DSA key agreement with ephemeral Diffie-Hellman, 3DES or AES for confidentality and SHA1 for integrity protection. NIST SP 800-52 specifically disallows non-FIPS compliant algorithms like RC4 and MD5. An exception is U.S. federal systems making connections to outside servers, where these algorithms can be used in SSL client mode.&lt;br /&gt;
* [https://www.pcisecuritystandards.org/security_standards/pci_dss.shtml PCI-DSS v1.2] in point 4.1 requires compliant parties to use &amp;quot;strong cryptography&amp;quot; without precisely defining key lengths and algorithms. Common interpretation, partially based on previous versions of the standard, is that at least 128 bit key cipher, no export strength algorithms and no SSLv2 should be used[http://www.digicert.com/news/DigiCert_PCI_White_Paper.pdf].&lt;br /&gt;
* [https://www.ssllabs.com/projects/rating-guide/index.html SSL Server Rating Guide] has been proposed to standardize SSL server assessment and currently is in draft version.&lt;br /&gt;
&lt;br /&gt;
SSL Server Database can be used to assess configuration of publicly available SSL servers[https://www.ssllabs.com/ssldb/analyze.html] based on SSL Rating Guide[https://www.ssllabs.com/projects/rating-guide/index.html]&lt;br /&gt;
&lt;br /&gt;
==Black Box Test and example==&lt;br /&gt;
&lt;br /&gt;
In order to detect possible support of weak ciphers, the ports associated to SSL/TLS wrapped services must be identified. These typically include port 443, which is the standard https port; however, this may change because a) https services may be configured to run on non-standard ports, and b) there may be additional SSL/TLS wrapped services related to the web application. In general, a service discovery is required to identify such ports.&lt;br /&gt;
&lt;br /&gt;
The nmap scanner, via the “–sV” scan option, is able to identify SSL services. Vulnerability Scanners, in addition to performing service discovery, may include checks against weak ciphers (for example, the Nessus scanner has the capability of checking SSL services on arbitrary ports, and will report weak ciphers).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Example 1'''. SSL service recognition via nmap.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@test]# nmap -F -sV localhost&lt;br /&gt;
&lt;br /&gt;
Starting nmap 3.75 ( http://www.insecure.org/nmap/ ) at 2005-07-27 14:41 CEST&lt;br /&gt;
Interesting ports on localhost.localdomain (127.0.0.1):&lt;br /&gt;
(The 1205 ports scanned but not shown below are in state: closed)&lt;br /&gt;
&lt;br /&gt;
PORT      STATE SERVICE         VERSION&lt;br /&gt;
443/tcp   open  ssl             OpenSSL&lt;br /&gt;
901/tcp   open  http            Samba SWAT administration server&lt;br /&gt;
8080/tcp  open  http            Apache httpd 2.0.54 ((Unix) mod_ssl/2.0.54 OpenSSL/0.9.7g PHP/4.3.11)&lt;br /&gt;
8081/tcp  open  http            Apache Tomcat/Coyote JSP engine 1.0&lt;br /&gt;
&lt;br /&gt;
Nmap run completed -- 1 IP address (1 host up) scanned in 27.881 seconds&lt;br /&gt;
[root@test]# &lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Example 2'''. Identifying weak ciphers with Nessus.&lt;br /&gt;
The following is an anonymized excerpt of a report generated by the Nessus scanner, corresponding to the identification of a server certificate allowing weak ciphers (see underlined text).&lt;br /&gt;
&lt;br /&gt;
  '''https (443/tcp)'''&lt;br /&gt;
  '''Description'''&lt;br /&gt;
  Here is the SSLv2 server certificate:&lt;br /&gt;
  Certificate:&lt;br /&gt;
  Data:&lt;br /&gt;
  Version: 3 (0x2)&lt;br /&gt;
  Serial Number: 1 (0x1)&lt;br /&gt;
  Signature Algorithm: md5WithRSAEncryption&lt;br /&gt;
  Issuer: C=**, ST=******, L=******, O=******, OU=******, CN=******&lt;br /&gt;
  Validity&lt;br /&gt;
  Not Before: Oct 17 07:12:16 2002 GMT&lt;br /&gt;
  Not After : Oct 16 07:12:16 2004 GMT&lt;br /&gt;
  Subject: C=**, ST=******, L=******, O=******, CN=******&lt;br /&gt;
  Subject Public Key Info:&lt;br /&gt;
  Public Key Algorithm: rsaEncryption&lt;br /&gt;
  RSA Public Key: (1024 bit)&lt;br /&gt;
  Modulus (1024 bit):&lt;br /&gt;
  00:98:4f:24:16:cb:0f:74:e8:9c:55:ce:62:14:4e:&lt;br /&gt;
  6b:84:c5:81:43:59:c1:2e:ac:ba:af:92:51:f3:0b:&lt;br /&gt;
  ad:e1:4b:22:ba:5a:9a:1e:0f:0b:fb:3d:5d:e6:fc:&lt;br /&gt;
  ef:b8:8c:dc:78:28:97:8b:f0:1f:17:9f:69:3f:0e:&lt;br /&gt;
  72:51:24:1b:9c:3d:85:52:1d:df:da:5a:b8:2e:d2:&lt;br /&gt;
  09:00:76:24:43:bc:08:67:6b:dd:6b:e9:d2:f5:67:&lt;br /&gt;
  e1:90:2a:b4:3b:b4:3c:b3:71:4e:88:08:74:b9:a8:&lt;br /&gt;
  2d:c4:8c:65:93:08:e6:2f:fd:e0:fa:dc:6d:d7:a2:&lt;br /&gt;
  3d:0a:75:26:cf:dc:47:74:29&lt;br /&gt;
  Exponent: 65537 (0x10001)&lt;br /&gt;
  X509v3 extensions:&lt;br /&gt;
  X509v3 Basic Constraints:&lt;br /&gt;
  CA:FALSE&lt;br /&gt;
  Netscape Comment:&lt;br /&gt;
  OpenSSL Generated Certificate&lt;br /&gt;
  Page 10&lt;br /&gt;
  Network Vulnerability Assessment Report 25.05.2005&lt;br /&gt;
  X509v3 Subject Key Identifier:&lt;br /&gt;
  10:00:38:4C:45:F0:7C:E4:C6:A7:A4:E2:C9:F0:E4:2B:A8:F9:63:A8&lt;br /&gt;
  X509v3 Authority Key Identifier:&lt;br /&gt;
  keyid:CE:E5:F9:41:7B:D9:0E:5E:5D:DF:5E:B9:F3:E6:4A:12:19:02:76:CE&lt;br /&gt;
  DirName:/C=**/ST=******/L=******/O=******/OU=******/CN=******&lt;br /&gt;
  serial:00&lt;br /&gt;
  Signature Algorithm: md5WithRSAEncryption&lt;br /&gt;
  7b:14:bd:c7:3c:0c:01:8d:69:91:95:46:5c:e6:1e:25:9b:aa:&lt;br /&gt;
  8b:f5:0d:de:e3:2e:82:1e:68:be:97:3b:39:4a:83:ae:fd:15:&lt;br /&gt;
  2e:50:c8:a7:16:6e:c9:4e:76:cc:fd:69:ae:4f:12:b8:e7:01:&lt;br /&gt;
  b6:58:7e:39:d1:fa:8d:49:bd:ff:6b:a8:dd:ae:83:ed:bc:b2:&lt;br /&gt;
  40:e3:a5:e0:fd:ae:3f:57:4d:ec:f3:21:34:b1:84:97:06:6f:&lt;br /&gt;
  f4:7d:f4:1c:84:cc:bb:1c:1c:e7:7a:7d:2d:e9:49:60:93:12:&lt;br /&gt;
  0d:9f:05:8c:8e:f9:cf:e8:9f:fc:15:c0:6e:e2:fe:e5:07:81:&lt;br /&gt;
  82:fc&lt;br /&gt;
  Here is the list of available SSLv2 ciphers:&lt;br /&gt;
  RC4-MD5&lt;br /&gt;
  EXP-RC4-MD5&lt;br /&gt;
  RC2-CBC-MD5&lt;br /&gt;
  EXP-RC2-CBC-MD5&lt;br /&gt;
  DES-CBC-MD5&lt;br /&gt;
  DES-CBC3-MD5&lt;br /&gt;
  RC4-64-MD5&lt;br /&gt;
  &amp;lt;u&amp;gt;The SSLv2 server offers 5 strong ciphers, but also 0 medium strength and '''2 weak &amp;quot;export class&amp;quot; ciphers'''.&lt;br /&gt;
  The weak/medium ciphers may be chosen by an export-grade or badly configured client software. They only offer a limited protection against a brute force attack&amp;lt;/u&amp;gt;&lt;br /&gt;
  &amp;lt;u&amp;gt;Solution: disable those ciphers and upgrade your client software if necessary.&amp;lt;/u&amp;gt;&lt;br /&gt;
  See http://support.microsoft.com/default.aspx?scid=kben-us216482&lt;br /&gt;
  or http://httpd.apache.org/docs-2.0/mod/mod_ssl.html#sslciphersuite&lt;br /&gt;
  This SSLv2 server also accepts SSLv3 connections.&lt;br /&gt;
  This SSLv2 server also accepts TLSv1 connections.&lt;br /&gt;
  &lt;br /&gt;
  Vulnerable hosts&lt;br /&gt;
  ''(list of vulnerable hosts follows)''&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Example 3'''. Manually audit weak SSL cipher levels with OpenSSL. The following will attempt to connect to Google.com with SSLv2.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[root@test]# openssl s_client -no_tls1 -no_ssl3 -connect www.google.com:443&lt;br /&gt;
CONNECTED(00000003)&lt;br /&gt;
depth=0 /C=US/ST=California/L=Mountain View/O=Google Inc/CN=www.google.com&lt;br /&gt;
verify error:num=20:unable to get local issuer certificate&lt;br /&gt;
verify return:1&lt;br /&gt;
depth=0 /C=US/ST=California/L=Mountain View/O=Google Inc/CN=www.google.com&lt;br /&gt;
verify error:num=27:certificate not trusted&lt;br /&gt;
verify return:1&lt;br /&gt;
depth=0 /C=US/ST=California/L=Mountain View/O=Google Inc/CN=www.google.com&lt;br /&gt;
verify error:num=21:unable to verify the first certificate&lt;br /&gt;
verify return:1&lt;br /&gt;
---&lt;br /&gt;
Server certificate&lt;br /&gt;
-----BEGIN CERTIFICATE-----&lt;br /&gt;
MIIDYzCCAsygAwIBAgIQYFbAC3yUC8RFj9MS7lfBkzANBgkqhkiG9w0BAQQFADCB&lt;br /&gt;
zjELMAkGA1UEBhMCWkExFTATBgNVBAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJ&lt;br /&gt;
Q2FwZSBUb3duMR0wGwYDVQQKExRUaGF3dGUgQ29uc3VsdGluZyBjYzEoMCYGA1UE&lt;br /&gt;
CxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjEhMB8GA1UEAxMYVGhh&lt;br /&gt;
d3RlIFByZW1pdW0gU2VydmVyIENBMSgwJgYJKoZIhvcNAQkBFhlwcmVtaXVtLXNl&lt;br /&gt;
cnZlckB0aGF3dGUuY29tMB4XDTA2MDQyMTAxMDc0NVoXDTA3MDQyMTAxMDc0NVow&lt;br /&gt;
aDELMAkGA1UEBhMCVVMxEzARBgNVBAgTCkNhbGlmb3JuaWExFjAUBgNVBAcTDU1v&lt;br /&gt;
dW50YWluIFZpZXcxEzARBgNVBAoTCkdvb2dsZSBJbmMxFzAVBgNVBAMTDnd3dy5n&lt;br /&gt;
b29nbGUuY29tMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC/e2Vs8U33fRDk&lt;br /&gt;
5NNpNgkB1zKw4rqTozmfwty7eTEI8PVH1Bf6nthocQ9d9SgJAI2WOBP4grPj7MqO&lt;br /&gt;
dXMTFWGDfiTnwes16G7NZlyh6peT68r7ifrwSsVLisJp6pUf31M5Z3D88b+Yy4PE&lt;br /&gt;
D7BJaTxq6NNmP1vYUJeXsGSGrV6FUQIDAQABo4GmMIGjMB0GA1UdJQQWMBQGCCsG&lt;br /&gt;
AQUFBwMBBggrBgEFBQcDAjBABgNVHR8EOTA3MDWgM6Axhi9odHRwOi8vY3JsLnRo&lt;br /&gt;
YXd0ZS5jb20vVGhhd3RlUHJlbWl1bVNlcnZlckNBLmNybDAyBggrBgEFBQcBAQQm&lt;br /&gt;
MCQwIgYIKwYBBQUHMAGGFmh0dHA6Ly9vY3NwLnRoYXd0ZS5jb20wDAYDVR0TAQH/&lt;br /&gt;
BAIwADANBgkqhkiG9w0BAQQFAAOBgQADlTbBdVY6LD1nHWkhTadmzuWq2rWE0KO3&lt;br /&gt;
Ay+7EleYWPOo+EST315QLpU6pQgblgobGoI5x/fUg2U8WiYj1I1cbavhX2h1hda3&lt;br /&gt;
FJWnB3SiXaiuDTsGxQ267EwCVWD5bCrSWa64ilSJTgiUmzAv0a2W8YHXdG08+nYc&lt;br /&gt;
X/dVk5WRTw==&lt;br /&gt;
-----END CERTIFICATE-----&lt;br /&gt;
subject=/C=US/ST=California/L=Mountain View/O=Google Inc/CN=www.google.com&lt;br /&gt;
issuer=/C=ZA/ST=Western Cape/L=Cape Town/O=Thawte Consulting cc/OU=Certification Services Division/CN=Thawte Premium Server CA/emailAddress=premium-server@thawte.com&lt;br /&gt;
---&lt;br /&gt;
No client certificate CA names sent&lt;br /&gt;
---&lt;br /&gt;
Ciphers common between both SSL endpoints:&lt;br /&gt;
RC4-MD5         EXP-RC4-MD5     RC2-CBC-MD5&lt;br /&gt;
EXP-RC2-CBC-MD5 DES-CBC-MD5     DES-CBC3-MD5&lt;br /&gt;
RC4-64-MD5&lt;br /&gt;
---&lt;br /&gt;
SSL handshake has read 1023 bytes and written 333 bytes&lt;br /&gt;
---&lt;br /&gt;
New, SSLv2, Cipher is DES-CBC3-MD5&lt;br /&gt;
Server public key is 1024 bit&lt;br /&gt;
Compression: NONE&lt;br /&gt;
Expansion: NONE&lt;br /&gt;
SSL-Session:&lt;br /&gt;
    Protocol  : SSLv2&lt;br /&gt;
    Cipher    : DES-CBC3-MD5&lt;br /&gt;
    Session-ID: 709F48E4D567C70A2E49886E4C697CDE&lt;br /&gt;
    Session-ID-ctx:&lt;br /&gt;
    Master-Key: 649E68F8CF936E69642286AC40A80F433602E3C36FD288C3&lt;br /&gt;
    Key-Arg   : E8CB6FEB9ECF3033&lt;br /&gt;
    Start Time: 1156977226&lt;br /&gt;
    Timeout   : 300 (sec)&lt;br /&gt;
    Verify return code: 21 (unable to verify the first certificate)&lt;br /&gt;
---&lt;br /&gt;
closed&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Example 4'''. Testing supported protocols and ciphers using SSLScan.&lt;br /&gt;
&lt;br /&gt;
SSLScan is a free command line tool that scans a HTTPS service to enumerate what protocols (supports SSLv2, SSLv3 and TLS1) and what ciphers the HTTPS service supports. It runs both on Linux and Windows OS (OSX not tested) and is released under a open source license.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
[user@test]$ ./SSLScan --no-failed mail.google.com&lt;br /&gt;
                   _&lt;br /&gt;
           ___ ___| |___  ___ __ _ _ __&lt;br /&gt;
          / __/ __| / __|/ __/ _` | '_ \&lt;br /&gt;
          \__ \__ \ \__ \ (_| (_| | | | |&lt;br /&gt;
          |___/___/_|___/\___\__,_|_| |_|&lt;br /&gt;
&lt;br /&gt;
                  Version 1.9.0-win&lt;br /&gt;
             http://www.titania.co.uk&lt;br /&gt;
 Copyright 2010 Ian Ventura-Whiting / Michael Boman&lt;br /&gt;
    Compiled against OpenSSL 0.9.8n 24 Mar 2010&lt;br /&gt;
&lt;br /&gt;
Testing SSL server mail.google.com on port 443&lt;br /&gt;
&lt;br /&gt;
  Supported Server Cipher(s):&lt;br /&gt;
    accepted  SSLv3  256 bits  AES256-SHA&lt;br /&gt;
    accepted  SSLv3  128 bits  AES128-SHA&lt;br /&gt;
    accepted  SSLv3  168 bits  DES-CBC3-SHA&lt;br /&gt;
    accepted  SSLv3  128 bits  RC4-SHA&lt;br /&gt;
    accepted  SSLv3  128 bits  RC4-MD5&lt;br /&gt;
    accepted  TLSv1  256 bits  AES256-SHA&lt;br /&gt;
    accepted  TLSv1  128 bits  AES128-SHA&lt;br /&gt;
    accepted  TLSv1  168 bits  DES-CBC3-SHA&lt;br /&gt;
    accepted  TLSv1  128 bits  RC4-SHA&lt;br /&gt;
    accepted  TLSv1  128 bits  RC4-MD5&lt;br /&gt;
&lt;br /&gt;
  Prefered Server Cipher(s):&lt;br /&gt;
    SSLv3  128 bits  RC4-SHA&lt;br /&gt;
    TLSv1  128 bits  RC4-SHA&lt;br /&gt;
&lt;br /&gt;
  SSL Certificate:&lt;br /&gt;
    Version: 2&lt;br /&gt;
    Serial Number: -4294967295&lt;br /&gt;
    Signature Algorithm: sha1WithRSAEncryption&lt;br /&gt;
    Issuer: /C=ZA/O=Thawte Consulting (Pty) Ltd./CN=Thawte SGC CA&lt;br /&gt;
    Not valid before: Dec 18 00:00:00 2009 GMT&lt;br /&gt;
    Not valid after: Dec 18 23:59:59 2011 GMT&lt;br /&gt;
    Subject: /C=US/ST=California/L=Mountain View/O=Google Inc/CN=mail.google.com&lt;br /&gt;
    Public Key Algorithm: rsaEncryption&lt;br /&gt;
    RSA Public Key: (1024 bit)&lt;br /&gt;
      Modulus (1024 bit):&lt;br /&gt;
          00:d9:27:c8:11:f2:7b:e4:45:c9:46:b6:63:75:83:&lt;br /&gt;
          b1:77:7e:17:41:89:80:38:f1:45:27:a0:3c:d9:e8:&lt;br /&gt;
          a8:00:4b:d9:07:d0:ba:de:ed:f4:2c:a6:ac:dc:27:&lt;br /&gt;
          13:ec:0c:c1:a6:99:17:42:e6:8d:27:d2:81:14:b0:&lt;br /&gt;
          4b:82:fa:b2:c5:d0:bb:20:59:62:28:a3:96:b5:61:&lt;br /&gt;
          f6:76:c1:6d:46:d2:fd:ba:c6:0f:3d:d1:c9:77:9a:&lt;br /&gt;
          58:33:f6:06:76:32:ad:51:5f:29:5f:6e:f8:12:8b:&lt;br /&gt;
          ad:e6:c5:08:39:b3:43:43:a9:5b:91:1d:d7:e3:cf:&lt;br /&gt;
          51:df:75:59:8e:8d:80:ab:53&lt;br /&gt;
      Exponent: 65537 (0x10001)&lt;br /&gt;
    X509v3 Extensions:&lt;br /&gt;
      X509v3 Basic Constraints: critical&lt;br /&gt;
        CA:FALSE      X509v3 CRL Distribution Points: &lt;br /&gt;
        URI:http://crl.thawte.com/ThawteSGCCA.crl&lt;br /&gt;
      X509v3 Extended Key Usage: &lt;br /&gt;
        TLS Web Server Authentication, TLS Web Client Authentication, Netscape Server Gated Crypto      Authority Information Access: &lt;br /&gt;
        OCSP - URI:http://ocsp.thawte.com&lt;br /&gt;
        CA Issuers - URI:http://www.thawte.com/repository/Thawte_SGC_CA.crt&lt;br /&gt;
  Verify Certificate:&lt;br /&gt;
    unable to get local issuer certificate&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Renegotiation requests supported&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
'''Example 5'''. Testing common SSL flaws with ssl_tests&lt;br /&gt;
&lt;br /&gt;
ssl_tests (http://www.pentesterscripting.com/discovery/ssl_tests) is a bash script that uses sslscan and openssl to check for various flaws - ssl version 2, weak ciphers, md5withRSAEncryption,SSLv3 Force Ciphering Bug/Renegotiation.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[user@test]$ ./ssl_test.sh 192.168.1.3 443&lt;br /&gt;
+++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
SSL Tests - v2, weak ciphers, MD5, Renegotiation&lt;br /&gt;
by Aung Khant, http://yehg.net&lt;br /&gt;
+++++++++++++++++++++++++++++++++++++++++++++++++&lt;br /&gt;
&lt;br /&gt;
[*] testing on 192.168.1.3:443 ..&lt;br /&gt;
&lt;br /&gt;
[*] tesing for sslv2 ..&lt;br /&gt;
[*] sslscan 192.168.1.3:443 | grep Accepted  SSLv2&lt;br /&gt;
    Accepted  SSLv2  168 bits  DES-CBC3-MD5&lt;br /&gt;
    Accepted  SSLv2  56 bits   DES-CBC-MD5&lt;br /&gt;
    Accepted  SSLv2  40 bits   EXP-RC2-CBC-MD5&lt;br /&gt;
    Accepted  SSLv2  128 bits  RC2-CBC-MD5&lt;br /&gt;
    Accepted  SSLv2  40 bits   EXP-RC4-MD5&lt;br /&gt;
    Accepted  SSLv2  128 bits  RC4-MD5&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[*] testing for weak ciphers ...&lt;br /&gt;
[*] sslscan 192.168.1.3:443 | grep  40 bits | grep Accepted&lt;br /&gt;
    Accepted  SSLv2  40 bits   EXP-RC2-CBC-MD5&lt;br /&gt;
    Accepted  SSLv2  40 bits   EXP-RC4-MD5&lt;br /&gt;
    Accepted  SSLv3  40 bits   EXP-EDH-RSA-DES-CBC-SHA&lt;br /&gt;
    Accepted  SSLv3  40 bits   EXP-DES-CBC-SHA&lt;br /&gt;
    Accepted  SSLv3  40 bits   EXP-RC2-CBC-MD5&lt;br /&gt;
    Accepted  SSLv3  40 bits   EXP-RC4-MD5&lt;br /&gt;
    Accepted  TLSv1  40 bits   EXP-EDH-RSA-DES-CBC-SHA&lt;br /&gt;
    Accepted  TLSv1  40 bits   EXP-DES-CBC-SHA&lt;br /&gt;
    Accepted  TLSv1  40 bits   EXP-RC2-CBC-MD5&lt;br /&gt;
    Accepted  TLSv1  40 bits   EXP-RC4-MD5&lt;br /&gt;
&lt;br /&gt;
[*] sslscan 192.168.1.3:443 | grep  56 bits | grep Accepted&lt;br /&gt;
    Accepted  SSLv2  56 bits   DES-CBC-MD5&lt;br /&gt;
    Accepted  SSLv3  56 bits   EDH-RSA-DES-CBC-SHA&lt;br /&gt;
    Accepted  SSLv3  56 bits   DES-CBC-SHA&lt;br /&gt;
    Accepted  TLSv1  56 bits   EDH-RSA-DES-CBC-SHA&lt;br /&gt;
    Accepted  TLSv1  56 bits   DES-CBC-SHA&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[*] testing for MD5 certificate ..&lt;br /&gt;
[*] sslscan 192.168.1.3:443 | grep MD5WithRSAEncryption&lt;br /&gt;
&lt;br /&gt;
[*] testing for SSLv3 Force Ciphering Bug/Renegotiation ..&lt;br /&gt;
[*] echo R | openssl s_client -connect 192.168.1.3:443 | grep DONE&lt;br /&gt;
depth=0 /C=DE/ST=Berlin/L=Berlin/O=XAMPP/OU=XAMPP/CN=localhost/emailAddress=admin@localhost&lt;br /&gt;
verify error:num=18:self signed certificate&lt;br /&gt;
verify return:1&lt;br /&gt;
depth=0 /C=DE/ST=Berlin/L=Berlin/O=XAMPP/OU=XAMPP/CN=localhost/emailAddress=admin@localhost&lt;br /&gt;
verify return:1&lt;br /&gt;
RENEGOTIATING&lt;br /&gt;
depth=0 /C=DE/ST=Berlin/L=Berlin/O=XAMPP/OU=XAMPP/CN=localhost/emailAddress=admin@localhost&lt;br /&gt;
verify error:num=18:self signed certificate&lt;br /&gt;
verify return:1&lt;br /&gt;
depth=0 /C=DE/ST=Berlin/L=Berlin/O=XAMPP/OU=XAMPP/CN=localhost/emailAddress=admin@localhost&lt;br /&gt;
verify return:1&lt;br /&gt;
DONE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[*] done&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==White Box Test and example==&lt;br /&gt;
&lt;br /&gt;
Check the configuration of the web servers which provide https services. If the web application provides other SSL/TLS wrapped services, these should be checked as well.&lt;br /&gt;
&lt;br /&gt;
'''Example:''' The following registry path in Microsoft Windows 2003 defines the ciphers available to the server:&lt;br /&gt;
&lt;br /&gt;
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\SecurityProviders\SCHANNEL\Ciphers\&lt;br /&gt;
&lt;br /&gt;
==Testing SSL certificate validity – client and server==&lt;br /&gt;
&lt;br /&gt;
When accessing a web application via the https protocol, a secure channel is established between the client (usually the browser) and the server. The identity of one (the server) or both parties (client and server)  is then established by means of digital certificates. In order for the communication to be set up, a number of checks on the certificates must be passed. While discussing SSL and certificate based authentication is beyond the scope of this Guide, we will focus on the main criteria involved in ascertaining certificate validity: a) checking if the Certificate Authority (CA) is a known one (meaning one considered trusted), b) checking that the certificate is currently valid, and c) checking that the name of the site and the name reported in the certificate  match.&lt;br /&gt;
Remember to upgrade your browser because CA certs expired too, in every release of the browser, CA Certs has been renewed. Moreover it's important to update the browser because more web sites require strong cipher more of 40 or 56 bit.&lt;br /&gt;
&lt;br /&gt;
Let’s examine each check more in detail.&lt;br /&gt;
&lt;br /&gt;
a) Each browser comes with a preloaded list of trusted CAs, against which the certificate signing CA is compared (this list can be customized and expanded at will). During the initial negotiations with an https server, if the server certificate relates to a CA unknown to the browser, a warning is usually raised. This happens most often because a web application relies on a certificate signed by a self-established CA. Whether this is to be considered a concern depends on several factors. For example, this may be fine for an Intranet environment (think of corporate web email being provided via https; here, obviously all users recognize the internal CA as a trusted CA). When a service is provided to the general public via the Internet, however (i.e. when it is important to positively verify the identity of the server we are talking to), it is usually imperative to rely on a trusted CA, one which is  recognized by all the user base (and here we stop with our considerations; we won’t delve deeper in the implications of the trust model being used by digital certificates).&lt;br /&gt;
&lt;br /&gt;
b) Certificates have an associated period of validity, therefore they may expire. Again, we are warned by the browser about this. A public service needs a temporally valid certificate; otherwise, it means we are talking with a server whose certificate was issued by someone we trust, but has expired without being renewed.&lt;br /&gt;
&lt;br /&gt;
c) What if the name on the certificate and the name of the server do not match? If this happens, it might sound suspicious. For a number of reasons, this is not so rare to see. A system may host a number of name-based virtual hosts, which share the same IP address and are identified by means of the HTTP 1.1 Host: header information. In this case, since the SSL handshake checks the server certificate before the HTTP request is processed, it is not possible to assign different certificates to each virtual server. Therefore, if the name of the site and the name reported in the certificate do not match, we have a condition which is typically signalled by the browser. To avoid this, IP-based virtual servers must be used. [2] and [3] describe techniques to deal with this problem and allow name-based virtual hosts to be correctly referenced.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Black Box Testing and examples===&lt;br /&gt;
&lt;br /&gt;
Examine the validity of the certificates used by the application. Browsers will issue a warning when encountering expired certificates, certificates issued by untrusted CAs, and certificates which do not match namewise with the site to which they should refer. By clicking on the padlock which appears in the browser window when visiting an https site, you can look at information related to the certificate – including the issuer, period of validity, encryption characteristics, etc.&lt;br /&gt;
&lt;br /&gt;
If the application requires a client certificate, you probably have installed one to access it. Certificate information is available in the browser by inspecting the relevant certificate(s) in the list of the installed certificates.&lt;br /&gt;
&lt;br /&gt;
These checks must be applied to all visible SSL-wrapped communication channels used by the application. Though this is the usual https service running on port 443, there may be additional services involved depending on the web application architecture and on deployment issues (an https administrative port left open, https services on non-standard ports, etc.). Therefore, apply these checks to all SSL-wrapped ports which have been discovered. For example, the nmap scanner features a scanning mode (enabled by the –sV command line switch) which identifies SSL-wrapped services. The Nessus vulnerability scanner has the capability of performing SSL checks on all SSL/TLS-wrapped services.&lt;br /&gt;
&lt;br /&gt;
'''Examples'''&lt;br /&gt;
&lt;br /&gt;
Rather than providing a fictitious example, we have inserted an anonymized real-life example to stress how frequently one stumbles on https sites whose certificates are inaccurate with respect to naming.&lt;br /&gt;
&lt;br /&gt;
The following screenshots refer to a regional site of a high-profile IT company.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Warning issued by Microsoft Internet Explorer.&amp;lt;/u&amp;gt; We are visiting an ''.it'' site and the certificate was issued to a ''.com ''site! Internet Explorer warns that the name on the certificate does not match the name of the site.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SSL Certificate Validity Testing IE Warning.gif]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Warning issued by Mozilla Firefox.&amp;lt;/u&amp;gt; The message issued by Firefox is different – Firefox complains because it cannot ascertain the identity of the ''.com'' site the certificate refers to because it does not know the CA which signed the certificate. In fact, Internet Explorer and Firefox do not come preloaded with the same list of CAs. Therefore, the behavior experienced with various browsers may differ.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[Image:SSL Certificate Validity Testing Firefox Warning.gif]]&lt;br /&gt;
&lt;br /&gt;
===White Box Testing and examples===&lt;br /&gt;
&lt;br /&gt;
Examine the validity of the certificates used by the application at both server and client levels. The usage of certificates is primarily at the web server level; however, there may be additional communication paths protected by SSL (for example, towards the DBMS). You should check the application architecture to identify all SSL protected channels.&lt;br /&gt;
&lt;br /&gt;
==References==&lt;br /&gt;
'''Whitepapers'''&amp;lt;br&amp;gt;&lt;br /&gt;
* [1] RFC2246. The TLS Protocol Version 1.0 (updated by RFC3546) - http://www.ietf.org/rfc/rfc2246.txt&lt;br /&gt;
* [2] RFC2817. Upgrading to TLS Within HTTP/1.1 - http://www.ietf.org/rfc/rfc2817.txt&lt;br /&gt;
* [3] RFC3546. Transport Layer Security (TLS) Extensions - http://www.ietf.org/rfc/rfc3546.txt&lt;br /&gt;
* [4] &amp;lt;u&amp;gt;www.verisign.net&amp;lt;/u&amp;gt; features various material on the topic&lt;br /&gt;
&lt;br /&gt;
'''Tools'''&lt;br /&gt;
&lt;br /&gt;
* https://www.ssllabs.com/ssldb/&lt;br /&gt;
&lt;br /&gt;
* Vulnerability scanners may include checks regarding certificate validity, including name mismatch and time expiration. They usually report other information as well, such as the CA which issued the certificate. Remember that there is no unified notion of a “trusted CA”; what is trusted depends on the configuration of the software and on the human assumptions made beforehand. Browsers come with a preloaded list of trusted CAs. If your web application relies on a CA which is not in this list (for example, because you rely on a self-made CA), you should take into account the process of configuring user browsers to recognize the CA.&lt;br /&gt;
&lt;br /&gt;
* The Nessus scanner includes a plugin to check for expired certificates or certificates which are going to expire within 60 days (plugin “SSL certificate expiry”, plugin id 15901). This plugin will check certificates ''installed on the server.&lt;br /&gt;
&lt;br /&gt;
* Vulnerability scanners may include checks against weak ciphers. For example, the Nessus scanner (http://www.nessus.org) has this capability and flags the presence of SSL weak ciphers (see example provided above).&lt;br /&gt;
&lt;br /&gt;
* You may also rely on specialized tools such as SSL Digger (http://www.mcafee.com/us/downloads/free-tools/ssldigger.aspx), or – for the command line oriented – experiment with the openssl tool, which provides access to OpenSSL cryptographic functions directly from a Unix shell (may be already available on *nix boxes, otherwise see www.openssl.org).&lt;br /&gt;
&lt;br /&gt;
* To identify SSL-based services, use a vulnerability scanner or a port scanner with service recognition capabilities. The nmap scanner features a “-sV” scanning option which tries to identify services, while the nessus vulnerability scanner has the capability of identifying SSL-based services on arbitrary ports and to run vulnerability checks on them regardless of whether they are configured on standard or non-standard ports.&lt;br /&gt;
&lt;br /&gt;
* In case you need to talk to a SSL service but your favourite tool doesn’t support SSL, you may benefit from a SSL proxy such as stunnel; stunnel will take care of tunneling the underlying protocol (usually http, but not necessarily so) and communicate with the SSL service you need to reach.&lt;br /&gt;
&lt;br /&gt;
* ssl_tests, http://www.pentesterscripting.com/discovery/ssl_tests&lt;br /&gt;
&lt;br /&gt;
* Finally, a word of advice. Though it may be tempting to use a regular browser to check certificates, there are various reasons for not doing so. Browsers have been plagued by various bugs in this area, and the way the browser will perform the check might be influenced by configuration settings that may not be evident. Instead, rely on vulnerability scanners or on specialized tools to do the job.&lt;br /&gt;
&lt;br /&gt;
* [http://www.owasp.org/index.php/Transport_Layer_Protection_Cheat_Sheet OWASP Transport Layer Protection Cheat Sheet]&lt;br /&gt;
&lt;br /&gt;
[[Category:Cryptographic Vulnerability]]&lt;br /&gt;
[[Category:SSL]]&lt;/div&gt;</summary>
		<author><name>Vectorizer</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Talk:Main_Page&amp;diff=19238</id>
		<title>Talk:Main Page</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Talk:Main_Page&amp;diff=19238"/>
				<updated>2007-06-20T14:37:26Z</updated>
		
		<summary type="html">&lt;p&gt;Vectorizer: webmaster: security warning&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;There are &amp;quot;discussion&amp;quot; pages (also known as &amp;quot;talk&amp;quot; pages) associated with every article at OWASP.  You can leave questions, comments, or ideas on these pages for other authors to review.  These pages are a good place to propose ideas or discuss possible approaches to problems.  You should &amp;quot;sign&amp;quot; your comments by adding four tilde characters (&amp;lt;nowiki&amp;gt;~~~~&amp;lt;/nowiki&amp;gt;) after your comment. Thanks!&lt;br /&gt;
&lt;br /&gt;
==OWASP in Latin America?==&lt;br /&gt;
&lt;br /&gt;
Hi my name is Katia Guzman, and I am interested in knowing experiences in OWASP's use in latin america. If someone knows about some case, I will be grateful for it.&lt;br /&gt;
&lt;br /&gt;
 Please check out the [[:Category:OWASP Chapter|Local Chapters]]&lt;br /&gt;
 in latin america and contact the folks running them. [[User:OWASP|OWASP]] 22:20, 22 July 2006 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Application Security Students==&lt;br /&gt;
&lt;br /&gt;
I am Yogesh - student, I heard about OWASP's &amp;amp; intrested to go into application info security.As it is a vast field of expertize. Tell me how a studend with specialized MBA-IT background can fit in. &lt;br /&gt;
&lt;br /&gt;
 The best way to learn application security is by doing it. Check&lt;br /&gt;
 out the [[OWASP student projects]] for some ideas. It's a great way&lt;br /&gt;
 to learn. [[User:OWASP|OWASP]] 22:20, 22 July 2006 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
What basic knowledge should I have before choosing &amp;quot;Threat Risk modeling&amp;quot; as my career. (Looking for detailed feedback )  Thank you&lt;br /&gt;
&lt;br /&gt;
 You need a basic knowledge of application security principles,&lt;br /&gt;
 threats, attacks, vulnerabilities, and countermeasures. Check the&lt;br /&gt;
 [[:Category:OWASP Honeycomb Project|OWASP Honeycomb Project]] for the basic&lt;br /&gt;
 information you need. You should also read about the process of threat modeling.&lt;br /&gt;
 There are a few books on the subject, including &amp;quot;Threat Modeling&amp;quot; and&lt;br /&gt;
 &amp;quot;Secure Development Lifecycle&amp;quot; from the Microsoft Press. Note - it's not yet&lt;br /&gt;
 clear whether &amp;quot;Threat Risk modeling&amp;quot; is actually a career yet. There are clear&lt;br /&gt;
 careers as an &amp;quot;application security architect&amp;quot; and &amp;quot;application security tester&amp;quot;&lt;br /&gt;
 (including cod review).&lt;br /&gt;
&lt;br /&gt;
==Java Application Security==&lt;br /&gt;
&lt;br /&gt;
What are the specific thing which we need to keep in mind while programming in JAVA to make our code secure to all types of attack (--[[User:Rajnishk7|Rajnishk7]] 02:46, 24 June 2006 (EDT))&lt;br /&gt;
&lt;br /&gt;
 Check out the [[:Category:OWASP Java Project|OWASP Java Project]]&lt;br /&gt;
 for lots of information on this topic. [[User:OWASP|OWASP]] 22:20, 22 July 2006 (EDT)&lt;br /&gt;
&lt;br /&gt;
== webmaster: security warning ==&lt;br /&gt;
&lt;br /&gt;
I'm getting a &amp;quot;security warning&amp;quot; when navigating to most pages. Can this be fixed globally?&lt;br /&gt;
&lt;br /&gt;
&amp;quot;This page contains both secure and non-secure items. Do you wish to display the non-secure items?&amp;quot;&lt;/div&gt;</summary>
		<author><name>Vectorizer</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Talk:OWASP_Spring_Of_Code_2007&amp;diff=19237</id>
		<title>Talk:OWASP Spring Of Code 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Talk:OWASP_Spring_Of_Code_2007&amp;diff=19237"/>
				<updated>2007-06-20T14:30:26Z</updated>
		
		<summary type="html">&lt;p&gt;Vectorizer: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;- Where's the selected projects? Done in April?&lt;br /&gt;
&lt;br /&gt;
- spelling of &amp;quot;SPI Dinamics&amp;quot; needs correction (didn't see an edit link on the article).&lt;/div&gt;</summary>
		<author><name>Vectorizer</name></author>	</entry>

	<entry>
		<id>https://wiki.owasp.org/index.php?title=Talk:OWASP_Spring_Of_Code_2007&amp;diff=19236</id>
		<title>Talk:OWASP Spring Of Code 2007</title>
		<link rel="alternate" type="text/html" href="https://wiki.owasp.org/index.php?title=Talk:OWASP_Spring_Of_Code_2007&amp;diff=19236"/>
				<updated>2007-06-20T14:22:28Z</updated>
		
		<summary type="html">&lt;p&gt;Vectorizer: spelling&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;spelling of &amp;quot;SPI Dinamics&amp;quot; needs correction (didn't see an edit link on the article).&lt;/div&gt;</summary>
		<author><name>Vectorizer</name></author>	</entry>

	</feed>