We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3e465ba commit 198a5f0Copy full SHA for 198a5f0
1 file changed
testssl.sh
@@ -2820,6 +2820,7 @@ run_hsts() {
2820
if ! is_number "$hsts_age_sec"; then
2821
pr_svrty_medium "misconfiguration: \'"$hsts_age_sec"\' is not a valid max-age specification"
2822
fileout "${jsonID}_time" "MEDIUM" "misconfiguration, specified not a number for max-age"
2823
+ set_grade_warning "HSTS max-age is misconfigured"
2824
else
2825
if [[ -n $hsts_age_sec ]]; then
2826
hsts_age_days=$(( hsts_age_sec / 86400))
@@ -2859,7 +2860,6 @@ run_hsts() {
2859
2860
2861
pr_svrty_low "not offered"
2862
fileout "$jsonID" "LOW" "not offered"
- set_grade_warning "HSTS is disabled"
2863
fi
2864
outln
2865
0 commit comments