Nettacker icon indicating copy to clipboard operation
Nettacker copied to clipboard

Cipher_suites list in is_weak_cipher_suite() contains non-functional protocol-version strings

Open NSK-394 opened this issue 2 months ago • 0 comments

Found while investigating #1719.

nettacker/core/lib/ssl.py's cipher_suites list (used by is_weak_cipher_suite()) includes "TLSv1", "TLSv1.1", "TLSv1.2", "TLSv1.3" alongside genuine OpenSSL cipher-class strings like "HIGH", "MEDIUM", "eNULL". These four are protocol-version names, not valid OpenSSL cipher-list syntax, so they don't test anything meaningful via set_ciphers() -- testing protocol version support is already correctly handled by the sibling function is_weak_ssl_version().

Confirmed empirically: "TLSv1" and "TLSv1.2" silently succeed via the same TLS-1.3-masking mechanism as #1719 (unrelated to what they claim to test); "TLSv1.1" and "TLSv1.3" fail immediately as unparseable by OpenSSL's cipher-list grammar. None of the four provide real signal in either the pre- or post-#1719-fix code.

Suggested fix: remove these four entries from cipher_suites, since protocol-version detection is already correctly covered by is_weak_ssl_version().

NSK-394 avatar Sep 05 '26 00:09 NSK-394