From c54c2aa6dbdba706afd495fa3830ff8a275f52f7 Mon Sep 17 00:00:00 2001 From: tosticated <70525720+tosticated@users.noreply.github.com> Date: Sun, 27 Dec 2020 18:31:55 +0100 Subject: [PATCH] HSTS preload list check against API added --- CHANGELOG.md | 1 + CREDITS.md | 1 + doc/testssl.1 | 3 + doc/testssl.1.html | 3 + doc/testssl.1.md | 1 + testssl.sh | 143 ++++++++++++++++++++++++++++++++++++++++++++- 6 files changed, 149 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4cf6cc6..da371be 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -29,6 +29,7 @@ * Headerflag X-XSS-Protection is now labeled as INFO * Client simulation runs in wide mode which is even better readable * Added --reqheader to support custom headers in HTTP requests +* `--phone-out` checks the HSTS preload list on https://hstspreload.org/ ### Features implemented / improvements in 3.0 diff --git a/CREDITS.md b/CREDITS.md index de826d5..6b17b61 100644 --- a/CREDITS.md +++ b/CREDITS.md @@ -43,6 +43,7 @@ Full contribution, see git log. - maximum certificate lifespan of 398 days - ssl renegotiation amount variable - custom http request headers + - HSTS preload list lookup * Frank Breedijk - Detection of insecure redirects diff --git a/doc/testssl.1 b/doc/testssl.1 index 3ea717c..1d5ae94 100644 --- a/doc/testssl.1 +++ b/doc/testssl.1 @@ -301,6 +301,9 @@ For the trust chain check 5 certificate stores are provided\. If the test agains HTTP Strict Transport Security (HSTS) . .IP "\(bu" 4 +HSTS preload list status (when `--phone-out` supplied) +. +.IP "\(bu" 4 HTTP Public Key Pinning (HPKP) . .IP "\(bu" 4 diff --git a/doc/testssl.1.html b/doc/testssl.1.html index df4743d..4fb7149 100644 --- a/doc/testssl.1.html +++ b/doc/testssl.1.html @@ -292,6 +292,9 @@ Also for multiple server certificates are being checked for as well as for the c