Skip to content

Commit a65040b

Browse files
authored
Add client_protocols test to long-test job, and different golden file on Azure Linux (#6852)
1 parent 0302637 commit a65040b

File tree

3 files changed

+162
-2
lines changed

3 files changed

+162
-2
lines changed

Diff for: .github/workflows/long-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ jobs:
217217
git config --global --add safe.directory /__w/CCF/CCF
218218
mkdir build
219219
cd build
220-
cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Release ..
220+
cmake -GNinja -DCOMPILE_TARGET=virtual -DCMAKE_BUILD_TYPE=Release -DCLIENT_PROTOCOLS_TEST=ON ..
221221
ninja
222222
223223
- name: "Test"

Diff for: tests/client_protocols.py

+11-1
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,20 @@
1414
H2SPEC_BIN = "/opt/h2spec/h2spec"
1515

1616

17+
def is_azure_linux():
18+
os_release = subprocess.check_output(
19+
"cat /etc/os-release", universal_newlines=True, shell=True
20+
).lower()
21+
return "ubuntu" not in os_release
22+
23+
1724
def compare_golden():
1825
script_path = os.path.realpath(__file__)
1926
script_dir = os.path.dirname(script_path)
20-
golden_file = os.path.join(script_dir, "tls_report.csv")
27+
golden_file = os.path.join(
28+
script_dir,
29+
"tls_report_azure_linux.csv" if is_azure_linux() else "tls_report.csv",
30+
)
2131
print(f"Comparing output to golden file: {golden_file}")
2232

2333
# Read both files into arrays

Diff for: tests/tls_report_azure_linux.csv

+150
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,150 @@
1+
"ALPN","","INFO","http/1.1","",""
2+
"BEAST","","OK","not vulnerable, no SSL3 or TLS1","CVE-2011-3389","CWE-20"
3+
"BREACH","","OK","not vulnerable, no gzip/deflate/compress/br HTTP compression - only supplied '/' tested","CVE-2013-3587","CWE-310"
4+
"CCS","","OK","not vulnerable","CVE-2014-0224","CWE-310"
5+
"CRIME_TLS","","OK","not vulnerable","CVE-2012-4929","CWE-310"
6+
"DNS_CAArecord","","LOW","--","",""
7+
"DROWN","","OK","not vulnerable on this host and port","CVE-2016-0800 CVE-2016-0703","CWE-310"
8+
"DROWN_hint","","INFO","no RSA certificate, can't be used with SSLv2 elsewhere","CVE-2016-0800 CVE-2016-0703","CWE-310"
9+
"FREAK","","OK","not vulnerable","CVE-2015-0204","CWE-310"
10+
"FS","","OK","offered","",""
11+
"FS_ECDHE_curves","","OK","prime256v1 secp384r1 secp521r1","",""
12+
"FS_TLS12_sig_algs","","INFO","ECDSA+SHA256 ECDSA+SHA384 ECDSA+SHA512 ECDSA-BRAINPOOL+SHA256 ECDSA-BRAINPOOL+SHA384 ECDSA-BRAINPOOL+SHA512 ECDSA+SHA224","",""
13+
"FS_TLS13_sig_algs","","INFO","ECDSA+SHA384","",""
14+
"FS_ciphers","","INFO","TLS_AES_256_GCM_SHA384 ECDHE-ECDSA-AES256-GCM-SHA384 TLS_AES_128_GCM_SHA256 ECDHE-ECDSA-AES128-GCM-SHA256","",""
15+
"HPKP","","INFO","No support for HTTP Public Key Pinning","",""
16+
"HSTS","","LOW","not offered","",""
17+
"HTTP_clock_skew","","INFO","Got no HTTP time, maybe try different URL?","",""
18+
"HTTP_status_code","","INFO","404 NOT_FOUND ('/')","",""
19+
"LOGJAM","","OK","not vulnerable, no DH EXPORT ciphers,","CVE-2015-4000","CWE-310"
20+
"LOGJAM-common_primes","","OK","no DH key with <= TLS 1.2","CVE-2015-4000","CWE-310"
21+
"LUCKY13","","OK","not vulnerable","CVE-2013-0169","CWE-310"
22+
"NPN","","INFO","not offered","",""
23+
"OCSP_stapling","","INFO","not offered","",""
24+
"POODLE_SSL","","OK","not vulnerable, no SSLv3","CVE-2014-3566","CWE-310"
25+
"RC4","","OK","not vulnerable","CVE-2013-2566 CVE-2015-2808","CWE-310"
26+
"ROBOT","","OK","not vulnerable, no RSA key transport cipher","CVE-2017-17382 CVE-2017-17427 CVE-2017-17428 CVE-2017-13098 CVE-2017-1000385 CVE-2017-13099 CVE-2016-6883 CVE-2012-5081 CVE-2017-6168","CWE-203"
27+
"SSL_sessionID_support","","INFO","yes","",""
28+
"SSLv2","","OK","not offered","",""
29+
"SSLv3","","OK","not offered","",""
30+
"SWEET32","","OK","not vulnerable","CVE-2016-2183 CVE-2016-6329","CWE-327"
31+
"TLS1","","INFO","not offered","",""
32+
"TLS1_1","","INFO","not offered","",""
33+
"TLS1_2","","OK","offered","",""
34+
"TLS1_3","","OK","offered with final","",""
35+
"TLS_extensions","","INFO","'renegotiation info/#65281' 'EC point formats/#11' 'session ticket/#35' 'supported versions/#43' 'key share/#51' 'supported_groups/#10' 'max fragment length/#1' 'application layer protocol negotiation/#16' 'extended master secret/#23'","",""
36+
"TLS_session_ticket","","INFO","valid for 7200 seconds only (<daily)","",""
37+
"TLS_timestamp","","INFO","random","",""
38+
"banner_application","","INFO","No application banner found","",""
39+
"banner_reverseproxy","","INFO","--","","CWE-200"
40+
"banner_server","","INFO","No Server banner line in header, interesting!","",""
41+
"cert","","INFO","----------","",""
42+
"cert_caIssuers","","INFO","CCF Test Service","",""
43+
"cert_certificatePolicies_EV","","INFO","no","",""
44+
"cert_chain_of_trust","","CRITICAL","failed (chain incomplete).","",""
45+
"cert_commonName","","OK","CCF Node","",""
46+
"cert_commonName_wo_SNI","","INFO","CCF Node","",""
47+
"cert_crlDistributionPoints","","INFO","--","",""
48+
"cert_eTLS","","INFO","not present","",""
49+
"cert_expirationStatus","","HIGH","expires < 30 days (0)","",""
50+
"cert_extKeyUsage","","INFO","No server extended key usage information","",""
51+
"cert_extlifeSpan","","OK","certificate has no extended life time according to browser forum","",""
52+
"cert_fingerprintSHA1","","INFO","","",""
53+
"cert_fingerprintSHA256","","INFO","","",""
54+
"cert_keySize","","OK","EC 384 bits (curve P-384)","",""
55+
"cert_keyUsage","","INFO","No server key usage information","",""
56+
"cert_mustStapleExtension","","INFO","--","",""
57+
"cert_notAfter","","HIGH","","",""
58+
"cert_notBefore","","INFO","","",""
59+
"cert_numbers","","INFO","1","",""
60+
"cert_ocspURL","","INFO","--","",""
61+
"cert_revocation","","HIGH","Neither CRL nor OCSP URI provided","",""
62+
"cert_serialNumber","","INFO","","",""
63+
"cert_serialNumberLen","","INFO","","",""
64+
"cert_signatureAlgorithm","","OK","ECDSA with SHA384","",""
65+
"cert_subjectAltName","","INFO","","",""
66+
"cert_trust","","OK","Ok via SAN","",""
67+
"certificate_compression","","INFO","none","",""
68+
"certificate_transparency","","INFO","--","",""
69+
"certs_countServer","","INFO","1","",""
70+
"certs_list_ordering_problem","","INFO","no","",""
71+
"cipher-tls1_2_xc02b","","OK","TLSv1.2 xc02b ECDHE-ECDSA-AES128-GCM-SHA256 ECDH 521 AESGCM 128 TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256","",""
72+
"cipher-tls1_2_xc02c","","OK","TLSv1.2 xc02c ECDHE-ECDSA-AES256-GCM-SHA384 ECDH 521 AESGCM 256 TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384","",""
73+
"cipher-tls1_3_x1301","","OK","TLSv1.3 x1301 TLS_AES_128_GCM_SHA256 ECDH 256 AESGCM 128 TLS_AES_128_GCM_SHA256","",""
74+
"cipher-tls1_3_x1302","","OK","TLSv1.3 x1302 TLS_AES_256_GCM_SHA384 ECDH 256 AESGCM 256 TLS_AES_256_GCM_SHA384","",""
75+
"cipher_order","","OK","server","",""
76+
"cipher_order-tls1_2","","OK","server","",""
77+
"cipher_order-tls1_3","","OK","server","",""
78+
"cipher_strength_score","","INFO","0","",""
79+
"cipher_strength_score_weighted","","INFO","0","",""
80+
"cipherlist_3DES_IDEA","","INFO","not offered","","CWE-310"
81+
"cipherlist_EXPORT","","OK","not offered","","CWE-327"
82+
"cipherlist_LOW","","OK","not offered","","CWE-327"
83+
"cipherlist_NULL","","OK","not offered","","CWE-327"
84+
"cipherlist_OBSOLETED","","INFO","not offered","","CWE-310"
85+
"cipherlist_STRONG_FS","","OK","offered","",""
86+
"cipherlist_STRONG_NOFS","","INFO","not offered","",""
87+
"cipherlist_aNULL","","OK","not offered","","CWE-327"
88+
"cipherorder_TLSv1_2","","INFO","ECDHE-ECDSA-AES256-GCM-SHA384 ECDHE-ECDSA-AES128-GCM-SHA256","",""
89+
"cipherorder_TLSv1_3","","INFO","TLS_AES_256_GCM_SHA384 TLS_AES_128_GCM_SHA256","",""
90+
"clientAuth","","INFO","optional","",""
91+
"clientAuth_CA_list","","INFO","empty","",""
92+
"clientsimulation-android_11","","INFO","TLSv1.3 TLS_AES_256_GCM_SHA384","",""
93+
"clientsimulation-android_12","","INFO","TLSv1.3 TLS_AES_256_GCM_SHA384","",""
94+
"clientsimulation-android_60","","INFO","TLSv1.2 ECDHE-ECDSA-AES128-GCM-SHA256","",""
95+
"clientsimulation-android_70","","INFO","No connection","",""
96+
"clientsimulation-android_81","","INFO","TLSv1.2 ECDHE-ECDSA-AES256-GCM-SHA384","",""
97+
"clientsimulation-android_90","","INFO","TLSv1.3 TLS_AES_256_GCM_SHA384","",""
98+
"clientsimulation-android_X","","INFO","TLSv1.3 TLS_AES_256_GCM_SHA384","",""
99+
"clientsimulation-apple_mail_16_0","","INFO","TLSv1.2 ECDHE-ECDSA-AES256-GCM-SHA384","",""
100+
"clientsimulation-chrome_101_win10","","INFO","TLSv1.3 TLS_AES_256_GCM_SHA384","",""
101+
"clientsimulation-chrome_79_win10","","INFO","TLSv1.3 TLS_AES_256_GCM_SHA384","",""
102+
"clientsimulation-edge_101_win10_21h2","","INFO","TLSv1.3 TLS_AES_256_GCM_SHA384","",""
103+
"clientsimulation-edge_15_win10","","INFO","TLSv1.2 ECDHE-ECDSA-AES256-GCM-SHA384","",""
104+
"clientsimulation-firefox_100_win10","","INFO","TLSv1.3 TLS_AES_256_GCM_SHA384","",""
105+
"clientsimulation-firefox_66_win81","","INFO","TLSv1.3 TLS_AES_256_GCM_SHA384","",""
106+
"clientsimulation-go_1178","","INFO","TLSv1.3 TLS_AES_256_GCM_SHA384","",""
107+
"clientsimulation-ie_11_win10","","INFO","TLSv1.2 ECDHE-ECDSA-AES256-GCM-SHA384","",""
108+
"clientsimulation-ie_11_win7","","INFO","TLSv1.2 ECDHE-ECDSA-AES256-GCM-SHA384","",""
109+
"clientsimulation-ie_11_win81","","INFO","TLSv1.2 ECDHE-ECDSA-AES256-GCM-SHA384","",""
110+
"clientsimulation-ie_11_winphone81","","INFO","TLSv1.2 ECDHE-ECDSA-AES256-GCM-SHA384","",""
111+
"clientsimulation-ie_6_xp","","INFO","No connection","",""
112+
"clientsimulation-ie_8_win7","","INFO","No connection","",""
113+
"clientsimulation-ie_8_xp","","INFO","No connection","",""
114+
"clientsimulation-java1102","","INFO","TLSv1.3 TLS_AES_256_GCM_SHA384","",""
115+
"clientsimulation-java1703","","INFO","TLSv1.3 TLS_AES_256_GCM_SHA384","",""
116+
"clientsimulation-java_7u25","","INFO","No connection","",""
117+
"clientsimulation-java_8u161","","INFO","TLSv1.2 ECDHE-ECDSA-AES256-GCM-SHA384","",""
118+
"clientsimulation-libressl_283","","INFO","TLSv1.2 ECDHE-ECDSA-AES256-GCM-SHA384","",""
119+
"clientsimulation-openssl_102e","","INFO","TLSv1.2 ECDHE-ECDSA-AES256-GCM-SHA384","",""
120+
"clientsimulation-openssl_110l","","INFO","TLSv1.2 ECDHE-ECDSA-AES256-GCM-SHA384","",""
121+
"clientsimulation-openssl_111d","","INFO","TLSv1.3 TLS_AES_256_GCM_SHA384","",""
122+
"clientsimulation-openssl_303","","INFO","TLSv1.3 TLS_AES_256_GCM_SHA384","",""
123+
"clientsimulation-safari_121_ios_122","","INFO","TLSv1.3 TLS_AES_256_GCM_SHA384","",""
124+
"clientsimulation-safari_130_osx_10146","","INFO","TLSv1.3 TLS_AES_256_GCM_SHA384","",""
125+
"clientsimulation-safari_154_osx_1231","","INFO","TLSv1.3 TLS_AES_256_GCM_SHA384","",""
126+
"clientsimulation-thunderbird_91_9","","INFO","TLSv1.3 TLS_AES_256_GCM_SHA384","",""
127+
"cookie_count","","INFO","0 at '/' (30x detected, better try target URL of 30x)","",""
128+
"fallback_SCSV","","OK","no protocol below TLS 1.2 offered","",""
129+
"final_score","","INFO","0","",""
130+
"grade_cap_reason_1","","INFO","Grade capped to T. Issues with the chain of trust (chain incomplete)","",""
131+
"grade_cap_reason_2","","INFO","Grade capped to A. HSTS is not offered","",""
132+
"heartbleed","","OK","not vulnerable, no heartbeat extension","CVE-2014-0160","CWE-119"
133+
"id","fqdn/ip","port","severity","finding","cve","cwe"
134+
"intermediate_cert_badOCSP","","OK","intermediate certificate(s) is/are ok","",""
135+
"key_exchange_score","","INFO","0","",""
136+
"key_exchange_score_weighted","","INFO","0","",""
137+
"overall_grade","","CRITICAL","T","",""
138+
"pre_128cipher","","INFO","No 128 cipher limit bug","",""
139+
"protocol_support_score","","INFO","0","",""
140+
"protocol_support_score_weighted","","INFO","0","",""
141+
"rating_doc","","INFO","https://github.com/ssllabs/research/wiki/SSL-Server-Rating-Guide","",""
142+
"rating_spec","","INFO","SSL Labs's 'SSL Server Rating Guide' (version 2009q from 2020-01-30)","",""
143+
"secure_client_renego","","OK","not vulnerable","CVE-2011-1473","CWE-310"
144+
"secure_renego","","OK","supported","","CWE-310"
145+
"security_headers","","MEDIUM","--","",""
146+
"service","","INFO","HTTP","",""
147+
"sessionresumption_ID","","INFO","not supported","",""
148+
"sessionresumption_ticket","","INFO","not supported","",""
149+
"ticketbleed","","OK","not vulnerable","CVE-2016-9244","CWE-200"
150+
"winshock","","OK","not vulnerable","CVE-2014-6321","CWE-94"

0 commit comments

Comments
 (0)