Open wondex opened 3 years ago
@wondex Could you send me the server that triggered this issue? Otherwise I won't be able to fix it. Thanks!
Hi Alban,
This is related to a Red Hat product, is there any debug option to send you the actual TlsHandshakeTypeByte value?
Can you show the results of a full scan against this server?
This is the full scan report (alterted the host information):
@nabla-c0d3 is the information enough? because the label "need more info" is still attached? Thanks for maintaining sslyze it's a great tool ;-)
@wondex To be honest I might need a live server that I can connect to, in order to be able to debug this; it looks like the server doesn't "speak" TLS. Any idea on how I could access a server that behaves like this?
Seems enough close to not open another issue. Same Error: Not a valid TlsHandshakeTypeByte when running Robot on badssl domain.
Error when running --robot: You can open an issue at https://github.com/nabla-c0d3/sslyze/issues with the following information:
Scan command: robot
Traceback (most recent call last): File "/home/brice/Workspace/SSLChecker/venv/lib/python3.7/site-packages/sslyze/scanner/_mass_scanner.py", line 271, in _generate_result_for_completed_server_scan scan_job_results=scan_job_results_for_plugin, File "/home/brice/Workspace/SSLChecker/venv/lib/python3.7/site-packages/sslyze/plugins/robot/implementation.py", line 103, in result_for_completed_scan_jobs server_responses_per_robot_payloads = future.get_result() File "/home/brice/Workspace/SSLChecker/venv/lib/python3.7/site-packages/sslyze/plugins/plugin_base.py", line 62, in get_result raise self._exception File "/home/brice/Workspace/SSLChecker/venv/lib/python3.7/site-packages/sslyze/scanner/_jobs_worker_thread.py", line 50, in run return_value = job_to_complete.function_to_call(*job_to_complete.function_arguments) File "/home/brice/Workspace/SSLChecker/venv/lib/python3.7/site-packages/sslyze/plugins/robot/_robot_tester.py", line 191, in test_robot server_info, tls_version_to_use, cipher_string, rsa_modulus, rsa_exponent, robot_should_complete_handshake File "/home/brice/Workspace/SSLChecker/venv/lib/python3.7/site-packages/sslyze/plugins/robot/_robot_tester.py", line 228, in _run_oracle_detection rsa_exponent, File "/home/brice/Workspace/SSLChecker/venv/lib/python3.7/site-packages/sslyze/plugins/robot/_robot_tester.py", line 313, in _send_robot_payload ssl_connection.connect() File "/home/brice/Workspace/SSLChecker/venv/lib/python3.7/site-packages/sslyze/connection_helpers/tls_connection.py", line 292, in connect self.ssl_client.do_handshake() File "/home/brice/Workspace/SSLChecker/venv/lib/python3.7/site-packages/sslyze/plugins/robot/_robot_tester.py", line 363, in do_handshake_with_robot tls_record, len_consumed = TlsRecordParser.parse_bytes(remaining_bytes) File "/home/brice/Workspace/SSLChecker/venv/lib/python3.7/site-packages/tls_parser/parser.py", line 15, in parse_bytes return TlsHandshakeRecord.from_bytes(raw_bytes) File "/home/brice/Workspace/SSLChecker/venv/lib/python3.7/site-packages/tls_parser/handshake_protocol.py", line 75, in from_bytes message, len_consumed_for_message = TlsHandshakeMessage.from_bytes(remaining_bytes) File "/home/brice/Workspace/SSLChecker/venv/lib/python3.7/site-packages/tls_parser/handshake_protocol.py", line 47, in from_bytes handshake_type = TlsHandshakeTypeByte(struct.unpack("B", raw_bytes[0:1])[0]) File "/usr/lib/python3.7/enum.py", line 310, in call return cls.new(cls, value) File "/usr/lib/python3.7/enum.py", line 564, in new raise exc File "/usr/lib/python3.7/enum.py", line 548, in new result = cls.missing(value) File "/usr/lib/python3.7/enum.py", line 577, in missing raise ValueError("%r is not a valid %s" % (value, cls.name)) ValueError: 28 is not a valid TlsHandshakeTypeByte
Hope that can help you :) Thanks for the Tools.
Describe the bug
or
To Reproduce Install SSLyze using: pip Run the following command: /opt/rh/rh-python38/root/usr/bin/python3.8 -m sslyze --regular
Expected behavior Successful scan
Python environment (please complete the following information): OS: Red Hat Enterprise Linux Server release 7.9 (Maipo) Python version: 3.8 SSLyzeL: 4.0.2