mirror of
https://github.com/drwetter/testssl.sh.git
synced 2026-06-23 08:47:38 +02:00
Report additional modern security headers as INFO
Adds X-Permitted-Cross-Domain-Policies (already highlighted in emphasize_stuff_in_headers() but never reported), Origin-Agent-Cluster, Document-Policy, Clear-Site-Data, Reporting-Endpoints, Report-To and NEL to run_security_headers(), all presence-only/INFO, matching how COOP/COEP/CORP were added in #2619.
This commit is contained in:
+8
-1
@@ -3609,7 +3609,14 @@ run_security_headers() {
|
|||||||
"Referrer-Policy INFO" \
|
"Referrer-Policy INFO" \
|
||||||
"X-UA-Compatible INFO" \
|
"X-UA-Compatible INFO" \
|
||||||
"Cache-Control INFO" \
|
"Cache-Control INFO" \
|
||||||
"Pragma INFO"; do
|
"Pragma INFO" \
|
||||||
|
"X-Permitted-Cross-Domain-Policies INFO" \
|
||||||
|
"Origin-Agent-Cluster INFO" \
|
||||||
|
"Document-Policy INFO" \
|
||||||
|
"Clear-Site-Data INFO" \
|
||||||
|
"Reporting-Endpoints INFO" \
|
||||||
|
"Report-To INFO" \
|
||||||
|
"NEL INFO"; do
|
||||||
read header svrty <<< "${header_and_svrty}"
|
read header svrty <<< "${header_and_svrty}"
|
||||||
[[ "$DEBUG" -ge 5 ]] && echo "testing \"$header\" (severity \"$svrty\")"
|
[[ "$DEBUG" -ge 5 ]] && echo "testing \"$header\" (severity \"$svrty\")"
|
||||||
match_httpheader_key "$header" "$header" "$spaces" "$first"
|
match_httpheader_key "$header" "$header" "$spaces" "$first"
|
||||||
|
|||||||
Reference in New Issue
Block a user