Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nsock_connect_ssl cannot connect to SSLv2 server #319

Open
dmiller-nmap opened this issue Mar 1, 2016 · 2 comments
Open

nsock_connect_ssl cannot connect to SSLv2 server #319

dmiller-nmap opened this issue Mar 1, 2016 · 2 comments

Comments

@dmiller-nmap
Copy link

Due to the use of SSL_set_tlsext_host_name in nsock/src/nsock_core.c, SSLv2 is precluded when scanning systems by name (as opposed to by IP address) because SSLv2 does not support extensions. SSLv3 also does not support extensions, but is allowed as a fallback. SSLv2 is never allowed as a fallback, so it has to be negotiated correctly from the beginning.

Low priority, probably, but we should make every effort to allow Nmap to connect to all SSL/TLS servers. Observations:

  • Some packaged OpenSSL libs have SSLv2 neutered. Be sure to test with OpenSSL compiled from official upstream sources.
  • We try to use SSLv23_client_method to allow this, but it's not working. We use "ALL" in our ciphers list, so SSLv2 should be ok.
  • We already have a "try again" manual fallback setting SSL_OP_NO_SSLv2 for the case where SSLv23_client_method fails because the server doesn't accept SSLv2 handshakes. This currently isn't exercised in cases where there's a hostname available, because of the reason listed above.
@h4ck3rk3y
Copy link

Just wondering, was this issue discovered with the DROWN attack in mind?

@dmiller-nmap
Copy link
Author

@h4ck3rk3y Was trying to determine if ssl-cert.nse could grab certs from SSLv2-only servers. That question is still open, because I ran into this bug instead. But yes, DROWN prompted the check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants