mirror of
https://github.com/drwetter/testssl.sh.git
synced 2025-01-06 00:39:44 +01:00
Merge pull request #820 from seccubus/insecure_redirect
Fixed file output error in case of insecure redirect
This commit is contained in:
commit
200440a28f
@ -1416,7 +1416,7 @@ run_http_header() {
|
|||||||
out ", redirecting to \""; pr_url "$redirect"; out "\""
|
out ", redirecting to \""; pr_url "$redirect"; out "\""
|
||||||
if [[ $redirect == "http://"* ]]; then
|
if [[ $redirect == "http://"* ]]; then
|
||||||
pr_svrty_high " -- Redirect to insecure URL (NOT ok)"
|
pr_svrty_high " -- Redirect to insecure URL (NOT ok)"
|
||||||
fileout "HTTP_STATUS_CODE" "HIGH" \, "Redirect to insecure URL. Url: \"$redirect\""
|
fileout "insecure_redirect" "HIGH" "Redirect to insecure URL. Url: \"$redirect\""
|
||||||
fi
|
fi
|
||||||
fileout "HTTP_STATUS_CODE" "INFO" \
|
fileout "HTTP_STATUS_CODE" "INFO" \
|
||||||
"Testing HTTP header response @ \"$URL_PATH\", $HTTP_STATUS_CODE$msg_thereafter, redirecting to \"$redirect\""
|
"Testing HTTP header response @ \"$URL_PATH\", $HTTP_STATUS_CODE$msg_thereafter, redirecting to \"$redirect\""
|
||||||
|
Loading…
Reference in New Issue
Block a user