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

ServerRejectedTlsHandshake when running --reneg and --resum #488

Closed
svengo opened this issue Feb 3, 2021 · 3 comments
Closed

ServerRejectedTlsHandshake when running --reneg and --resum #488

svengo opened this issue Feb 3, 2021 · 3 comments

Comments

@svengo
Copy link
Contributor

svengo commented Feb 3, 2021

Describe the bug
Two errors while scanning an nginx server.

To Reproduce
Steps to reproduce the behavior:

  1. Install SSLyze using pip
  2. Run the following command sslyze --regular arnor.svengo.net
  3. See error

Expected behavior
The scan should complete without an error :-)

Python environment (please complete the following information):

  • OS: Ubuntu 20.04.2 LTS under kvm
  • Linux docker-test01 5.4.0-62-generic #70-Ubuntu SMP Tue Jan 12 12:45:47 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
  • Python version: 3.8.5

Additional context
The server is running nginx/1.14.2 with built with OpenSSL 1.1.1d and ssl_protocols TLSv1.3.

cloud-user@docker-test01:~$ sslyze arnor.svengo.net
...
 * Error when running --reneg:
       You can open an issue at https://github.com/nabla-c0d3/sslyze/issues with the following information:

       * Server: arnor.svengo.net:443 - 5.135.143.191
       * Scan command: session_renegotiation

       Traceback (most recent call last):
         File "/home/cloud-user/.local/lib/python3.8/site-packages/sslyze/scanner.py", line 264, in get_results
    result = implementation_cls.result_for_completed_scan_jobs(
         File "/home/cloud-user/.local/lib/python3.8/site-packages/sslyze/plugins/session_renegotiation_plugin.py", line 100, in result_for_completed_scan_jobs
    result_enum, value = job.result()
         File "/usr/lib/python3.8/concurrent/futures/_base.py", line 432, in result
    return self.__get_result()
         File "/usr/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
    raise self._exception
         File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
         File "/home/cloud-user/.local/lib/python3.8/site-packages/sslyze/plugins/session_renegotiation_plugin.py", line 122, in _test_secure_renegotiation
    ssl_connection.connect()
         File "/home/cloud-user/.local/lib/python3.8/site-packages/sslyze/connection_helpers/tls_connection.py", line 342, in connect
    raise ServerRejectedTlsHandshake(
       sslyze.errors.ServerRejectedTlsHandshake

 * Error when running --resum:
       You can open an issue at https://github.com/nabla-c0d3/sslyze/issues with the following information:

       * Server: arnor.svengo.net:443 - 5.135.143.191
       * Scan command: session_resumption

       Traceback (most recent call last):
         File "/home/cloud-user/.local/lib/python3.8/site-packages/sslyze/scanner.py", line 264, in get_results
    result = implementation_cls.result_for_completed_scan_jobs(
         File "/home/cloud-user/.local/lib/python3.8/site-packages/sslyze/plugins/session_resumption/implementation.py", line 230, in result_for_completed_scan_jobs
    result_enum, value = job.result()
         File "/usr/lib/python3.8/concurrent/futures/_base.py", line 432, in result
    return self.__get_result()
         File "/usr/lib/python3.8/concurrent/futures/_base.py", line 388, in __get_result
    raise self._exception
         File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
    result = self.fn(*self.args, **self.kwargs)
         File "/home/cloud-user/.local/lib/python3.8/site-packages/sslyze/plugins/session_resumption/_resumption_with_id.py", line 56, in resume_with_session_id
    session1 = resume_tls_session(server_info, tls_version_to_use)
         File "/home/cloud-user/.local/lib/python3.8/site-packages/sslyze/plugins/session_resumption/_resumption_with_id.py", line 35, in resume_tls_session
    ssl_connection.connect()
@UncleRaymondo
Copy link

I have the same issue and it occurs when TLS 1.2 is disabled and only TLS1.3 is enabled. These commands are specific to TLS 1.2.

@nabla-c0d3 nabla-c0d3 added the bug label Feb 5, 2021
@nabla-c0d3 nabla-c0d3 changed the title Error when running --reneg and --resum ServerRejectedTlsHandshake when running --reneg and --resum Feb 6, 2021
@nabla-c0d3
Copy link
Owner

Fix released as part of v4.0.3.

@svengo
Copy link
Contributor Author

svengo commented Feb 16, 2021

Thank you for the quick fix, @nabla-c0d3!

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

3 participants